Hi,

Maybe this subject does better desribe what I need.

How do I copy a bean attribute from a <repeat> tag iteration for using in the nested iteration by calling a setAttribute(Object copied_attribute) operation? How would it work, which tag could be helpful?

Thank you for help! I havn't found the solution yet...

Regards,
Andreas


Andreas Niemeyer schrieb:
Hi,

I would like to inject a object from a <ui:repeat> iterationinto a setter method of the bean for a nested second iteration.

The nested iteration depends on the previous object.


<ui:repeat value="${userinfo.userorganisations}" var="orga">
 <tr><td>organisation: </td><td>#{orga.name}</td></tr>
<!-- ???
 ${userinfo.organizationobject}=${orga}
-->

  <ui:repeat value="${userinfo.userorganisationroles}" var="role">
   <tr><td>organisation role:    </td><td>#{role}</td></tr>
  </ui:repeat>
</ui:repeat>



I read something about the setPropertyActionListener

<f:setPropertyActionListener value="#{beanx.a}" target="#{beanY.b}"/>
used in the <h:commandLink>.


This is nearly what I need but for the iteration construct without an action.


MTIA!

Regards,
Andreas



Reply via email to