Add binding="#{bean.assortmentsUIData}" to the first table,
binding="#{bean.categoriesUIData}" to the second, and create
getter/setter pairs for these in your bean.
You can then call (Assort)bean.getAssortmentsUIData().getRowData()
from category.description. You'd probably be better off using
#{bean.categoryDescription} and calling
(Assort)bean.getAssortmentsUIData().getRowData() and
(Category)bean.getCategoriesUIData().getRowData() in
categoryDescription(), then generating the appropriate response.
On 8/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
The bean or the interaction to the bean is the point.
The categories list should have always different values.
I am looking for example for a listener of datatable to tell the Category
bean change all values of categories list for the inner data table.
Of course it can be an other mechanism.
Until now I get for all cell the same categories values. This is only the
half work.
----Ursprüngliche Nachricht----
Von: [EMAIL PROTECTED]
Datum: 04.08.2006 18:01
An: <[EMAIL PROTECTED]>
Betreff: Re: Re: nested datatable
As it should according to what I see. Everything looks ok from here. Bean
code?
What is the undesirable behavior you are seeing?
On 8/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Yes it is really a dilemma.
>
> <h:dataTable var="assort" value="#{assortments}">
> <h:column>
> <h:outputLink value="">
> <h:outputText value="#{ assort.description}" />
> </h:outputLink>
> <h:dataTable var="category" value="#{categories}">
> <h:column>
> <h:outputLink value="">
> <h:outputText value="#{category.description}" />
> </h:outputLink>
> </h:column>
> </h:dataTable>
> </h:column>
> </h:dataTable>
>
> The categories list must always have different values.
>
>
> ----Ursprüngliche Nachricht----
> Von: [EMAIL PROTECTED]
> Datum: 04.08.2006 17:15
> An: "MyFaces Discussion"<[email protected] >,
<[EMAIL PROTECTED]>
> Betreff: Re: nested datatable
Greetings,
Would you mind explaining your dilemma a bit more clearly? I'm not sure I
follow what you mean. Perhaps provide a code sample outlining what you are
trying to accomplish and what your results are?
On 8/4/06, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:
> Hello
>
> I would like to use a a datatable in the datatable.
> My problem the inner datatable has in every cell of the outer
> datatable different values.
> How can I change the content of the data list for the next row?
> First row content 1, second row content 2, ... last row last
> content.
>
>
>