view « Control « JSF Q&A





1. Load ajax load in JSF    stackoverflow.com

Ok, heres my issue: I have a JSF application and some JSP files. Let's say i have main.jsp which has a view and includes sub.jsp. This works fine. sub.jsp contains a ...

2. JSF: How can I check whether I'm in the "Restore View" phase?    stackoverflow.com

When a particular method in my managed bean gets called, I want to know whether I'm in the Restore View phase of the JSF Lifecycle. How can I do this? ...

3. What will be better view with JSF technology    stackoverflow.com

I am using Struts Tiles with JSF to have one header, menu and footer across application. Is there any other like struts to have one header, menu and footer. Is this ...

4. Why is NavigationHandler.handleNavigation() not forwarding to view ID?    stackoverflow.com

Inside of a phase listener class that runs during the "RESTORE_VIEW" phase, I have some code like this:

public void afterPhase(PhaseEvent event) {
  FacesContext fc = event.getFacesContext();
  NavigationHandler nh = ...

5. How to access javax.faces.PROJECT_STAGE from the view/inside code?    stackoverflow.com

[My Setup: Java EE 6 application, with EJB3.1, CDI/Weld, JSF2 running on Glassfish 3.0.1] I just read about the Faces ProjectStage on this page, which is a cool thing. So ...

6. Data flow between views in JSF 2    stackoverflow.com

I'm currently building my first JSF 2 application and I have some questions regarding flow of data between views. Background The application keeps track of competences of IT-consultants. To illustrate my questions, I ...

7. JSF 2.0: How to add UIComponents and their contents to view root?    stackoverflow.com

I am building a custom UIComponent and adding elements (and other stock UIComponents) inside it. The component renders ok, however it cannot be found from the ViewRoot. Let's say I have:

ResponseWriter writer;

@Override
public ...

8. JDeveloper can't find method for f:view's beforePhase    stackoverflow.com

Using JDev 11.1.1.3.0. I select the f:view tag in the source, go to the method expression builder for beforePhase and select my method from the backing bean (which has the correct ...

9. JSF 2.0 Dynamic Views    stackoverflow.com

I'm working on a web project which uses JSF 2.0, PrimeFaces and PrettyFaces as main frameworks / libraries. The pages have the following (common) structure: Header, Content, Footer. Header: The Header always ...





10. Storing View ID in JSF    stackoverflow.com

I want to understand how JSF is storing the view and restoring the view. I have read that it is creating the separate view id for each view and storing it ...

11. How is f:view in useful in jsf 2.0?    stackoverflow.com

In jsf 2.0 the <f:view>..</f:view> (assuming f corresponds to faces tags) is said to be useful but I can see no actual use of it, if it can me omitted. P.S.: I ...

12. JSF 2.0 implicit navigation, different views    stackoverflow.com

I'm looking for a good explanation to JSF 2.0 implicit navigation and how it works with views. To be more precise, I understand that from an action method I can return ...

13. Difference between JSF view instances    stackoverflow.com

I did some research on JSF view instances, new, initial, and postback. But, I am still not quite sure about the differences. It's kind of confusing and I haven't been able ...

14. Get the JSF navigation display-name from the current view    stackoverflow.com

The JSF navigation case has a display-name element. How can I look-up the value of this element from the current view - assuming the view was rendered from a navigation outcome? e.g.

<navigation-case>
 ...

15. Which JSF event handler is to use for content-dependent changes on view?    stackoverflow.com

I have a h:form with inputs field that are marked mandatory. I'd like to register an event handler that gets to act upon checking whether or not the 'mandatory' criteria has ...

16. Are JSF Views shared between users?    stackoverflow.com

I've defined the # of logical views and views in session attributes in web.xml to 1, so that there is only a maximum of 1 view. Given that, I've a couple ...





17. view flv video by servletvideo java    stackoverflow.com

When I try to view a video in the jwplayer from a file in the webcontent directory it shows up and I can play it, but when I read the same ...

18. Logical views VS actual views in JSF 2.0    stackoverflow.com

I'm using JSF 2.0 application and trying to watch views, which are created during web application browsing. I set the following parameters in web.xml:

 <context-param>
   <param-name>com.sun.faces.numberOfLogicalViews</param-name>
   <param-value>10</param-value>
 ...

19. jsf 1.2 getting wrong viewID during restored view phase    stackoverflow.com

In my project that I am using the following framework: sun jsf 1.2, spring 2.5, RichFaces ajax4faces, apache orchestra and Facelets. I developed my own PhaseListener Implementation to trap incoming pages and ...

21. JSF: Tracking user views    coderanch.com

23. JSF View    coderanch.com

24. Certification point of view    coderanch.com

25. newbie question: default view?    coderanch.com

26. JSF view path    coderanch.com

URLs are not the same thing as filesystem paths - they are Uniform Resource Locators. For convenience, in a lot of cases the levels of a URL may echo levels of directories in a filesystem tree, but they don't have to. In fact, neither branch nor tip of a URL path needs to actually exist as a file at all - ...

27. com.sun.faces.VIEW problem!    coderanch.com

28. Life cycle Restore view state information storing    coderanch.com

Originally posted by indra sen: In Restore view stage of JSF lifecycle view ID is used to look up the components for the current view. FacesContext object contains all the state information JSF needs to manage the GUI component's state for the current request in the current session. So context keeps all the state information for the view. So if my ...

29. Tabbed view using JSF    coderanch.com

30. Problem in setting view root in beforeRenderResponse()    coderanch.com

Hi, I am developing an application in which a JSF page - pageA.jsp, has a backing bean PageA.java. pageA.jsp has an tag . PageA.java implements PhaseListenerand has got the follwoing code in beforeRenderResponse() method : public void beforePhase(PhaseEvent e){ if(e.getPhaseId().equals(PahseId.RENDER_RESPONSE)) beforeRenderResponse(); } public void beforeRenderResponse(){ (FacesContext.getCurrentInstance().setViewRoot( (HttpSession) ( FacesContext.getCurrentInstance().getExternalContext().getSession(true) ) .getAttribute("savedViewOfPageB") ); } The "savedViewOfPageB" label is mapped to ...

31. JSF View State Size    coderanch.com

32. IBM-JSF View-State Compression    coderanch.com

I have a question about JSF view-state compression. I configured client-side state-saving for our JSF application in web.xml and turn compression ON (parameter javax.faces.STATE_SAVING_METHOD set to client and parameter com.sun.faces.COMPRESS_STATE set to true) but that didnt work. No error is thrown and the application works as usual. The reason I know it didnt work is because I compared the HTML generated ...

33. View state couldn't be restored    coderanch.com

34. Strange Problem ! View Object .execute query returns 0    coderanch.com

I have a problem. I have a view object which for which i set the where clause. vo.setWhereClause("LOY_CARD_NO = "+ nID ); vo.executeQuery(); The query returned me a proper query which when I ran in toad gave the row i wanted. The view object sql query is SELECT clc.CCD_CUST_CD, clc.LOY_CARD_NO, FROM CCD_LOY_CUST clc WHERE clc.LOY_CARD_NO = :CARD_NO Now when I tried ...

35. subview loads main view -issue    coderanch.com

Hi All, I have a requirement where I need to load menu page and depending on the menu item choosen for this I have some thing as follows , which load the subview after this current page loads , once the user submits the button on subview , even main view is getting load , so ...

36. Navigate to new view on ajax update    coderanch.com

38. Changing Views with navigation handler in java and sending params to the changed view    coderanch.com

I'm looking for a way to send parameters to another view when I'm changing the view in Java - not in the JSF markup. For example, I know I can pass params to another view using this in JSF: Then using the managed-property option of my managed bean definition to grab that param ...

39. f:view span across files?    coderanch.com

40. To view row specific data by clicking on the row link    coderanch.com

in the first.jsp file a datatable is consists of each one's private data (populated from database) and each row has a hyper link by clicking on that the it redirects to the personaldetail.jsp here that click person's private details are displayed. i think that it is feasible to do using session but i can't understand how to use sent session id ...

41. Grid view in jsf    coderanch.com

43. How to reset the view during RESTORE_VIEW phase    coderanch.com

Hi everyone, once again, I got myself into some weird situation again. Thanks for your patience. my page has a form that user can do search on a database table. My dataTable column begin with Delete and Edit button. My backing bean are in request scope. I have to use in order for my Delete and Edit button to function ...

45. JSF not restore view    coderanch.com

Guys i have one problem very strange! My application does not restore the view, but this problem only occurs in Internet Explorer and on some computers. I already did the test on two identical machines next to each other, with the same version of the browser. But in a work and another not. the error is that the JSF can not ...

46.  Element    coderanch.com

47. Incorrect state saving of the part of the view ?    coderanch.com

Hello, I have two similar JSF pages, linked to its own bean each. Each page contains a form with 3 panelboxes, and renders only one of them at a time, depending on the radiobutton position. Everything is OK for the one of the pages, but for the second I have a problem: the values sent from one of the panelboxes are ...

48. highly customising view layer    coderanch.com

50. Duplicate Id across my Views? How come?    coderanch.com

Hello Hebert and everybody! I've talked to a senior co-worker and the explained something that definitely solved the problem. As you said, it had to do with it, though not declaring the Id more than once, the same was being used twice in my environment. Through the use of Facelets, our pages are a composite of minor ones through the use ...

51. from-view-id with params    coderanch.com