JSF event-handling question

Discussion in 'Java' started by Bloody Viking, Feb 1, 2008.

  1. Hi.

    I'm a JSF newbie.

    I am developing an app that has significant initialization. I've put
    all that in a bean. I'm displaying a page while it initializes, with a
    button to press. But I'd really like it simply to display a message
    while the initialization is happening, and have it automatically
    display the next JSF page when the bean returns. How would I do that?

    The current JSF for this page is:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
    www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <head><title>WebPrints Initialization</title></head>
    <body>
    <jsp:useBean id="init" class="com.pedheart.prints.InitializerBean"
    scope="session"></jsp:useBean>
    <f:view>
    <h2 align="center"> <h:eek:utputText value="#{msg.waitForIt} #{msg.app}
    #{msg.event}"></h:eek:utputText></h2>
    <h:form><h:commandButton value="#{msg.nextPage}" action="nextPage1"/
    ></h:form>

    </f:view>
    </body>

    - Paul Lieberman

    </html>
     
    Bloody Viking, Feb 1, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ranma79

    JavaServer Faces (JSF) Question

    ranma79, Apr 5, 2004, in forum: Java
    Replies:
    1
    Views:
    420
    Chris Smith
    Apr 7, 2004
  2. JSF Tough Question

    , Jan 20, 2005, in forum: Java
    Replies:
    2
    Views:
    591
  3. dudu
    Replies:
    0
    Views:
    381
  4. Sebastian Fey

    JSF debugging / JSF newsgroup

    Sebastian Fey, Apr 7, 2006, in forum: Java
    Replies:
    1
    Views:
    7,634
    Danno
    Apr 7, 2006
  5. BlackIce
    Replies:
    1
    Views:
    17,182
Loading...

Share This Page