I'm working through the Timezone tutorial. I always get an exception (see below).
Conditions:
jdk 1.6
Netbeans 5.5
IceFaces 1.5.2
For the integration I think there are some libraries missing by enabling IceFaces. I had to add manually following libraries in the order:
-commons-logging
-commons-logging-api
-commons-digester
-commons-collections
-commons-beanutils
Exception throw on line:
Code:
<h:panelGrid columns="2">
Am I doing something wrong?
By the way: I'm not using the integration for VisualWebPack. I'm using the stable one for normal JSF applications in Netbeans.
Please help!
Greets Lars
Code:
javax.servlet.ServletException: javax.faces.FacesException: java.lang.IllegalArgumentException: Cannot invoke com.sun.faces.taglib.html_basic.PanelGridTag.setColumns - argument type mismatch
root cause
javax.faces.FacesException: java.lang.IllegalArgumentException: Cannot invoke com.sun.faces.taglib.html_basic.PanelGridTag.setColumns - argument type mismatch
root cause
java.lang.IllegalArgumentException: Cannot invoke com.sun.faces.taglib.html_basic.PanelGridTag.setColumns - argument type mismatch
Code:
<f:view xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<html>
<head><title>ICEfaces: TimeZone Sample Application</title></head>
<body>
<h3>ICEfaces: TimeZone Sample Application</h3>
<h:form>
<h:panelGrid columns="2">
<h:outputText style="font-weight:600" value="Server Time Zone"/>
<h:outputText style="font-weight:600" value="Time Zone Selected from Map"/>
<h:outputText value="#{timeZoneBean.serverTimeZoneName}"/>
<h:outputText value="#{timeZoneBean.selectedTimeZoneName}"/>
<h:outputText style="font-weight:800" value="#{timeZoneBean.serverTime}"/>
<h:outputText style="font-weight:800" value="#{timeZoneBean.selectedTime}"/>
</h:panelGrid>
<h:panelGrid columns="6" cellspacing="0" cellpadding="0">
<h:commandButton id="GMTminus10" image="images/hawaii.jpg" actionListener="#{timeZoneBean.listen}" style="border: 0px;"/>
<h:commandButton id="GMTminus9" image="images/alaska.jpg" actionListener="#{timeZoneBean.listen}" style="border: 0px;"/>
<h:commandButton id="GMTminus8" image="images/pacific.jpg" actionListener="#{timeZoneBean.listen}" style="border: 0px;"/>
<h:commandButton id="GMTminus7" image="images/mountain.jpg" actionListener="#{timeZoneBean.listen}" style="border: 0px;"/>
<h:commandButton id="GMTminus6" image="images/central.jpg" actionListener="#{timeZoneBean.listen}" style="border: 0px;"/>
<h:commandButton id="GMTminus5" image="images/eastern.jpg" actionListener="#{timeZoneBean.listen}" style="border: 0px;"/>
</h:panelGrid>
</h:form>
</body>
</html>
</f:view>