Hi all,
have a problem
I have the JSF Bean dataBean with property complexprop - the type of
field is ComplexType
I want to set an certain property to the bean via selectItems, which
is being collected from the anotherDataBean.selectItems - it returns
array of SelectItems.
so it looks like
<!--page-->
<h:selectOneMenu id="in_property" value="#{dataBean.complexprop}">
<f:selectItems value="#{anotherDataBean.selectItems}"/>
<f:converter converterId="geoConverter"/>
</h:selectOneMenu>
Of course it wouldnt not work because JSF would try convert the String
value from UI to internal dataBean.complexprop type and vice versa so
I added the converter
But I cannot understand how to work properly with it - during the call
the method is being called for count = selectItems.size()
Converter.getAsString(FacesContext facesContext, UIComponent
uiComponent, Object o)
What could be wrong?
How to link together all such things?