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 ... |
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?
... |
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 ... |
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 = ...
|
[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 ... |
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 ... |
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 ...
|
|
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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>
...
|
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 ... |
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 ... |
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 ... |
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>
...
|
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 ... |
|
|
|
23. JSF View 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 - ... |
|
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 ... |
|
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 ... |
|
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 ... |
|
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 ... |
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 ... |
|
|
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 ... |
|
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 ... |
|
|
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 ... |
|
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 |
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 ... |
|
|
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 ... |
|