Hi Sebastian,
You might want to try and use a panelGrid instaed of a table. It might
take a little more effort to create it but you have more control over
the components.
Look at my previous threads to find some solutions, also look here:
http://wiki.apache.org/myfaces/Display_Radio_Buttons_In_Columns

good luck,

-----Original Message-----
From: Jeff Bischoff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 06, 2006 10:01 AM
To: MyFaces Discussion
Subject: Re: selectOneRadios in TreeTable

Sebastian,

dataTables and like JSF iterative components will not have additional 
children for each row, but will instead render the same child repeatedly

for each row. You can learn more about this phenomenon and what JSF 1.2 
is doing to help address issues around it here [1].

[1]
http://weblogs.java.net/blog/jhook/archive/2006/02/new_feature_for.html

Regards,

Jeff Bischoff
Kenneth L Kurz & Associates, Inc.

Sebastian Menge wrote:
> Hi
> 
> Im still struggling with the TreeTable.
> 
> I want a selectOne control next to each of my nodes in a tree.
> 
> When MyFaces renders the tree everything looks good, but when we try
to
> save the changed data in the select-controls, nothing happens.
> 
> The problem seems to be that for each select-control in the tree the
> same id is assigned. 
> 
> Is this an instance of
http://issues.apache.org/jira/browse/TOMAHAWK-116 ?
> 
> Is there a way to avoid that or are there any other workaorunds? 
> 
> 
> TIA, Sebastian
> 
> 
> Heres my JSF-Tag:
> 
> 
>         <t:tree id="tree"
value="#{jsfProfile.weightedCompetencesTree}" var="entry"
expandRoot="true" columnClasses=",profile_details">
>                 
>                 <t:treeColumn>
>                         <f:facet name="header">
>                                 <h:outputText
value="#{bundle.competence_name}" />
>                         </f:facet>
>                         
>                         <h:outputText value="#{entry.competence.name}"
/>
>                 </t:treeColumn>
>                 
>                 <h:column>
>                         <f:facet name="header">
>                                 <h:outputText
value="#{bundle.competence_weight}" />
>                         </f:facet>
>                         <h:selectOneMenu value="#{entry.weight}">
>                                 <f:selectItems
value="#{translator.selectableWeightEnums}" />
>                                 <f:param name="WEIGHTED_COMPETENCE"
value="#{entry.weight.id}" />
>                         </h:selectOneMenu>
>                 </h:column>
>         </t:tree>
> 
> 
> 
> 
> 
> 


Reply via email to