Description
if you have a facelets composite component with an attribute "test" that points to a property in a managed bean (e.g. #
{myBean.property}) which is currently null and you refer to that attribute in the implementation via #
{cc.attrs.test} you can get the current value (null) or set a new value but you cannot get the type of the property (e.g. String[]). However if the property in the managed bean is non-null you can get the type.For example:
<cc:interface name="mycomponent">
<cc:attribute name="test" required="true"/>
</cc:interface>
<cc:implementation>
<h:selectManyListbox value="#{cc.attrs.test}
">
<f:selectItems value="#
"/>
</h:selectManyListbox>
</cc:implementation>
--> calling #
{cc.attrs.test}.getType() will fail if #{cc.attrs.test}resolves to null, but will work if #
{cc.attrs.test}resolves to some valid value.
This currently results in a NullPointerException in _SharedRendererUtils.getConvertedUISelectManyValue().
Attachments
Attachments
Issue Links
- is duplicated by
-
MYFACES-3311 Can't resolve converter for cc attributes
- Closed
-
MYFACES-3316 Problem concerning MyFaces-1890: does not work when dealing with a composite component
- Closed