Display a list of items in a grid in JSF 1.1 -
i need display list of items in grid using jsf 1.1 , tomahawak.
i tried this
<h:panelgrid columns="4"> <h:datatable value="#{globaltvchannelsbean.filteredchannels}" var="channel"> <h:column><h:outputtext value="#{channel.channelname}" /></h:column> </h:datatable> </h:panelgrid>
and this
<h:panelgrid columns="4"> <c:foreach items="#{globaltvchannelsbean.filteredchannels}" var="channel" <h:outputtext value="#{channel.channelname}" /> </c:foreach> </h:panelgrid>
but both not working. see problem, or suggest correct way of doing it.
you need closer on how datatable component works.
datatable generates html table you. in case, need use ui:repeat loops on array without creating html table tags.
<h:panelgrid columns="4"> <ui:repeat value="#{globaltvchannelsbean.filteredchannels}" var="channel"> <h:outputtext value="#{channel.channelname}" /> </ui:repeat> </h:panelgrid>
Comments
Post a Comment