JSF for Wizard
Hi all,
I have to create a wizard type interface. There will be one Page (an IFRAME) and 2 buttons "Back" and "Next". There will be 4 steps. For each step i have a seperate JSP which will show in that IFRAME. On First step the "Back" button will not be visible while on Last step the "Next" button will change into "Finish" button.
My question is if its possible to do this in JSF? If yes then how?
Thanks
Yes, it's possible, but instead of rolling your own, why not look at the wizard component included
in the Woodstock component [1] set?
[1] https://woodstock.dev.java.net
Similar Messages
-
Is there any component in JSF for file browsing
Hi Friends,
i have to place a file browser in my page,i am using JSF Framework. so i need file browser component in JSF , but i am not able to find the JSF Component for file browser.( in normal html there is this tag {<input type="file" /> } for file browsing ), is there tag for file browsing in JSF.Edukondalu_Avula wrote:
can you tell me what is the jar file i have to add for this taglib
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
Read reply #3. I have posted a link. -
Error with JSF for Single Page in MY Project But rmaining pages are working
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
javax.servlet.jsp.JspException: The absolute uri: http://java.sun.com/jsf/core cannot be resolved in either web.xml or the jar files deployed with this application
at tags.templates.InsertTag.doEndTag(InsertTag.java:26)
at org.apache.jsp.updatetpl_jsp._jspx_meth_template_insert_0(updatetpl_jsp.java:123)
at org.apache.jsp.updatetpl_jsp._jspService(updatetpl_jsp.java:65)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
update.jsp
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<f:view>
<h:form id="customerform">
<h:dataTable id="updatecustomers" value="#{data.updateModel}" var="updat">
<h:column>
<f:facet name="header">
<h:outputText value="CustomerNumber"/>
</f:facet>
<h:inputText value="#{updat.customerNumber}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="FirstName"/>
</f:facet>
<h:inputText value="#{updat.firstName}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="LastName"/>
</f:facet>
<h:inputText value="#{updat.lastName}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="StreetAddress"/>
</f:facet>
<h:inputText value="#{updat.streetAddress}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="City"/>
</f:facet>
<h:selectOneMenu id="chooseCity" value="#{updat.city}"required="true">
<f:selectItem itemValue="TVM" itemLabel="TVM"/>
<f:selectItem itemValue="Cochin" itemLabel="Cochin"/>
<f:selectItem itemValue="Bglr" itemLabel="Bglr"/>
<f:selectItem itemValue="Mysore" itemLabel="Mysore"/>
<f:selectItem itemValue="Calicut" itemLabel="Calicut"/>
</h:selectOneMenu>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="State"/>
</f:facet>
<h:selectOneMenu id="chooseState" value="#{updat.state}"required="true">
<f:selectItem itemValue="KL" itemLabel="Kerala"/>
<f:selectItem itemValue="KA" itemLabel="Karanataka"/>
</h:selectOneMenu>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Zip"/>
</f:facet>
<h:inputText value="#{updat.zip}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Save"/>
</f:facet>
<h:commandButton id="savesubmit" value="Save" action="#{data.saveData}">
</h:commandButton>
</h:column>
</h:dataTable>
</h:form>
</f:view>
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<!-- JSF Config Listener -->
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
<session-config><session-timeout>
30
</session-timeout></session-config>
<welcome-file-list><welcome-file>
index.jsp
</welcome-file></welcome-file-list>
<taglib>
<taglib-uri>/WEB-INF/tlds/template.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/template.tld</taglib-location>
</taglib>
</web-app>
please help me i am working with net beaans............i have added all required .jar files with that.The question mark icon on the dlls indicates that LabVIEW is unsure of
the location of the DLL, or is unable to locate the DLL on your
system. This can happen if the DLLs do not exist, or if the "Call
Library Function Node" just specifies the name of the dll, and not the
entire path to the dll. IVI and Instrument driver VIs will
typically not supply the entire path to the DLL, whch would cause the
question mark icon to appear.
If your application is working properly, then you should ignore the
question mark in the dependencies list. If your application is
broken because the DLLs cannot be found, they are installed with the
following drivers:
ivi.dll is installed with the IVI compliance package, which is available at the following link:
Drivers and Updates: IVI Compliance Package
You should also install the latest version of NI-VISA, which is required by the IVI Compliance Package:
Drivers and Updates: NI-VISA
ag3325b_32.dll is installed with the your instrument's IVI driver, which can be found below:
Agilent 3325b Instrument Driver
Jason S.
Applications Engineer
National Instruments -
I am currently developing a service that must be available through HTML/HTTP but also WML/HTTP. One of the reasons I have chosen JSF is that, in principle, it is independent from the markup language.
I would be very interested to hear from anyone who used JSF to render another markup than HTML, in particular WML.
Thanks,
Bruno Collet
http://www.practicalsoftwarearchitect.comHi Bill,
renderkit is independent on the concrete JSF implementation. But in the Sun reference implementation I�ve found a problem with duplication IDs in view(http://forum.java.sun.com/thread.jspa?forumID=427&threadID=524925). I must resolve it.
Now I'll finish with testing then I must register a domain and create a web presentation for JSF. I will give an announce when it's ready.
Thanks for support
Jijik -
JSF for big traffic sites? Any experiences
I am wondering if JSF is a good choice for websites with a lot of traffic, e.g. all these mega-hyped Web 2.0 community sites? As far as I know mostly all of them use PHP. Does anyone at all use Java for something like that? Why not?
Is there any reason that a serious Java stack with JSF on top would be the wrong choice for it? Is the memory footprint per user too big? Are there not enough ready-to-use opensource modules (forums, chat, picsupload...) written in Java?
I have found one single Web 2.0 site using Java (Wicket to be exact). What are the others using? Facebook, MySpace, LinkedIn and so are all PHP (I think).
Please comment. I still think JSF is the future of web development and I am wondering why it is used mainly only for relatively small(in user count) and closed intranet applications.Is there really noone out there that has tried this?
-
Looking for open source project in JSF for learning
Hi,
I am quite a beginner to JSF, I think it will be good to read some existing source code, could anyone recommend some projects that I can turn to? I am particual interested in an online text editor.
I think currently I could understand how the jsf works, its relationship with jsp, html, css,and how It could cooperate with AJAX. and I have written a small amount of web pages , which were aimed at providing a blog-publish like service. That's why I am interested in online text editor. But any other capable project would be also helpful for me.
Thanks.You can find (simple) samples here:
[https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderID=4036&expandFolder=4036&folderID=0]
[http://www.coreservlets.com/JSF-Tutorial/]
You can find a HTML/rich text editor as JSF component in the Mojarra Scales component library: [https://scales.dev.java.net/htmlEditor.html]. -
Hi, I'm pretty new to NWDS and I was wondering if someone could point me to a step-by-step guide on what I should do to be able to use JavaServer Faces in developing a Web App? Like how should I add the JSF libraries and is there a plugin for this? I looked everywhere and I can't seem to find a guide. This is my first time using NWDS 7.0 and I was using NetBeans for developing JSF applications.
Thanks.Hi,
I think this is a good tutorial :
http://help.sap.com/saphelp_nw70/helpdata/en/70/13353094af154a91cbe982d7dd0118/frameset.htm
Best Regards,
Ervin -
Hi, i googled a lot and did not find how to install JSF on eclipse ? how can I use Update manager to install JSF on eclipse ?
"Install JSF on Eclipse" is a somewhat odd and global question. What exactly do you expect?
At least here are some pointers:
JSF homepage: https://javaserverfaces.dev.java.net/
Eclipse WTP: http://www.eclipse.org/webtools/
Installing WTP: http://ftp.osuosl.org/pub/eclipse/technology/phoenix/demos/install-wtp/install-wtp.html
WTP JSF tutorial: http://www.eclipse.org/webtools/jsf/dev_resource/JSFTutorial-RC3/JSFTools_tutorial.html
WTP JSF scenarios: http://wiki.eclipse.org/index.php/WTP_JEE5_Test_Scenarios -
OffTopic: YahooGroup about JSF for Brazilians (and everybody too)
Estou convidando todos os brasileiros(e estrangeiros também) para participar do grupo sobre JavaServer Faces no Yahoo Groups.
http://br.groups.yahoo.com/group/javasf/join
I'm inviting brazilians and everybody to join on Yahoo Group about javaserver faces technologies, tools and patterns.
Thanks
http://br.groups.yahoo.com/group/javasf/joinor maybe if you can give a link of a good tutorial I�ll be greatfull
cheers yacine
Message was edited by:
fandi_yacine -
Hi All,
Wanna show my imaginary design of wizard using Wizard and JSF... but it seems not works some where. firstly let us the classes I have...
2 inferfaces and 1 abstract class
package wziard;
public interface IWizard {
// The return string for the JSF path
public String next();
public String back();
public String abort();
public boolean hasNext();
public boolean hasBack();
package wziard;
public interface WizardStep {
//do the business and return JSF path
String onNext();
String onBack();
}One wizard contains couple of wizardStep
package wziard;
import java.util.List;
public abstract class WizardBean {
public String next() {
String next = getCurrentStep().onNext();
setCurrentStep(ListUtils.getNext(getWizSteps(), getCurrentStep()));
return next;
public String back() {
String back = getCurrentStep().onBack();
setCurrentStep(ListUtils.getBack(getWizSteps(), getCurrentStep()));
return back;
public boolean hasNext() {
return !ListUtils.isLast(getWizSteps(), getCurrentStep());
public boolean hasBack() {
return !ListUtils.isFirst(getWizSteps(), getCurrentStep());
public abstract WizardStep getCurrentStep();
public abstract void setCurrentStep(WizardStep curStep);
public abstract List<WizardStep> getWizSteps();
public abstract String abort();
}Abstract wizardbean is to implement the wizard's constitutional features.
Then the wizard implements
package wziard;
import java.util.List;
@Stateful
@ConversationScope
@Named
public class RegisterWizard extends WizardBean implements IWizard {
@RegisterWizard // qualifier for wizards producers
@Inject
private List<WizardStep> wizardSteps;
private WizardStep currentStep;
private Conversation conversation;
@Override
public String abort() {
// TODO Go the JSF and end session
conversation.end();
return null;
@Override
public WizardStep getCurrentStep() {
// TODO Auto-generated method stub
return currentStep;
@Override
public List<WizardStep> getWizSteps() {
// TODO Auto-generated method stub
return wizardSteps;
@Override
public void setCurrentStep(WizardStep curStep) {
this.currentStep = curStep;
}The steps implementations:
package wziard.step;
import wziard.WizardStep;
import wziard.model.Account;
public class AccountInfoStep implements WizardStep {
@Named("newAccount");
@ConversationScope
private Account account;
public Account getAccount() {
return account;
public void setAccount(Account account) {
this.account = account;
@Override
public String onBack() {
// TODO Auto-generated method stub
return null;
@Override
public String onNext() {
// TODO Auto-generated method stub
return null;
package wziard.step;
import wziard.WizardStep;
import wziard.model.Person;
public class PersonInfoStep implements WizardStep {
@Named("newPerson");
@ConversationScope
private Person person;
public Person getPerson() {
return person;
public void setPerson(Person person) {
this.person = person;
@Override
public String onBack() {
// TODO Auto-generated method stub
return null;
@Override
public String onNext() {
// TODO Auto-generated method stub
return null;
package wziard.step;
import wziard.model.Contact;
public class ContactInfoStep implements WizardStep {
@Named("newContact");
@ConversationScope
private Contact contact;
public Contact getContact() {
return contact;
public void setContact(Contact contact) {
this.contact = contact;
@Override
public String onBack() {
// TODO do the business and return JSF path
return null;
@Override
public String onNext() {
// do the business and return JSF path
return null;
}other classes:
package wziard.utils;
import java.util.List;
public class ListUtils {
public static <T> T getNext(List<T> list, T obj) {
// TODO Auto-generated method stub
return null;
public static <T> T getBack(List<T> list, T obj) {
// TODO Auto-generated method stub
return null;
public static <T> boolean isLast(List<T> list, T obj) {
// TODO Auto-generated method stub
return false;
public static <T> boolean isFirst(List<T> list, T obj) {
// TODO Auto-generated method stub
return false;
package wziard;
import java.util.ArrayList;
import java.util.List;
import wziard.step.AccountInfoStep;
import wziard.step.PersonInfoStep;
public class WizardProducer {
@RegisterWizard
@Produces
private List<WizardStep> wizardSteps(@New AccountInfoStep s1,
@New PersonInfoStep s2, @New ContactInfoStep s3) {
List<WizardStep> steps = new ArrayList<WizardStep>();
steps.add(s1);
steps.add(s2);
steps.add(s3);
return steps;
}after all these in the JSF page
<h:inputtext name="username" value="#{newAccount.userName}">
<h:inputtext name="password" value="#{newAccount.password}">These ideas should be very straightforward, while the newAccount, newPerson, and newContact, which @Named in the WizardStep seems not hook up with JSF component, these value were not populated at all....
Can anyone kindly advise? thanks.Hello,
I faced the same problem, but on a Weblogic 10 server.
The problem with Weblogic 10 is, even if it's "supposed" to be a EE5 compliant server, it is not.
As described here http://e-docs.bea.com/wls/docs100/webapp/annotateservlet.html , there is no Dependency Injection in JSF managed beans:
The web container will not process annotations on classes like Java Beans and other helper classes.
But, WL 10 offers DI on Servlets, Filters and Listeners.
Here is how I solved it (probably not the best way, but it works for me):
- created a filter with a list of EJB injected (as it works). For every filtered request, set a list of known (enum) as request attributes mapped each to a EJB service:
public class EJBInjectFilter implements Filter {
@EJB
private MyEJBService ejbRef;
public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException,
ServletException {
log.debug("Setting EJB ref into request as attribute ");
req.setAttribute(ServiceEnum.MY_EJB_SERVICE.toString(), ejbRef);
chain.doFilter(req, resp);
- for every managed bean who needs a service you can do something like:
(MyEJBService) ((HttpServletRequest) FacesContext.getCurrentInstance().
getExternalContext().getRequest()).getAttribute(ServiceEnum.MY_EJB_SERVICE.toString())
to get a reference to service.
I agree it is a totally not elegant solution. But why does WL 10 say it's a full JEE5 compliant server, and though does not provide DI for managed beans?
A drawbacks I could think of is performance slow-down (for every request, apply filter, set list of attributes + references into request) - probably it does take some time.
Let me know your thoughts.
Edited by: cosminj on Nov 20, 2007 8:16 AM -
Tomahawk for jsf 1.2 problem with customizing treetable component
hi,
i've tried many times bu i've got no clue how to set custom icons in the tree. what i want to achieve is to display the server's local file system. however this component doesn't allow to explicit specify what the node type is (a directory or a file). as a result when it finds an empty directory entry, no icon is displayed. i googled a bit and i guess the project's documentation is not sufficient. any help appreciated. ofc if someone knows a better method (or a framework) to do the job, please let me know. thanks
cheersr035198x wrote:
You could store the value in the session and remove it when you need to use it.Thanks, r035198x. I tried that before and users from other Java forums suggest that I shouldn't do it this way as I am adding more codes than necessary to pass technically a value from one bean to another. Hence, I decided to follow their advice and went and created a generic bean that can be referenced by other beans for pages calculation. Some users also suggest using Dependency Injection (available for JSF 1.2) to try to accomplish the result I want. I've also read about this method in JSF 1.2 spec - but without much example, I'm pretty much in the dark as to how this work. Unfortunately, I've only been on JSF for the last 4 weeks so I'm still a newbie - please excuse any "dumb" questions I have asked on this forum so far...
What I currently has working for me is moving the method to calculate the pages from mybean1 to mybean2. This means all I have to do now for the other beans (11 remaining) is passed a few parameters to mybean2's method that calculate pages.
Edited by: icepax on 12/11/2009 18:27 -
Very big problem with JSF about FORM and "id=" for HTML form's elements and
I have discovered a very big problem with JSF about FORM and "id=" for HTML form's elements and java instruction "request.getParameterNames()".
Suppose you have something like this, to render some datas form a Java Beans :
<h:dataTable value="#{TablesDb2Bean.myDataDb2ListSelection}" var="current" border="2" width="50%" cellpadding="2" cellspacing="2" style="text-align: center">
<h:column>
<f:facet name="header">
<h:outputText value="Name"/>
</f:facet>
<h:outputText id="nameTableDb2" value="#{current.db2_name_table}"/>
</h:column>
</h:dataTable>
Everything works fine...
Suppose you want to get the name/value pairs for id="nameTableDb2" and #{current.db2_name_table} to process them in a servlet. Here is the HTML generated :
<td><span <span class="attribute-name">id=<span class="attribute-value">"j_id_jsp_1715189495_22:0:nameTableDb2">my-table-db2-xxxxx</span></td>
You think you can use the java instructions :
Enumeration NamesParam = request.getParameterNames();
while (NomsParam.hasMoreElements()) {
String NameParam = (String) NamesParam.nextElement();
out.println("<h4>"++NameParam+ "+</h4>);
YOU ARE WRONG : request.getParameterNames() wants the syntax *name="nameTableDb2" but JSF must use id="nameTableDb2" for "<h:outputText"... So, you can't process datas in a FORM generated with JSF in a Servlet ! Perhaps I have made an error, but really, I wonder which ?
Edited by: ungars on Jul 18, 2010 12:43 AM
Edited by: ungars on Jul 18, 2010 12:45 AMWhile I certainly appreciate ejb's helpful responses, this thread shows up a difference in perspective between how I read the forum and how others do. Author ejb is correct in advising you to stay inside JSF for form processing if form processing is what you want to do.
However, I detect another aspect to this post which reminds me of something Marc Andreesen once said when he was trying to get Netscape off the ground: "there's no such thing as bad HTML."
In this case, I interpret ungar's request as a new feature request. Can I phrase it like this?
"Wouldn't it be nice if I could render my nice form with JSF but, in certain cases, when I REALLY know what I'm doing" just post out to a separate servlet? I know that in this case I'll be missing out on all the nice validation, conversion, l10n, i18n, ajax, portlet and other features provided by JSF".
If this is the case, because it really misses the point of JSF, we don't allow it, but we do have an issue filed for it
https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=127
If you can't wait for it to be fixed, you could decorate the FormRenderer to fix what you want.
I have an example in my JSF book that shows how to do this decoration. http://bit.ly/edburnsjsf2
Ed -
How to disable a Next button for a particular step wihtin a ASP Web Wizard
Hi,
I am new to .Net and trying to use ASP wizard on my page. Within the ASP wizard steps I wanted to customise a particular Wizard setp: I have a wizard with follwing steps
Wizard:
Step 1
Step 2
Step 3
Step 4
If user is on step 3, he/she can add details and it should contains two buttons:
1. A standard Button to "Add another record" which will allow users to stay on the same step (step 3) and allow them to add another record
2 Previous button need to be renamed as "Done" once clicked it need to go back to STep 2
I want the Next button to be disabled for wizard step 3 becuase my requirement need to fill the details on step 3 and goback to Step 2 once user clicks "Done"
I tried using <StepNavigationTemplate> in aspx (or) e.cancel = true in code behind but that affects all the steps.
Can anyone suggest if I can customise a particular wizard step to disable the next button to suite my requirement?
ThanksHi Avanthiavudari,
Please post ASP.NET questions in
ASP.NET forums. More web developers there will give you professional help there.
Thanks for your understanding.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Why EJB for 10.1.3 JSF ?
Hi,
I'm a newbie in 10.1.3 and JSF.
I found that the SR demo is different from 10.1.2 by using JSF and EJB.
Does JSF prefer to use EJB ? How about ADF model used in 10.1.2 w/o EJB ?
I remember 10.1.2 mentioned to use Struts as JSF controller, but now in 10.1.3 changes to Faces controller. What's the difference ?
RegardsI don't think we ever recommended to use Struts as the controller for JSF.
If you choose to use JSF, and at Oracle we think JSF is a good choice, then go with JSF all the way both in the contoller and the view layer.
JSF has many advantages including the component based nature of it, and the way it automates handling states ad actions. In general we find it easier to use JSF for Web development than a JSP/Struts combination.
As far as the backend you can still use any combination you want, the first SRDemo that we released uses TopLink fronted by an EJB and binded using the ADF Model.
There is already a beta version of the SRDemo using ADF BC out on OTN, and this along with a developer guide book using ADF BC will be out later this year. -
Error trying to run a sample master-detail JSF form in Jdev 10.1.3
I've tried JDeveloper 10.1.3 folowing a tutorial , master-detail one , involving Adf Faces which I found it here http://www.oracle.com/technology/products/jdev/101/tutorials/e2ebcfaces/buildmaster-detailpagewithjdevandadfbc.htm.
1. I dowloaded JDeveloper 10.1.3
2. I made -in Jdeveloper- a connection to OE8 schema
2. I created an application with web application template ; in my new workspace i had 2 projects Model and ViewController
3. In model i choose Business Tier - ADF Bussiness Components - Business Components from Tables and I followed instructions in tutorial
4. In ViewController I created Web Tier - JSF - JSF JSP , with the JSF-JSP wizard a jsp page browseCustomerOrders.jsp. For building a master detail form i folowed instructions in tutorial
However ...
5. When I tried to run i received ....
" [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
**** Unable to obtain password from principals.xml. Using default.
D:\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config>
D:\jdevstudio1013\jdk\bin\javaw.exe -ojvm -classpath D:\jdevstudio1013\j2ee\home\oc4j.jar;D:\jdevstudio1013\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config D:\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config\server.xml
[waiting for the server to complete its initialization...]
05/11/30 12:04:16 Exception in thread "OC4J Launcher" oracle.classloader.util.AnnotatedNoClassDefFoundError:
Missing class: oracle.core.ojdl.logging.LoggingConfiguration
Dependent class: com.evermind.server.XMLApplicationServerConfig
Loader: oc4j:10.1.3
Code-Source: /D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar
Configuration: <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar
The missing class is not available from any code-source or loader in the server.
05/11/30 12:04:16 at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2073) [D:/jdevstudio1013/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1681) [D:/jdevstudio1013/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1633) [D:/jdevstudio1013/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1618) [D:/jdevstudio1013/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap]
at com.evermind.server.XMLApplicationServerConfig.initJ2eeLogging (XMLApplicationServerConfig.java:243) [D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.XMLApplicationServerConfig.postInit (XMLApplicationServerConfig.java:255) [D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.xml.XMLConfig.init (XMLConfig.java:200) [D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.xml.XMLConfig.init (XMLConfig.java:117) [D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServerLauncher.run (ApplicationServerLauncher.java:74) [D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at java.lang.Thread.run (Thread.java:595) [jre bootstrap, by jre.bootstrap]
05/11/30 12:04:16 Fatal error: server exiting
Process exited with exit code 1. "
Where do you think i am wrong?
Many thanksHi,
the problem seems not to be within your application but in missing files on your embedded OC4J. Just try and unzip the JDeveloper 10.1.3 install again.
Frank
Maybe you are looking for
-
Why error in "NIReport.llb"?
Hi all! I´m using Labview 8.0 and I having problems when I close my program. Basically I created a sub VI to print some datas and always when I want quick the program this message appears: Print HTML Report using IE.vi has unsaved changes. Save - All
-
Why is my iMac so slow? OSX 10.5.8.
Frustrating frequently I get the color wheel when opening simple email, also when scrolling web pages on Firefox. 2008 Computer has 500GB of memory with 150GB available; 2GB 800MHz DDR2 SDRAM. I try to run with very few programs open, but still quite
-
When converting word doc to pdf with Acrobat words getting cut off?
Hi all, As you can see from this example: When converting from word document the words on the pages in the final PDF are getting cut off on the edge of the page? I've adjusted the margins in page layout in MS Word to Normal, Moderate & Wide etc, etc
-
Not Required Main Work Centre on Order Header Maintenance Order
Hi Experts, I want to know about main work center on order header maintenance order. Standart SAP is main work center required, and i want to set main work center on order header is not required. How Can i set Main Work center on order header is not
-
Moving Photos Between iPhoto Libraries
I have established a second iPhoto library but an not clear on how to move photos from the original library to the second library. Seems it should be simple - from the original library I highlight the photos to be exported to the second library, then