Archive

Archive for June, 2010

Solution to PrimeFaces p:schedule overlapping p:menubar drop down

June 14th, 2010 Karthikeyan C No comments

The problem under consideration is what is discussed in this forum post.

http://primefaces.prime.com.tr/forum/viewtopic.php?f=3&t=2696&start=0

The solution is to assign a z-index of value zero to p:schedule. A lower value will send it behind the page background. Making the z-index for p:menubar also did not do the trick. May be the drop down did not inherit the z-index of menubar properly and as a result the drop down had a lower z-index than the p:schedule.

So instead of increasing z-index of menubar and its content, the solution i found was to make the z-index of the p:schedule zero as in the below code.


<p:schedule style="position:relative;top:0px;left: 0px;z-index:0;width:100%"  value="#{myaction.eventModel}" editable="false" widgetVar="someschedule" view="agendaWeek"/>
  • Share/Bookmark
Categories: Development Tags:

Chrome error – NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7

June 6th, 2010 Karthikeyan C No comments

I came across the below error in Chrome while rendering a page ( the same page was working fine in Firefox, Opera).

NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7

I was using JSF 1.2 with Facelets. The solution is to mention the contentType attribute value as text/html in the f:view tag.


<f:view xmlns:f="http://java.sun.com/jsf/core" contentType="text/html">

Note: If the content is not mentioned as text/html, strict validation will occur where few DOM modifications like assigning to innerHTML is prohibited and hence the error.

  • Share/Bookmark
Categories: Development Tags:

Installing Eclipse Java EE (JEE) Galileo in Windows 7 using 64 bit JDK

June 2nd, 2010 Karthikeyan C No comments

Normally I do not do any development in Windows (I use Ubuntu for it). But recently tried setting up DEV environment in Windows 7 64 bit for a project which had Eclipse Java EE version – Galileo as the IDE.

I downloaded and installed 64 bit JDK 1.6.20 and then downloaded Eclipse JEE bundle for Windows platform. When i tried to run Eclipse it spit out an error dialog as it was a 64 bit JDK.

I searched for a 64 bit Eclipse JEE bundle but as on date cannot find one. Hence uninstalled  64 bit JDK and installed 32 bit JDK and continued with the setup.

Hope Eclipse soon comes out with a 64 bit JEE version soon.

  • Share/Bookmark
Categories: Tools / Utilities Tags: