Here is a quick and dirty example:
Code: Select all
.....
<h:form prependId="false" >
<h:inputText style="margin-bottom: 5px;" value="#{detention.studentHistorySearch}" required="true">
<f:validateLength maximum="100" minimum="1" />
</h:inputText>
<p:commandButton value="#{msg.tardyHistorySearchBtn}" action="#{detention.loadStudentHistory}" update="frmHistTable" />
</h:form>
......
<h:form id="frmHistTable" prependId="false">
<p:dataTable lazy="true" selection="#{detention.studentHistoryDetails}" onselectComplete="dlgStudHist.show()" selectionMode="single" id="studhistory" update="growl dialogStudHist" dynamic="true" var="hist" value="#{detention.studentHistory}" paginator="true" rows="30">
<p:column sortBy="#{d.detention.opened}" >
<f:facet name="header">
<h:outputText value="#{msg.tardyOutStandOpened}" />
</f:facet>
<h:panelGroup rendered="#{hist.detention.opened}">
<h:graphicImage id="openedStateHist" url="/public/images/viewed.png" />
<p:tooltip for="openedStateHist" style="myStyle" value="#{msg.tipOpen} #{hist.detention.openedTime}" showEffect="slide" hideEffect="slide" showEffectLength="500"/>
</h:panelGroup>
</p:column>
<p:column filterBy="#{hist.student.studentNumber}" sortBy="#{hist.student.studentNumber}" >
<f:facet name="header">
<h:outputText value="#{msg.tardyOutStandStudNumber}" />
</f:facet>
<h:outputText value="#{hist.student.studentNumber}" />
</p:column>
......
</p:dataTable>
</h:form>
This bug seems present on 2.0.2 and 2.1. I am testing on tomcat6 using firefox and chrome on Ubuntu 10.04 64bit.
Thanks for any insight you can offer and that to the Primefaces Team for making a great product!