Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSF
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
JSF
JSF View
Sandip Chaudhuri
Greenhorn
Posts: 26
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
When a request is received the view is created,initialised or reused. However when a new page is rendered by the navigation is the view created or initialised or rendered ?
BTW does anyone have any idea why my
jsf
page is not working
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%> <f:view> <f:loadBundle basename="labelProperties" var="labels" /> <html> <head> <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/rbs.css"> <script src="${pageContext.request.contextPath}/scripts/rbsCommon.js" type="text/javascript"></script> <title><h:outputText value="#{labels.L001}"/></title> </head> <body> <h:form id="form"> <FIELDSET> <LEGEND><h:outputText value="#{labels.L001}"/></LEGEND> <h:panelGrid id="grid" columns="2" > <h:outputLabel id="labelProfileId" value="#{labels.L002}" for="profileID"/> <h:inputText id="profileID" value="#{securityProfile.profileID}" size="4" maxlength="4" required="true" styleClass="disabledStyle" tabindex="-1" binding="#{securityProfile.bindProfileId}"/> <h:outputLabel id="labelProfileName" value="#{labels.L003}" for="secProfileDesc"/> <h:inputText id="secProfileDesc" value="#{securityProfile.securityProfileDataBean.secProfileDesc}" size="60" maxlength="60" required="true" binding="#{securityProfile.bindSecProfileDesc}"/> <h:outputLabel id="labelPwdNeverExpires" value="#{labels.L007}" for="passwordNeverExpiresFlag"/> <h:selectBooleanCheckbox id="passwordNeverExpiresFlag" value="#{securityProfile.passwordNeverExpiresFlag}" immediate="true" binding="#{securityProfile.bindPasswordNeverExpiresFlag}" immediate="true" onklick="this.form.submit();" valueChangeListener="#{securityProfile.togglePasswordExpiryDays}" /> <h:outputLabel id="labelPwdExpiryDays" value="#{labels.L008}" for="passwordExpiryDays" /> <h:inputText id="passwordExpiryDays" binding="#{securityProfile.bindPasswordExpiryDays}" value="#{securityProfile.securityProfileDataBean.passwordExpiryDays}" size="10" maxlength="5" required="true"/> </h:panelGrid> </FIELDSET> <br> <div id="buttonbar"> <h:commandButton id="save" value="SAVE" action="#{securityProfile.submit}" styleClass="button"/> </div> <h:messages showDetail="true" showSummary="false" layout="table"/> </h:form> </f:view> </body> <script> </script> </html>
helloworld.jsp
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%> <html> <head> <title>Hello World</title> <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/rbs.css"> <script src="${pageContext.request.contextPath}/scripts/rbsCommon.js" type="text/javascript"></script> </head> <body> <f:view> <h:form id="form"> <h:panelGrid id="grid" columns="2"> <h:outputText id="output1" value="Please enter your Id"/> <h:inputText id="input1" required="true" value="#{securityProfile.securityProfileDataBean.profileID}"/> <h:commandButton id="button1" value="press me" action="#{securityProfile.getData}"/> <h:commandLink id="button3" value="ADD ME" action="success" immediate="true"/> <h:messages showDetail="true" showSummary="false" layout="table"/> </h:panelGrid> </h:form> </f:view> </body> </html>
Sandip Chaudhuri
Greenhorn
Posts: 26
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
the
java
code for getData
public String getData() { if(this.securityProfileDataBean.getProfileID() !=null) { SecurityProfileDAOImpl as = new SecurityProfileDAOImpl(); this.securityProfileDataBean = as.getSecurityProfile(this.securityProfileDataBean.getProfileID()); return "success"; } return "failure"; }
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JSF Error : cannot get value for expression
Component ID frm1_window viewid has already been found in the view
jsf panelGrid
Richfaces Scrollable Datatable with filtermethod not working
actionlistener for selectBooleanCheckbox doubt?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
More...