myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Möller <>
Subject Re: composite components: optional method-expression-attributes
Date Thu, 04 Nov 2010 08:44:40 GMT

I found the discussion for jsf 2.1 and recognized that new attribute
"targetAttributeName" on the attribute tag. But could somebody of the
experts briefly answer here if I can do the following regarding to nested

public interface SimpleModel
  String myaction();

<my:buttonPanel button1="#{simpleModel1}" button2="#{simpleModel2}" />

Is it possible to declare:

  <cc:attribute name="model" type="SimpleModel" >
    <cc:attribute name="myaction" targetAttributeName="action"
targets="button" />

  <h:commandButton id="button" ... />

How can I declare a navigation rule for all actions that arise from button1?

  <from-action>#{simpleModel1...}</from-action> <!-- ??? -->

If I had two actions on a model I had to distinguish them from each other

Thanks for your answers in advance!

View this message in context:
Sent from the MyFaces - Users mailing list archive at

View raw message