<p:selectManyMenu> issue with wizard component

UI Components for JSF
Post Reply
nidheesh
Posts: 60
Joined: 24 Oct 2011, 13:21

11 Jan 2012, 13:57

While using primefaces <p:selectManyMenu> in wizard component , the item selected could not be retained while pressing the NEXT and BACK button. For example in

Code: Select all

<h:outputText value="Roles" />
<p:selectManyMenu id="role" value="#{backingBean.rolesList}"
    style="height:75px">
    <f:selectItems value="#{backingBean.secRole}" var="roles"
        itemLabel="#  {roles.roleName}" itemValue="#{roles.roleId}">
    </f:selectItems>
</p:selectManyMenu>
itemLabel selected will be flushed out when I press NEXT/BACK button.How can I retain the selected value there?
Thanks,
Nidheesh

djmj
Posts: 400
Joined: 16 Dec 2011, 01:23

11 Jan 2012, 14:02

is "roles" a at least view scoped?

Wizard does not work with request beans. Would love if it can work with request scope.
Primefaces: 11.0.0 RC2
Primefaces-Extension: 11.0.0
PrimeFaces-Mobile: 11.0
OmniFaces: 3.11
Jsf: Mojarra 2.3.8
Server: Glassfish 5.1.0

nidheesh
Posts: 60
Joined: 24 Oct 2011, 13:21

11 Jan 2012, 14:13

Yes, It is @ViewScoped.
Thanks,
Nidheesh

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

13 Jan 2012, 08:00

djmj wrote:Wizard does not work with request beans. Would love if it can work with request scope.
Why not? Why you prefer request scope with wizard? Can you use requestcontext if request scope does not work?
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

nidheesh
Posts: 60
Joined: 24 Oct 2011, 13:21

13 Jan 2012, 11:20

smithh032772 ,

I don't have an idea about how requestcontext can use. Can you give some link?
Thanks,
Nidheesh

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

13 Jan 2012, 12:44

nidheesh wrote:I don't have an idea about how requestcontext can use. Can you give some link?
Showcase example: Request Context
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 53 guests