myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Korherr <jakob.korh...@gmail.com>
Subject Re: [core] Can UIComponent.rendererType be ValueExpression ? (MYFACES-3136)
Date Fri, 13 May 2011 14:44:15 GMT
Hmm, ok.

I also can't think of a scenario where you would use something like
this right now. But I'll think of it and do some research..

Martin, could you take a look at some of the prominent JSF component
libs (like Primefaces, Trinidad, Tomahawk, Tobago, RichFaces,
IceFaces) and search in their code for something like this? If you
don't find anything there, then it should be pretty safe to remove the
ValueExpression support from rendererType!

Regards,
Jakob

2011/5/13 Martin Koci <martin.kocicak.koci@gmail.com>:
> Hi,
>
> from spec:
>
> .. "Because the components themselves store only a rendererType property
> (a logical identifier of a particular Renderer)" ..
>
>
> rendererType = " Identifier of the Renderer instance (from the set of
> Renderer rendererType String instances supported by the RenderKit
> associated with the component tree we are processing."
>
> "The default value of the rendererType property must be set to" ...
> (always String in spec)
>
>
> JavaDoc: setRendererType - rendererType = Logical identifier of the type
> of Renderer to use, or null for components that render themselves
>
> It seems to me that rendererType is String-only, not ValueExpression.
> Similar attributes are componentType and componentFamily -those are
> String-only I think.
>
> Internally in code I don't see
> component.setValueExpression("rendererType", ve).
>
> <a:component rendererType="#{bean.getRendererType}" /> is not possible.
>
>
>
> About state saving and rendererType I found nothing.
>
>
> Jakob Korherr píše v Pá 13. 05. 2011 v 16:11 +0200:
>> Hi Martin,
>>
>> Have you checked the JSF 2.1 and 2.0 specs yet?
>>
>> Regards,
>> Jakob
>>
>> 2011/5/13 Martin Koci <martin.kocicak.koci@gmail.com>:
>> > Hi,
>> >
>> >
>> > two questions :
>> >
>> > 1) can UIComponent.rendererType be ValueExpression? If yes, in which
>> > situation is useful to use it?
>> >
>> > 2) should be rendereType saved during state saving? Each component has
>> > setRendererType("com.foo.renderer") in constructor and/or VDL calls
>> > setRendererType() after calling Application.createComponent()
>> >
>> >
>> > Please see MYFACES-3136 for details
>> >
>> > Thanks,
>> >
>> >
>> > Kočičák
>> >
>> >
>> >
>>
>>
>>
>
>
>



-- 
Jakob Korherr

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

Mime
View raw message