Skip to main content

Jsf page and assigning objects

No replies
z3r9
Offline
Joined: 2013-10-30
Points: 0

Sorry for my english. I need to set in a JSF page:

#{orderBean.instance.task} = #{taskBean.instance}

To set in OrderBean it is not suitable, i am useing CRUD for beans. I want to set in a JSF page.

I need sort of h:selectOneMenu (I am using converter):

< h:selectOneMenu value="#{orderBean.instance.task}"  id="taskList" converter="#{taskConverterBean}" >
        < f:selectItems value="#{taskBean.entityList}" var="task"
                       itemLabel="#{task.id}" itemValue="#{task}"/ >
< /h:selectOneMenu >

Suggested that is f:setPropertyActionListener for the button, but it is not possible to use the converter.

May be there is another solution?