I saw the discussion on the "open" jsr list. Jakob, is there any archive for
Thomas to read the mails?

-M

sent from my Android phone
On Nov 3, 2010 6:37 PM, "Jakob Korherr" <jakob.korh...@gmail.com> wrote:
> Hi Thomas,
>
> What you have encountered here is a known design problem of JSF 2.0.
> Currently we (the MyFaces team) are working hard to get all of this
> fixed for the JSF 2.1 specification, because - as you know - this
> stuff is really annoying and makes composite components unusable in
> the most scenarios.
>
> Sorry, but that is all we can do right now. Fortunately the JSF 2.1
> spec release will be very soon!
>
> Regards,
> Jakob
>
> 2010/11/3 Thomas Möller <thomas.moel...@continentale.de>:
>>
>> Finally it seems to me that the "targets"-feature is only sufficient for
the
>> simplest scenarios. There are too many restrictions:
>>
>> 1) only for a restricted set of attribute names: "action",
"actionListener",
>> "validator", "valueChangeListener"
>> 2) not supported in nested attributes
>>
>> So, what is the solution in my scenario (I thought it was simple enough):
a
>> composite component that consists of a panel with two buttons and
*optional*
>> actions and actionListeners. I want to use it in the following way:
>>
>> either 1)
>>
>> <my:twoButtons action1="..." actionListener1="..." action2="..."
>> actionListener2="..." />
>>
>> or 2)
>>
>> <my:twoButtons2 button1="..." button2="..." /> relying on a button model:
>>
>> public interface Button
>> {
>>  String action();
>>  void actionListener(ActionEvent e);
>> }
>>
>> I tried to solve this problem without tricks like writing own tag
handlers
>> or modifying the facelets view declaration language.
>>
>> I'd really like to get an answer for this... ;-)
>> --
>> View this message in context:
http://old.nabble.com/composite-components%3A-optional-method-expression-attributes-tp30067392p30120526.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

Reply via email to