Hi Shibi,
here is an example on how it works for me:
<h:dataTable id="bean" rowClasses="row"
value="#{searchSystemdataSpringBean.bean}"
var="systemdata" styleClass="hidden">
<h:column>
<f:facet name="header">
<h:outputText
value="#{bundle.searchSystemTagNumber}" />
</f:facet>
<h:commandButton styleClass="button"
id="tagnumber" value="#{systemdata.sdtagnumber}" onclick="javascript:
passToParentWindow(id, value)" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText
value="#{bundle.searchSystemModel}" />
</f:facet>
<h:outputText id="model"
value="#{systemdata.sdmodel}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText
value="#{bundle.searchSystemSn}" />
</f:facet>
<h:outputText id="systemnumber"
value="#{systemdata.sdsn}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText
value="#{bundle.searchSystemType}" />
</f:facet>
<h:outputText id="systemtype"
value="#{systemdata.sdtype}" />
</h:column>
</h:dataTable>
The important things are value="#{searchSystemdataSpringBean.bean}" assigning
the values from the backed bean, the next stept is putting these values into
var="systemdata", and after that you can output them normaly like this:
<h:outputText id="systemtype" value="#{systemdata.sdtype}" />
private List bean;
public void search(ActionEvent event) {
HtmlDataTable dataTable = (HtmlDataTable) event.getComponent()
.findComponent("bean");
if (getSystemdata().getSdtagnumber() == null) {
bean = getSystemdataManager().getSystemdatas();
}
}
As you can see, bean is just a normal list.
That's the way it works for me, if you could provide a bit more code, it would
be easyer to figure out your problem.
Hope that helps.
Regards Johannes
wishfully waiting for the cooling tempest.
"MyFaces Discussion" <[email protected]> schrieb am 18.07.05 13:57:47:
> Hi, i am trying to use <x:dataTable to diplay a resultset [from
> postgresql]. I have wrapped the resultset into a JDBCrowset. I am using jetty
> . Basically the data doesn't get displayed on the we browser. i get the
> following error:
> 13:40:15.610 WARN!! [P1-19]
> org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.
> getRenderer(HtmlRenderKitImpl.java:67) >36> Unsupported
> component-family/rendere
> r-type: javax.faces.ViewRoot/org.apache.myfaces.Table Could anybody give
> an example of how they have done this or kindy help me here
> --
> Kind Regards
> Shibi Thomas
>
>
>
>
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193