Faceing problem with facet="footer" inside the p:column and Not able to convert my seam project from primeface version 1.0.0 to primeface version 2.2.1
dhanarajar Apr 29, 2011 2:35 AMActually in my project i am converting all my rich:datatables to p:datatables....
While converting not able to display the footers in p:datatable with my primeface version 1.0.0...
I worte my p:datatable like this-->>
<p:dataTable id="lodgingChargelistId" width="800" var="lodgingCharge" paginatorPosition="bottom" value="#{financialReports.getLodgingCharges()}" rowClasses="rich-table-oddRow,rich-table-evenRow" paginator="#{financialReports.getLodgingCharges().size()>10}" rows="10" >
<p:column >
<f:facet name="header">
<h:outputText value="#{messages['title.reference']} No" />
</f:facet>
<h:outputText align="left" value="#{lodgingCharge.referenceNumber}" />
</p:column>
<p:column >
<f:facet name="header">
<h:outputText value="#{messages['title.occupancyType']}" /> </f:facet>
<h:outputText align="left" value="#{lodgingCharge.occupancyType.name}" />
</p:column>
<p:column >
<f:facet name="header">
<h:outputText value="#{messages['title.room/bedno']}" />
</f:facet>
<h:outputText style="text-align:left" value="#{lodgingCharge.roomNo}" />
</p:column>
<p:column >
<f:facet name="header" >
<h:outputText value="#{messages['title.room']} Type" /> </f:facet>
<h:outputText style="text-align:left" value="#{lodgingCharge.roomType}" />
<f:facet name="footer">
<h:outputText value=" #{messages['title.totals']}"></h:outputText>
</f:facet>
</p:column>
<p:column >
<f:facet name="header">
<h:outputText value="#{messages['title.noOfNights']}" />
</f:facet>
<h:outputText style="text-align:left" value="#{lodgingCharge.noOfNights}"></h:outputText>
<f:facet name="footer">
<h:outputText style="text-align: left; background-color:#565656; color:white; " value="#{financialReports.noOfNights}" styleClass="hightLight" ></h:outputText>
</f:facet>
</p:column>
<p:column >
<f:facet name="header">
<h:outputText value="No Of Rooms" />
</f:facet>
<h:outputText style="text-align:left" value="#{lodgingCharge.noOfBookables}"></h:outputText>
<f:facet name="footer">
<h:outputText style="text-align: left; background-color:#565656; color:white; " value="#{financialReports.noOfBookables}" styleClass="hightLight" ></h:outputText>
</f:facet>
</p:column>
<p:column >
<f:facet name="header">
<h:outputText value="#{messages['title.lodging']}" />
</f:facet>
<h:outputText style="text-align:right" value="#{systemUtils.formatDecimal(lodgingCharge.totalReservationCharges, selectedInstance.currencyFormat.businessValue)}"></h:outputText>
<f:facet name="footer">
<h:outputText value="#{systemUtils.formatDecimal(financialReports.groupTotal, selectedInstance.currencyFormat.businessValue)}" styleClass="hightLight" ></h:outputText>
</f:facet>
</p:column>
<p:column >
<f:facet name="header">
<h:outputText value="Average Surcharges/#{messages['title.day']}" />
</f:facet>
<h:outputText style="text-align:right" value="#{systemUtils.formatDecimal(lodgingCharge.surcharges, selectedInstance.currencyFormat.businessValue)}"></h:outputText>
<f:facet name="footer">
<h:outputText value="#{systemUtils.formatDecimal(financialReports.totalSurCharges, selectedInstance.currencyFormat.businessValue)}" styleClass="hightLight" ></h:outputText>
</f:facet>
</p:column>
<p:column >
<f:facet name="header">
<h:outputText value="Average Tax/#{messages['title.day']}" />
</f:facet>
<h:outputText style="text-align:right" value="#{systemUtils.formatDecimal(lodgingCharge.taxes, selectedInstance.currencyFormat.businessValue)}"></h:outputText>
<f:facet name="footer">
<h:outputText value="#{systemUtils.formatDecimal(financialReports.totalTax, selectedInstance.currencyFormat.businessValue)}" styleClass="hightLight" ></h:outputText>
</f:facet>
</p:column>
<p:column rendered="#{productVisibility.isEzeeDesk()}">
<f:facet name="header">
<h:outputText value="#{messages['title.discount']}" />
</f:facet>
<h:outputText style="text-align:right" value="#{systemUtils.formatDecimal(lodgingCharge.discount, selectedInstance.currencyFormat.businessValue)}"></h:outputText>
<f:facet name="footer">
<h:outputText value="#{systemUtils.formatDecimal(financialReports.totalDiscount, selectedInstance.currencyFormat.businessValue)}" styleClass="hightLight" ></h:outputText>
</f:facet>
</p:column>
<p:column >
<f:facet name="header">
<h:outputText value="#{messages['title.total']}" />
</f:facet>
<h:outputText style="text-align:right" value="#{systemUtils.formatDecimal(lodgingCharge.charges, selectedInstance.currencyFormat.businessValue)}"></h:outputText>
<f:facet name="footer">
<h:outputText value="#{systemUtils.formatDecimal(financialReports.totalCharges, selectedInstance.currencyFormat.businessValue)}" styleClass="hightLight" ></h:outputText>
</f:facet>
</p:column>
</p:dataTable>
to solve this pbm checked this link -->>
http://www.primefaces.org/showcase/ui/datatableHeaderFooter.jsf;jsessionid=11ACD45BF8956441AFF95DB0C30AFD70
but how i did they also did like that only...
but i was not able to display those footers.....
Thing is they did the same in primeface Version 2.2.1
So,
I have downloaded primefaces 2.2.1 jar fro this link -->>
http://www.primefaces.org/downloads.html
And i removed previous jar(primeface 1.0.0) from my project and i added the new one(version 2.2.1)
aftr done the above while building i am getting the following error--->>>>>
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
Source Document: jar:file:/D:/jboss-4.2.3.GA/server/default/deploy/ezeeDesk.ear/ezeeDesk.war/WEB-INF/lib/primefaces-2.2.1.jar!/META-INF/faces-config.xml
Cause: Class 'org.primefaces.component.autocomplete.AutoCompleteRenderer' is missing a runtime dependency:
Here i have attached the sample image for reference ..
http://192.168.1.150/web/prime%20Table.bmp
http://192.168.1.150/web/rich%20datatable.PNG
If possible tell me how to display the facet="footer" with my primeface version 1.0.0
(OR)
Tel me how to convert my project from version 1.0.0 to 2.2.1
Thanks In advance!!!!!!!!!!!!!!!!!!
While converting not able to display the footers in p:datatable with my primeface version 1.0.0...
I worte my p:datatable like this-->>
<p:dataTable id="lodgingChargelistId" width="800" var="lodgingCharge" paginatorPosition="bottom" value="#{financialReports.getLodgingCharges()}" rowClasses="rich-table-oddRow,rich-table-evenRow" paginator="#{financialReports.getLodgingCharges().size()>10}" rows="10" >
<p:column >
<f:facet name="header">
<h:outputText value="#{messages['title.reference']} No" />
</f:facet>
<h:outputText align="left" value="#{lodgingCharge.referenceNumber}" />
</p:column>
<p:column >
<f:facet name="header">
<h:outputText value="#{messages['title.occupancyType']}" /> </f:facet>
<h:outputText align="left" value="#{lodgingCharge.occupancyType.name}" />
</p:column>
<p:column >
<f:facet name="header">
<h:outputText value="#{messages['title.room/bedno']}" />
</f:facet>
<h:outputText style="text-align:left" value="#{lodgingCharge.roomNo}" />
</p:column>
<p:column >
<f:facet name="header" >
<h:outputText value="#{messages['title.room']} Type" /> </f:facet>
<h:outputText style="text-align:left" value="#{lodgingCharge.roomType}" />
<f:facet name="footer">
<h:outputText value=" #{messages['title.totals']}"></h:outputText>
</f:facet>
</p:column>
<p:column >
<f:facet name="header">
<h:outputText value="#{messages['title.noOfNights']}" />
</f:facet>
<h:outputText style="text-align:left" value="#{lodgingCharge.noOfNights}"></h:outputText>
<f:facet name="footer">
<h:outputText style="text-align: left; background-color:#565656; color:white; " value="#{financialReports.noOfNights}" styleClass="hightLight" ></h:outputText>
</f:facet>
</p:column>
<p:column >
<f:facet name="header">
<h:outputText value="No Of Rooms" />
</f:facet>
<h:outputText style="text-align:left" value="#{lodgingCharge.noOfBookables}"></h:outputText>
<f:facet name="footer">
<h:outputText style="text-align: left; background-color:#565656; color:white; " value="#{financialReports.noOfBookables}" styleClass="hightLight" ></h:outputText>
</f:facet>
</p:column>
<p:column >
<f:facet name="header">
<h:outputText value="#{messages['title.lodging']}" />
</f:facet>
<h:outputText style="text-align:right" value="#{systemUtils.formatDecimal(lodgingCharge.totalReservationCharges, selectedInstance.currencyFormat.businessValue)}"></h:outputText>
<f:facet name="footer">
<h:outputText value="#{systemUtils.formatDecimal(financialReports.groupTotal, selectedInstance.currencyFormat.businessValue)}" styleClass="hightLight" ></h:outputText>
</f:facet>
</p:column>
<p:column >
<f:facet name="header">
<h:outputText value="Average Surcharges/#{messages['title.day']}" />
</f:facet>
<h:outputText style="text-align:right" value="#{systemUtils.formatDecimal(lodgingCharge.surcharges, selectedInstance.currencyFormat.businessValue)}"></h:outputText>
<f:facet name="footer">
<h:outputText value="#{systemUtils.formatDecimal(financialReports.totalSurCharges, selectedInstance.currencyFormat.businessValue)}" styleClass="hightLight" ></h:outputText>
</f:facet>
</p:column>
<p:column >
<f:facet name="header">
<h:outputText value="Average Tax/#{messages['title.day']}" />
</f:facet>
<h:outputText style="text-align:right" value="#{systemUtils.formatDecimal(lodgingCharge.taxes, selectedInstance.currencyFormat.businessValue)}"></h:outputText>
<f:facet name="footer">
<h:outputText value="#{systemUtils.formatDecimal(financialReports.totalTax, selectedInstance.currencyFormat.businessValue)}" styleClass="hightLight" ></h:outputText>
</f:facet>
</p:column>
<p:column rendered="#{productVisibility.isEzeeDesk()}">
<f:facet name="header">
<h:outputText value="#{messages['title.discount']}" />
</f:facet>
<h:outputText style="text-align:right" value="#{systemUtils.formatDecimal(lodgingCharge.discount, selectedInstance.currencyFormat.businessValue)}"></h:outputText>
<f:facet name="footer">
<h:outputText value="#{systemUtils.formatDecimal(financialReports.totalDiscount, selectedInstance.currencyFormat.businessValue)}" styleClass="hightLight" ></h:outputText>
</f:facet>
</p:column>
<p:column >
<f:facet name="header">
<h:outputText value="#{messages['title.total']}" />
</f:facet>
<h:outputText style="text-align:right" value="#{systemUtils.formatDecimal(lodgingCharge.charges, selectedInstance.currencyFormat.businessValue)}"></h:outputText>
<f:facet name="footer">
<h:outputText value="#{systemUtils.formatDecimal(financialReports.totalCharges, selectedInstance.currencyFormat.businessValue)}" styleClass="hightLight" ></h:outputText>
</f:facet>
</p:column>
</p:dataTable>
to solve this pbm checked this link -->>
http://www.primefaces.org/showcase/ui/datatableHeaderFooter.jsf;jsessionid=11ACD45BF8956441AFF95DB0C30AFD70
but how i did they also did like that only...
but i was not able to display those footers.....
Thing is they did the same in primeface Version 2.2.1
So,
I have downloaded primefaces 2.2.1 jar fro this link -->>
http://www.primefaces.org/downloads.html
And i removed previous jar(primeface 1.0.0) from my project and i added the new one(version 2.2.1)
aftr done the above while building i am getting the following error--->>>>>
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
Source Document: jar:file:/D:/jboss-4.2.3.GA/server/default/deploy/ezeeDesk.ear/ezeeDesk.war/WEB-INF/lib/primefaces-2.2.1.jar!/META-INF/faces-config.xml
Cause: Class 'org.primefaces.component.autocomplete.AutoCompleteRenderer' is missing a runtime dependency:
Here i have attached the sample image for reference ..
http://192.168.1.150/web/prime%20Table.bmp
http://192.168.1.150/web/rich%20datatable.PNG
If possible tell me how to display the facet="footer" with my primeface version 1.0.0
(OR)
Tel me how to convert my project from version 1.0.0 to 2.2.1
Thanks In advance!!!!!!!!!!!!!!!!!!