Matthias-
I've tried it both ways. I suspect the problem is my JSTL Knowledge. Code
follows.
The problem, I believe boils down to, "How do I get at the item var declared
in the datatable/foreach? I can't use a ".", right?
Then again, it could be something very different FAIK. I'm getting the
wonderfully helpful exception,"One or more parameters are null", so I'm sure
it's something obvious I am doing wrong in my JSP. None of the values in my
beans are null.
-Joe, hoping the answer isn't *too* embarrassing.
<h:dataTable value="#{MaintenanceListForm.items}" var="item">
<h:column>
<f:facet name="header">
<h:outputText value="Cost Per Credit"/>
</f:facet>
<h:inputHidden id="id" value="#{item.id}"/>
<h:inputText id="creditCost" value="#{item.creditCost}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Minimum Purchase"/>
</f:facet>
<h:inputText id="minPurchase" value="#{item.minPurchase}"/>
</h:column>
< <h:column>
<f:facet name="header">
<h:outputText value="Currency"/>
</f:facet>
<h:selectOneListbox id="currency">
<f:selectItem itemValue="USD" />
<f:selectItem itemValue="CAD" />
<f:selectItem itemValue="EUR" />
<f:selectItem itemValue="JPY" />
</h:selectOneListbox>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Begin Date"/>
</f:facet>
<h:inputText id="beginDate" value="#{item.beginDate}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="End Date"/>
</f:facet>
<h:inputText id="endDate" value="#{item.endDate}"/>
</h:column>
</h:dataTable
> -----Original Message-----
> From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 09, 2004 8:19 AM
> To: [EMAIL PROTECTED]
> Subject: RE: DynaBeans with struts faces
>
>
> Joe,
> can you provide some code ?
>
> btw.
> i would use <h:dataTable>-Tag for "forEach" in JSF
> and <h:colimn> for rendering <td></td>
>
> like this:
> <h:dataTable value=#{MaintenanceListForm.items} var{item}>
>
> <h:column>
> <f:facet name="header">
> <h:outputText value="HEADER_TEXT"/>
> </f:facet>
>
> <h:outputText value="#{item.foo}"/>
>
> <f:facet name="footer">
> <h:outputText value="footer_text"/>
> </f:facet>
> </h:column>
> </h:dataTable>
>
> note with <f:facet> you can "group" components logicaly.
> dataTable has a "footer" and a "header" it renders <tfoot>
> and <thead> for a HTML-Table
>
> and look at http://myfaces.sf.net
> they have a nice example for editing table
> -->Master/Detail-Example
>
>
> hope that was helpful
> Cheers
>
> Matthias
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]