ViewScoped « Bean « JSF Q&A

Home
JSF Q&A
1.API
2.Bean
3.Component
4.Control
5.Data
6.database
7.Datatable
8.Development
9.Exception
10.Facelets
11.Form
12.Glassfish
13.HTML
14.IceFaces
15.Internationalization
16.JPA
17.JSP
18.MyFaces
19.openfaces
20.Page
21.Portlet
22.PrimeFaces
23.RichFaces
24.Seam
25.Security
26.Servlet
27.Session
28.Tag
29.Test
30.Tomcat
31.validation
32.Web Service
JSF Q&A » Bean » ViewScoped 

1. @EJB in @ViewScoped managed bean causes java.io.NotSerializableException    stackoverflow.com

I've been banging my head around with a @ViewScoped managed-bean. I'm using primeface's "schedule" component in order to display some events. When the user clicks on a specific button a method ...

2. JSF: EvaluationException and NPE when method in a @ViewScoped bean is called    stackoverflow.com

fellow Java warriors!
I have this managed bean to handle the Rede (Network) entity related operations called RedesBean (NetworksBean). I have three pages to insert a new network: redes/nova.xhtml (new.xhtml), which ...

3. Viewscoped bean doesnt retain it's state when returning to the same view?    stackoverflow.com

Im currently testing on JSF Bean that make use of ViewScope I notice this behaviour. When having this button :

<p:commandButton value="Submit Data to Server" 
    ajax="false" update="debugPanel" />
I can see ...

4. Howto access JSF2 @ViewScoped beans via ExternalContext?    stackoverflow.com

In JSF1 you can access the bean instances of your current FacesContext by

ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext()
ev.getApplicationMap().get(beanName) // get an @ApplicationScoped bean instance
ev.getSessionMap().get(beanName) // get a @SessionScoped bean instance
ev.getRequestMap().get(beanName) // get a ...

5. Use of JSTL/core tags screws up ViewScoped Bean    stackoverflow.com

I think I have run into a bug in Mojarra 2.1.0. Maybe I missed something but damned if I can see it. I rely a lot of @ViewScoped beans to save state ...

6. Jsf2 view parameters and viewscoped beans    stackoverflow.com


How can I access the view parameters from a viewscoped bean?
I have a page almost with the same content as this:

<f:metadata>
    <f:viewParam name="name" value="#{goToUserpageRequest.name}" />
</f:metadata>

<ui:define name="content">
  ...

7. My jsf FacesBehavior class reloads the viewscoped bean    stackoverflow.com

I've a Facesbehavior class that works fine. But as soon as the tag is used within the .xhtml, every single commandbutton that is clicked on, results in reinitialisation of the viewscoped ...

8. JSF 2 - Where does a @ViewScoped bean live between requests?    stackoverflow.com

I'm trying to better understand the low-level workings of a @ViewScoped bean in JSF 2. Where does the server keep the view-scoped bean between requests? I've noticed that my view-scoped beans ...

9. Restore view (displaying viewScoped Bean) after calling JSP for file upload    stackoverflow.com

I'm using JSF 2.1 RI. I've a JSF Page with multipart upload form defined like:

<form method="post" enctype="multipart/form-data" action="/addAttachment.jsp">
    <input type="file" value="${myBean.filePath}" id="filePath" name="filePath"/>
    <input type="hidden" value="${myBean.id}" ...

10. Getting a GET request param into an @ViewScoped bean    stackoverflow.com

I have a (request-scoped) list from which the user may select a "PQ" (list of links). When clicked or otherwise entered into the browser the main page for each PQ shall ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.