I have to warn you: the question may be rather silly, but I can't seem to wrap my head around it right now.
I have two managed beans, let's say A and ... |
I'm using IntelliJ to do Java Development for an application where we use JSF in a few places. In the .jsp file I have defined my backing class and the ... |
What is the best way to make "Back" links, so that the application stays consistent after navigation.
onclick="history.go(-1)". Is this very harmful?
- Using a stack in a backing bean that pops you the ...
|
I have a footer link "Privacy Policy" in my application. When user clicks this link we display some information on the page along with a "Back" link.
Now requirement is when user ... |
I want to conditionally navigate to some page. If some condition is true i want to navigate to some other page else i want to remain on the same page. I ... |
I need your help!
I have a jsf app, which now have 2 versions - one for mobile and one for desktop browsers. The pages for desktop lie in folder /html, and ... |
In JSF2, I was wondering how I could navigate to a page automatically based on a value - automatically meaning, without having to click a button or commandLink?
I have a composite ... |
|
I am not able to navigate from one page to another after clicking the button on the page. I have defined the navigation rules.
<managed-bean>
<description>helloWorld</description>
<managed-bean-name>helloWorld</managed-bean-name>
<managed-bean-class>com.ritz.web.HelloWorld</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/HelloWorldProg.xhtml</from-view-id>
<navigation-case>
...
|
I have an application using JSF, which has a navigation bug. The homepage, which is index.jsp (however I have an index.faces file -- and this file is listed in the ... |
If I place, for instance, the following component and click it, it behaves as expected:
<h:commandLink value="Click me" action="anotherPage.jsf" />
But if I use Ajax:
<h:commandLink value="Click me" action="anotherPage.jsf"><f:ajax /></h:commandLink>
It doesn't navigate to the ... |
I'm migrating old projects from JSF 1.2 to JSF 2.0.
The projects are JSP based.
I'm having trouble with implicit navigation after the migration.
The action methods that return values (Let's say, for internal ... |
I have a JSF2 project with a "view user" page that reads the currently selected user from a session bean; userHandler.selectedUser.
The page is intended to be visited by navigating with links ... |
I'm trying to wrap my head around navigation rules in JSF2.0. If I have a button with an action method, is the purpose of the navigation rule to move me to ... |
I have simple JSF application. Everything works fine, but not navigation. It behaves like <navigation-rule>s were not there. In my faces-config.xml I have some navigation rules like:
<navigation-rule>
<from-view-id>/view/party/create/create.xhtml</from-view-id>
<navigation-case>
...
|
Framework: JSF 2.0.
My problem: I have a page, called login.xhtml. Whenever someone view that page, it invoked a filter, called Authentication filter. The filter will check, if user already loged ... |
Good morning! I am novice. I have a simple JSF application. But it does not work as expected.
This is my login.xhtml:
<h:body>
<h:outputText value="Please enter your login and ...
|
I am using Netbeans 7.0, Glassfish 3.1, JSF 2.0
I am trying to navigate from one view to another in a step-wise user registration process (with three steps). Each step corresponds ... |
I got a page with a form like this :
<h:form>
<h:commandButton value="click" action="#{searchBean.doSearch}" >
<f:ajax execute="@form" render="result"></f:ajax>
</h:commandButton>
...
|
I created a simple JSF app, that presents a question for the user, and a set of possible answers as radio buttons.
When the user chooses the answer and submit, my ... |
|
|
|
|
Hi there, I encountered a navigation problem, and hope I can get help from here. My page layout is header-menu-content. This layout is defined in a layout.jsp page using tag. In my menu.jsp page, I have a list of link, which was generated dynamically using . What I want to do is when clicking on the link, it will go ... |
Looks like you are getting a 404 - Page not found exception. The reason is because of the path. Taken from the documentation. path - Context relative path to the specified resource, which must start with a slash ("/") character. FacesContext.getCurrentInstance().getExternalContext().dispatch("NoDataFound.jsp"); should be FacesContext.getCurrentInstance().getExternalContext().dispatch("/WEB-APPLICATION-CONTEXT/PATH-TO-NoDataFound.jsp"); substitue WEB-APPLICATION-CONTEXT with your WebApplication Context. and the "PATH-TO-NoDataFound.jsp" should be substituted with the path to NoDataFound.jsp ... |
|
|
|
Hi, I have a jsp set up to display a list of items from a backend DB, using a dataGrid. One of the columns is an update link for each row. Here is part of the listing code: TransactionListing.jsp: |
Hi All I have tried to create a simple app in JSF. the first page is shown correctly and I followed all the proper rules for creating a jsf app. However I am unable to go to the second page when I click on the command button. I am keeping the code for everybody's reference..please tell me what to do as ... |
Hi, I want to do validation.When i click the commandbutton some validation should be done here.depending on that the action should be done.But if the function is returning false also the the form is calling the backing bean.I should stop that action if the function return false. Is this the correct way function check() { var value=document.getElementById('form:field1').value; if(value=="") { alert('Please select ... |
|
|
Hi I am having a jsf page say File1.jsp, in which I have a command link, once I click that command link it does some process. Once this page is success it has to go and call the servlet say PDFServlet(which does some processing to display my image). I can't able to give the servlet path during dynamic navigation in jsf ... |
|
|
|
I have three pages. 1. index.jsp 2. Main.jsp 3. Register.jsp The flow starts with index page does nothing but uses jsp:forward to main.jsp (working fine.). Then the main.jsp has a outputText surrounded by a commandlink action register which when clicked shall take me to register.jsp(not working). However when I directly open main.jsp(bypassing the index.jsp itself) the commandLink is fully functional... what ... |
|
Hello, I am new to JSF and am having a problem with navigation. I have a button on a jsf page defined like so (brackets deliberately left out): h:commandButton value="Customize View" action="#{issueListener.getViewSettings}" The method is defined as follows: public String getViewSettings() { log.info("--------------------------------------------------"); log.info("Entering getViewSettings"); log.info("--------------------------------------------------"); return "customView"; }//end getViewSettings method The navigation rule in faces-config.xml is: customView /Issue_customview.jsp ... |
|
|
|
|
|
Hi, I'm trying to figure out how to approach this problem in JSF. I have an application, guarded with a ServletFilter (using NTLM authentication with jCIFS) that's checking for an authentication token in the session. If the token is absent, the browser pops up a login box and lets the user enter credentials. At this point the filter allows the request ... |
|
|
|
Hi, I am a newbie to JSF. One of the projects that i am currently involved in, has a requirement of single sign on (SSO) , where in the user will log into their windows workstation and they will open my web application deployed in JBoss AS. Now my web application should get only the username/userid of the logged-in user from ... |
I am not able to navigate between pages and there are no errors shown also. But when the same command button is clicked twice , a error occurs. The web.xml used is as below : " target="_blank" >http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> javax.faces.CONFIG_FILES /WEB-INF/faces-config.xml Faces Servlet javax.faces.webapp.FacesServlet 0 Faces Servlet *.faces ... |
|
|
Hi, I am using ADF faces in my project i am having a problem like this. I am having a data table where in i am setting the "rows" attribute for the same to 100, so at a time only 100 records will be displayed in the grid. The navigation part appears fine on the top of the data table. I ... |
|
|
|
|
|
|
|
hi friends I have 4 jsp files login, footer, home & about in footer page I only have and in this page also I put 2 link footer page source |
72. coderanch.comIn JSF 1, you needed navigation rules to connect views together. In JSF2, you can specify navigation directly from the Action processors. I don't recommend doing that in most cases, but a lot of people will shout me down on that one. I have a number of projects that use navigation rules with xhtml. Then again, they mostly run under JSF ... |
|
|
Apologies for the late response.. "ON LOAD" meaning, lets say, page 1 was supposed to be rendered in the happy path scenario (retrieving data from DB).. But before it could be completed successfully, there is a exception generated.. So In this kind of scenario, I would like to render a "system error" kind of "System Error page" ... Please let me ... |
Hello everybody, I am new to JSF and I have a very simple question. I have placed two file in a folder: - /authentication/login.xhtml - /authentication/loginFailed.xhtml and the home page file in another: /home.xhtml How could I modify the navigation rule in way that, in case of login successful, the subpath "/authentication/" could disappear? The problem is that, if it remains, ... |
|
|
|
|
|
|
|
|