myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Korherr <jakob.korh...@gmail.com>
Subject Re: composite components: optional method-expression-attributes
Date Sat, 06 Nov 2010 22:20:05 GMT
Hi Thomas,

Could you explain this in a little more detail please?

Regards,
Jakob

2010/11/4 Thomas Möller <thomas.moeller@continentale.de>:
>
> 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
> attributes:
>
> public interface SimpleModel
> {
>  String myaction();
> }
>
> <my:buttonPanel button1="#{simpleModel1}" button2="#{simpleModel2}" />
>
> Is it possible to declare:
>
> <cc:interface>
>  <cc:attribute name="model" type="SimpleModel" >
>    <cc:attribute name="myaction" targetAttributeName="action"
> targets="button" />
>  </cc:attribute>
> </cc:interface>
>
> <cc:implementation>
>  <h:commandButton id="button" ... />
> </cc:implementation>
>
> 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
> somehow.
>
> Thanks for your answers in advance!
>
>
> --
> View this message in context: http://old.nabble.com/composite-components%3A-optional-method-expression-attributes-tp30067392p30129953.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



-- 
Jakob Korherr

blog: http://www.jakobk.com
twitter: http://twitter.com/jakobkorherr
work: http://www.irian.at

Mime
View raw message