hello mga migo
.. ask lang ta ko help,unsaon pag gama ug dynamic number of columns ang sa rich:datatable..
newbie po..
thanks!
hello mga migo
.. ask lang ta ko help,unsaon pag gama ug dynamic number of columns ang sa rich:datatable..
newbie po..
thanks!
mga bay just came up with a solution t0 my problem just wanna share it
For those who likes to learn JSF framework + Richfaces , sulod lang ta dinhi . lets all share..Code:<rich:dataTable value="#{postingSumRpt.postsum}" var="ps" columnsWidth="400px,330px" id="postSumTbl" sortMode="single" rows="10" footerClass="tableFooter" rowKeyVar="row" rowClasses="tableRowNoSelect1,tableRowNoSelect2" columnClasses="truncateTextToFitCell"> <rich:column style="cursor: pointer;"> <f:facet name="header"> <h:outputText value="Premise"/> </f:facet> <h:outputText id="premise_data" value="#{ps.premise}" /> </rich:column> <rich:column style="cursor: pointer;"> <f:facet name="header"> <h:outputText value="Agency"/> </f:facet> <h:outputText id="agency_data" value="#{ps.agency}" /> </rich:column> <rich:columns style="text-align:left;" value="#{postingSumRpt.columnDates}" var="dateColumn" index="ind" sortable="false" selfSorted="false"> <f:facet name="header"> <h:outputText value="#{dateColumn}"> <f:convertDateTime pattern="M/d/yyyy" timeZone="#{pageResource.timeZone}" locale="#{facesContext.viewRoot.locale}" /> </h:outputText> </f:facet> <h:outputText value="#{ps.countPerDate[dateColumn] == null? 1 : ps.countPerDate[dateColumn]}" /> </rich:columns> </rich:dataTable>![]()
i wrap sa [code] bai para han-ay tan-awon
Similar Threads |
|