JSF-MessageBox-BaluC-All

Hai BaluC Sir ,
Still i am facing that Message box problem. you suggested me change Session scoped bean to Request scoped bean , i did the same but thereafter my total form is not working because the forms needs some session scoped data for next transaction . is any other way to solve this problem?.
This is my detailed code :
public boolean getSaveSucceed() {
return saveSucceed;
public void setSaveSucceed(boolean saveSucceed) {
this.saveSucceed = saveSucceed;
public void saveAction()
saveSucceed=true
whenever this saving process is success i am getting that message box because the saveSucceed value true ,till now there is no problem .
when i again open that same form for next transaction , the JSF Framework calls the first process of life cycle " RESTORE_VIEW" with session value(saveSucceed=true) , thats why again i am that message box . please explain me is it possible to access the " RESTORE_VIEW" for setting saveSucceed=false.
is there any other way to solve this problem easily? i do not want use any third party tools other then JSF .
Thanks
Selvakumar

Why don't you put a dummy value in request scope when save succeed using facesContext#getExternalContext()#getRequestMap()#put() instead of "saveSucceed=true" and check for "not empty" value in the rendering of your box? In this way your bean can be session scoped and the rendering flag will be request scoped.

Similar Messages

  • Want to integrate all jsf pages into one application like globle mene

    Hi,
    i have created lot of jsf pages, that all are in diffrenet-2- systems. Now i want to integrate all page in one system for one application. please tell me how i can integrate these in jdeveloper.
    Thanks in Advance.
    Sanjay

    Hi,
    if you want them all under one J2EE context root during runtime then you have to move the files to one project root, which is a manual configuration to do. For build requirements like this i think looking into Apache Maven could hep.
    Frank

  • How can I put an output stream (HTML) from a remote process on my JSF page

    Hello,
    I've a question if someone could help.
    I have a jsf application that need to execute some remote stuff on a different process (it is a SAS application). This remote process produces in output an html table that I want to display in my jsf page.
    So I use a socket SAS class for setting up a server socket in a separate thread. The primary use of this class is to setup a socket listener, submit a command to a remote process (such as SAS) to generate a data stream (such as HTML or graphics) back to the listening socket, and then write the contents of the stream back to the servlet stream.
    Now the problem is that I loose my jsf page at all. I need a suggestion if some one would help, to understand how can I use this html datastream without writing on my Servlet output stream.
    Thank you in advance
    A.
    Just if you want to look at the details .....
    // Create the remote model
    com.sas.sasserver.submit.SubmitInterface si =
    (com.sas.sasserver.submit.SubmitInterface)
    rocf.newInstance(com.sas.sasserver.submit.SubmitInterface.class, connection);
    // Create a work dataset
    String stmt = "data work.foo;input field1 $ field2 $;cards;\na b\nc d\n;run;";
    si.setProgramText(stmt);
    // Setup our socket listener and get the port that it is bound to
    com.sas.servlet.util.SocketListener socket =
    new com.sas.servlet.util.SocketListener();
    int port = socket.setup();
    socket.start();
    // Get the localhost name
    String localhost = (java.net.InetAddress.getLocalHost()).getHostAddress();
    stmt = "filename sock SOCKET '" + localhost + ":" + port + "';";
    si.setProgramText(stmt);
    // Setup the ods options
    stmt = "ods html body=sock style=brick;";
    si.setProgramText(stmt);
    // Print the dataset
    stmt = "proc print data=work.foo;run;";
    si.setProgramText(stmt);
    // Close
    stmt = "ods html close;run;";
    si.setProgramText(stmt);
    // get my output stream
    context = FacesContext.getCurrentInstance();
    HttpServletResponse response = (HttpServletResponse) context.getExternalContext().getResponse();
    ServletOutputStream out = response.getOutputStream();
    // Write the data from the socket to the response
    socket.write(out);
    // Close the socket listener
    socket.close();

    The system exec function is on the Communication palette. Its for executing system commands. On my Win2K system, the help for FTP is:
    "Ftp
    Transfers files to and from a computer running an FTP server service (sometimes called a daemon). Ftp can be used interactively. Click ftp commands in the Related Topics list for a description of available ftp subcommands. This command is available only if the TCP/IP protocol has been installed. Ftp is a service, that, once started, creates a sub-environment in which you can use ftp commands, and from which you can return to the Windows 2000 command prompt by typing the quit subcommand. When the ftp sub-environment is running, it is indicated by the ftp command prompt.
    ftp [-v] [-n] [-i] [-d] [-g]
    [-s:filename] [-a] [-w:windowsize] [computer]
    Parameters
    -v
    Suppresses display of remote server responses.
    -n
    Suppresses autologin upon initial connection.
    -i
    Turns off interactive prompting during multiple file transfers.
    -d
    Enables debugging, displaying all ftp commands passed between the client and server.
    -g
    Disables file name globbing, which permits the use of wildcard characters (* and ?) in local file and path names. (See the glob command in the online Command Reference.)
    -s:filename
    Specifies a text file containing ftp commands; the commands automatically run after ftp starts. No spaces are allowed in this parameter. Use this switch instead of redirection (>).
    -a
    Use any local interface when binding data connection.
    -w:windowsize
    Overrides the default transfer buffer size of 4096.
    computer
    Specifies the computer name or IP address of the remote computer to connect to. The computer, if specified, must be the last paramete
    r on the line."
    I use tftp all of the time to transfer files in a similar manner. Test the transfer from the Windows command line and copy it into a VI. Pass the command line to system exec and wait until it's done.

  • Weblogic  10.3.5.0 and JSF 2.0 ?

    Hi We have Weblogic 10.3.5 even though we are extending our domain with jdeveloper 11.1.2 runtime but we still are unable to find the jsf 2.0 being deployed. I deployed the jsf-2.0 libraries after uninstalling the jsf-1.2 , jsf#[email protected]
    After this managed server for adf doesn't come up. and following error is thrown :
    Default (self-tuning)'> <<WLS Kernel>> <> <2297f9d2c9a41f96:28746190:132fa606cc9:-8000-00000000000023cc> <1318467739123> <BEA-101162> <User defined listener com.sun.faces.config.ConfigureListener failed: java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/sun/facelets/tag/TagDecorator.
    java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/sun/facelets/tag/TagDecorator
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:290)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1874)
    Followed by
    Caused By: java.lang.NoClassDefFoundError: com/sun/facelets/tag/TagDecorator
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:343)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:302)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
    Without JSF 2.0, as expected the deployment fails complaining :
    Caused By: weblogic.management.DeploymentException: Error: Unresolved Webapp Library references for "ServletContext@352230844[app:HLKiosk_V1 module:HLKiosk path:/HLKiosk spec-version:2.5]", defined in weblogic.xml [Extension-Name: jsf, Specification-Version: 2, exact-match: false]
    Are there any additional steps in the process that we need to take care of ?
    I learnt that jsf2.0 is supported with weblogic 10.3.5 (11g latest release).
    Edited by: user1015897 on Oct 13, 2011 10:25 AM

    To use JSF 2.0, all you need to do is deploy the MW_HOME/wlserver/common/deployable-libraries/jsf-2.0.war as an application library, then reference it in the relevant weblogic descriptor. It looks like you have done both those two steps.
    I wonder if the ADF domain extension is not having some effect here -- IIRC an ADF domain is a pretty customized environment which loads libraries directly from the CLASSPATH, in which case, perhaps there is a conflict arising from that in terms of classloader visibility.
    Can you try your app on a standard WLS domain, or are you specifically needing to use an ADF domain?
    -steve-

  • Building the site structure for a dynamic website with JSF

    Hi,
    I am still a JSF-beginner.
    I try to build a fully-functional base-demo-application with a fix and a dynamic part.
    Fix part for menu, dynamic part for site-content.
    At the moment, the JSF-hyperlinks of the main menu work, but any JSF-parts in the included documents of the dynamic part are not shown. I guess, this is dued to inclusion of subviews, but I cannot find any similar examples in the web to come one step further.
    Here my complete demo:
    faces-config.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
    <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
    <from-outcome>site1</from-outcome>
    <to-view-id>/site1.jsp</to-view-id>
    <redirect>
    </redirect>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
    <from-outcome>site2</from-outcome>
    <to-view-id>/site2.jsp</to-view-id>
    <redirect>
    </redirect>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    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.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>*.jsf</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>
    30
    </session-timeout>
    </session-config>
    <welcome-file-list>
         <welcome-file>
    index.jsp
    </welcome-file>
    </welcome-file-list>
    </web-app>
    index.jsp:
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <% response.sendRedirect("/jsfportal/site1.jsf"); %>
    site1.jsp:
    <?xml version="1.0" encoding="UTF-8" ?>
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <% String site = "1"; %>
    <%@ include file="base.jsp" %>
    dynamic_site1.jsp:
    <h1>Welcome to site 1</h1>
    Have fun visiting our portal
    site2.jsp:
    <?xml version="1.0" encoding="UTF-8" ?>
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <% String site = "2"; %>
    <%@ include file="base.jsp" %>
    dynamic_site2.jsp:
    <h1>Welcome to site 2</h2>
    Go to site 1: *<!-- And this is the JSF-link that is NOT shown: -->*
    <f:view>
    <h:form>
    <h:panelGrid border="0" columns="0">
    <h:commandLink id="p1" action="site1" value="Site 1" />
    </h:panelGrid>
    </h:form>
    </f:view>
    base.jsp:
    <%@ page language="java" %>
    <%@ page import = "java.io.*" %>
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%
    String title = "";
    int siteInteger = 0;
    String dynamic_site = "";
    if ( site != null )
    if (
    ( site.length ( ) > 0 )
    ( site.length ( ) <= 30 )
    if ( isNumeric ( site ) )
    siteInteger = Integer.valueOf ( site ).intValue ( );
    switch ( siteInteger )
    case 2: title = "Site 2";
    dynamic_site = "dynamic_site2.jsp";
    break;
    default:
    title = "Site 1";
    dynamic_site = "dynamic_site1.jsp"; // Start page
    %>
    <html xmlns="http://www.w3.org/1999/xhtml"
    lang="de" xml:lang="de">
    <head>
    <title>
    <%= title %>
    </title>
    <meta name="description" content="test site" />
    <meta name="keywords" content="test site" />
    </head>
    <body>
    <div width="100%" style="text-align:left">
    <table width="970" border="0" cellspacing="0" cellpadding="0" style="background-color:#ffffaa;margin-top:25px;">
    *<!-- this is not good style putting CSS directly into HTML but it is a demo now ;) -->*
    <colgroup>
    <col width="970" />
    </colgroup>
    <tr>
    <td valign="top" align="left" style="padding:25px;">
    +<h1>+
    JSF portal
    +</h1>+
    </td>
    </tr>
    </table>
    <table width="970" border="2" cellspacing="0" cellpadding="0" style="background-color:#f5f5f0">
    <colgroup>
    <col width="270" />
    <col width="700" />
    </colgroup>
    <tr>
    <td valign="top" align="left" style="padding:25px; padding-left:40px;padding-bottom:320px;">
    <f:view>
    <h:form>
    <h:panelGrid border="0" columns="0">
    <h:commandLink id="p1" action="site1" value="Site 1" />
    <h:commandLink id="p2" action="site2" value="Site 2" />
    </h:panelGrid>
    </h:form>
    </f:view>
    </td>
    <td valign="top" align="justify" class="haupttext" style="padding:24px;">
    <p align="justify">
    <f:subview id="subview1">
    <jsp:include page="<%= dynamic_site %>" flush="true">
    <jsp:param name="" value="" />
    </jsp:include>
    </f:subview>
    </p>
    </td>
    </tr>
    </table>
    </div>
    </body>
    </html>
    <%!
    public boolean isNumeric ( String myInput )
    if (myInput == null || myInput.length() < 1)
    return false;
    int start = 0;
    if (myInput.charAt(0) == '-')
    start = 1;
    for(int i = start; i < myInput.length(); i++)
    if (!Character.isDigit(myInput.charAt(i)))
    return false;
    return true;
    %>
    Who can name me that code positions responsible for that the JSF link in the dynamic part is not shown?
    It is not that it does not work it is not shown. The JSF tree seems to be cut because of wrong use of view and subview etc.
    (To put view tags in site1.jsp and site2.jsp does not help.)
    (Once having afforded an example it should go... (*Then* with JSTL, external CSS, etc. ;) )
    Dynamical site structure with include files is the big problem at the moment.)
    bye, Maik

    I found your following suggestions for such cases (seems you are the only profound JSF freak in the world...? :-) )
    Switch between subviews in one main page
    http://balusc.blogspot.com/2007/01/dynamic-jsf-subviews.html
    But the main problem for me is that I never find complete examples, but always fragments and it would be important for a beginner to have at least once a complete JSF example over a few subviews, especially here where it is very easy to corrupt the internal tree.
    (Some examples use the subview tags in the calling JSP, some in the called e.g.... Does not matter where to put it? Some use verbatim tags for HTML code outside JSF, some don't... and so on)
    Can anyone give me an URL for a complete example of a JSF site (with all files as possible, I am not very patient, too, but in this case it makes sense to have it entire ;-) ) with dynamic switches of subviews as preferentially used for bigger portal sites?

  • JSF or Struts

    Hi,
    We have a web application designed using MVC framework. Besides a web view, we now need to support mobile users using WML.
    We are considering JSF and struts (customising struts to handle WML client).
    I have read that JSF supports disparate clients efficiently using RenderKits.
    Can anyone suggest whether JSF has an easy to use WML RenderKit. How does a renderkit work? Is there any good documentation online?
    Is there a Renderkit for WML readily avaialble or will I have to make one? I know there was a link posted in one of the questions in this forum, but it is a dead link.
    Thanks in advance,
    Harsha

    JSF is better than Sturts. ("Until now there is no sucess story on JSF.")
    Becoz, Struts inventor has been hired by SunMicroSystems to work with JSF. The same guy mentioned in an interview, that struts developement will be stopped in future.
    Also..,
    Until now there is no sucess story on JSF. Only time can decide which is best.
    My suggestion is, better spend your time in learning more jsp and servlets specifications, XML/XSLT, JMS, Webservices rather JSF/Struts.
    All these frameworks like JSF/Sturts will depends on your project requirement. There is a nice book and online document in this website about design patterns. Read those things if you have time. You will get good idea.
    Well.., this is all my personal opinions.

  • JSF Components are not displaying :-(

    Cheers to All:
    What I have done is create a simple Java Server Faces project whereby I created a web project and added MyFaces JSF capability in MyEclipse. Next I created some JSFs and markups for the frontend portion of this example. What I am trying to accompllish is move around the different JSFs to ensure everything is working properly before I get complicated.
    When I type in the URL to the Parent (index.html), I get the markup to display. When I click on the link, what is suppose to happen is the screen moves to the index.jsp. The index.jsp has nothing more than a forward to the main.jsf. In this JSF is where all the Java Server Faces markup is located.
    When I process through to the main.jsf page, nothing is diplayed other than the <h2> element. The jsf input elements are not there! I am led to believe this is a configuration issue.
    I have tried to deploy this application on JBoss4.0.5 and Tomcat 5.5. In both cases, the same results are displayed with NO stacktraces.
    This is the main.jsf file:
    <%@ page contentType="text/html"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <f:view>
      <html>
        <head>  
          <title>A Simple JavaServer Faces Registration Application</title>
        </head>
        <body>
          <h:form>
           <h2>JSF Registration App</h2>
           <h:commandLink action="register">
              <h:outputText value="Click here to register.."/>
           </h:commandLink>
          </h:form>
        </body>
      </html>
    </f:view>I am new to JSF. Is there something I can use in guiding me through the debugging of this error? I am assuming the tag libraries exist somewhere other than within the project's web/lib directory......
    Thanks in advance for any suggetions/comments:
    Russ
    Message was edited by:
    supercoder97

    Okay! We are working :-)
    What I had to do was change the foward from:
    <jsp:forward page="/main.jsp" /> to:
    <jsp:forward page="/faces/main.jsp" /> and everything worked and matched the web.xml
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
      </servlet-mapping> Russ

  • How to create a new custom tag in JSF 1.2

    Hi there,
    In JSF 1.2, all the classes (CommandButtonTag, CommandLinkTag, DataTableTag,...) in package com.sun.faces.taglib.html_basic are defined as final class. In JSF 1.1, we can create a custom tag that extends the tag in JSF taglib; it save us lots of time.
    Could anybody know how to create a new custom tag in JSF 1.2?
    Many thanks,
    Emily

    If I recall, it was done because how tags were to be handled in 1.2 was very different from 1.1 and it was felt that developers shouldn't rely on implementation specific classes (unless they were SPI) for several other reasons (application portability being the big one here).
    If it's felt that this was the wrong decision, please feel free to log an issue [1] against the RI (to date, no one has).
    As to the 'borked' dependency URLs, please log an issue [1] if you find these. We have nightly builds going that work from a clean workspace and checking today's result, it seems ok.
    [1] https://javaserverfaces.dev.java.net/issues

  • Struts to jsf

    In struts there is the applicationResources.properties file. Is there a corresponding properties file for jsf, or is all the information maintained in the Backing Bean??

    Hi, after further research, the information is located under Using Localized Messages, the objects are called "ResourceBundles", instead of the struts bean, "<%@ taglib uri="/tags/struts-bean" prefix="bean" %> which is defined by <!-- ==== Message Resources Definitions -->
    <message-resources parameter="ApplicationResources" null="false"></message-resources>

  • Javascript back on JSF commandButton

    I am having a problem trying to add an onclick event to my JSF commandButton. All I want it to do is perform a simple "history.back();". I can put a simple "alert();" for the onclick event and that works just fine. Also if I use an ADF commandButton instead it works just fine. Any ideas on what the problem could be?

    I think your problem lies elsewhere on the page.
    I had a similar problem and posted on it yesterday. See my post titled:
    Why can't I access my button click method?
    I could get the alert() method to work, but not the button click that followed.
    The problem I had was completely unrelated to the javascript itself.
    It had to do with binding to another component.
    When I removed that binding, everything worked.
    If you can get the alert() message, then you are accessing your onclick method.
    I would suggest creating a new page that just contains the single button and it's onclick method.
    If that works, then you have a problem elsewhere on the page.
    The next thing I would do is to remove any bindings on the other components.
    If that works, then put the bindings back until you find the error.
    The only reason I am focusing on bindings is because that is what caused my problem.
    Hope this helps.

  • JSF Page not displayed

    Hi,
    i am new JSF and i have build a jsf page and deployed into Sun GlassFish Enterprise Server
    and i am using NetBeans 6.5.1
    when i try to access the page it is giving the following exception
    java.lang.Exception: javax.faces.FacesException: Problem in renderResponse: Setter not found for property class
    pls help me

    and for the jsf page for all jsf components we used styleclass but not classNot everywhere if you get that error.
    and we are using icefacesIrrelevant.
    java.lang.IllegalStateException: PWC3991: getOutputStream() has already been called for this response*Hard to say what is the cause of this - the indirect cause is exactly what is stated in the error, but why this is happening I cannot say. You get this error in a servlet somewhere perhaps?

  • JSF + RichFaces

    Hello everybody!
    I'm makin an application using Spring + Hibernate + JSF (+Tomahawk). All is ok, but now i want to add ajax funtionality to some components.
    I have include de richfaces libraries but i have a lor of problems.
    Can i use RichFaces with tomahawk components?
    Thanks in advance.

    ok, now my application is load but now i have problems with my jscookmenu. It said that the jscook_action isn ull, but the menu is ok.
    I attach part of my web.xml. There is sth i have to change??
    <context-param>
           <param-name>log4jConfigLocation</param-name>
           <param-value>/WEB-INF/log4j.properties</param-value>
      </context-param>
      <!-- Par�metros de Spring -->
      <context-param>
           <param-name>contextConfigLocation</param-name>
           <param-value>/WEB-INF/applicationContext.xml</param-value>
      </context-param>
      <!-- Parametros de RichFaces -->
       <context-param>
            <param-name>org.richfaces.SKIN</param-name>
            <param-value>blueSky</param-value>
        </context-param>
      <!-- Par�metros de MyFaces -->
      <context-param>
           <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
           <param-value>true</param-value>
      </context-param>
      <context-param>
           <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
           <param-value>server</param-value>
      </context-param>
      <context-param>
         <param-name>javax.faces.application.CONFIG_FILES</param-name>
         <param-value>/WEB-INF/faces-config.xml</param-value>
      </context-param>
      <context-param>
         <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
         <param-value>true</param-value>
      </context-param>
      <context-param>
         <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
         <param-value>false</param-value>
      </context-param>
      <context-param>
         <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
         <param-value>true</param-value>
      </context-param>
      <context-param>
         <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
         <param-value>true</param-value>
      </context-param>
      <filter> 
         <filter-name>sessionFilter</filter-name> 
        <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class> 
      </filter>
      <filter>
         <filter-name>extensionsFilter</filter-name>
         <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
         <init-param>
              <param-name>uploadMaxFileSize</param-name>
              <param-value>100m</param-value>
         </init-param>
         <init-param>
              <param-name>uploadThresholdSize</param-name>
              <param-value>100k</param-value>
         </init-param>
      </filter>
      <filter-mapping>
         <filter-name>sessionFilter</filter-name>
         <url-pattern>*.jsf</url-pattern>
      </filter-mapping>     
      <filter-mapping>
         <filter-name>extensionsFilter</filter-name>
         <servlet-name>Faces Servlet</servlet-name>
      </filter-mapping>
      <filter-mapping>
           <filter-name>extensionsFilter</filter-name>
         <url-pattern>/faces/*</url-pattern>
      </filter-mapping>
      <filter>
              <display-name>RichFaces Filter</display-name>
              <filter-name>richfaces</filter-name>
              <filter-class>org.ajax4jsf.Filter</filter-class>
         </filter>
         <filter-mapping>
              <filter-name>richfaces</filter-name>
              <servlet-name>Faces Servlet</servlet-name>
              <dispatcher>REQUEST</dispatcher>
              <dispatcher>FORWARD</dispatcher>
              <dispatcher>INCLUDE</dispatcher>
         </filter-mapping>
      <listener>
         <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
      </listener>
      <listener>
         <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
      </listener>
      <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>*.jsf</url-pattern>
      </servlet-mapping>
      <welcome-file-list>
         <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
     

  • Multipages Form: JSF or Struts?

    Hi! :) I'm italian so sorry in advance for my poor english! :P
    I would like to know, as your experience, if, to create multipage forms, is more simple using Struts or Java Server Faces (jsf)....
    In my opinion jsf is more simple becouse i cuold use one JavaBean only, and the different jsp pages could refer to that bean (scope request or other also?)...while using struts I must create an ActionForm, and so on...making more laborious job.
    I don't have much experience with this 2 frameworks...so in your opinion which is the most simple to this kind of forms?
    Thanks in advance! :)

    JSF is better than Sturts. ("Until now there is no sucess story on JSF.")
    Becoz, Struts inventor has been hired by SunMicroSystems to work with JSF. The same guy mentioned in an interview, that struts developement will be stopped in future.
    Also..,
    Until now there is no sucess story on JSF. Only time can decide which is best.
    My suggestion is, better spend your time in learning more jsp and servlets specifications, XML/XSLT, JMS, Webservices rather JSF/Struts.
    All these frameworks like JSF/Sturts will depends on your project requirement. There is a nice book and online document in this website about design patterns. Read those things if you have time. You will get good idea.
    Well.., this is all my personal opinions.

  • JSF & JSP 2.0

    DEAR SIR/MADAM,
    JDEVELOPER 905 WILL ADD ON JSF FEATURE & SUPPORT JSP 2.0 ?
    JSF CAN COVER ALL FEATURE OF JSP ?
    Best regards
    Boris

    As a JSP 1.2 tag library, JSF 1.0 will enjoy the same base level support that JDeveloper 9.0.5 provides. For example, you can manually add the library and work with JSF tags in the new JSP visual editor.
    Extensive support for JSF 1.0 and JSP 2.0/Servlet 2.4 will be addressed in subsequent releases as the implementations for those standards go production.

  • Is JSF a good candidate for Login pages?

    Hi all,
    In a JSF-based web app, should the login page be JSF-based at all? It seems any JSF page assumes we have a live session, with the component tree and all that stuff. But before a user is logged in, there may not be a session. If a JSF login paged is used, I encounter problems with my session timing out, causing the page to simply refresh itself when you login. Then the user has to login a 2nd time to be successful.
    Should I use a simple JSP page? Is there any way a JSF-based login page will work?
    Thanks,
    Eric.

    Eric, JSF works just fine building a login page. If you have webserver sessions enabled, as soon as an user requests a page a session is created, so there will be a session active for the first view of the login page.
    Sessions timing out have little to do with JSF per se; is the user waiting for longer than your timeput period before clicking OK on the login page? Are you mixing JSP/JSTL/JSF in non-allowed ways?
    As an aside, consider saving an authentication token client-side so you can restart sessions (with checks for IP, etc), and using a servlet filter to check for logged-in ness
    Regards,
    --A                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • Problem while running application on Java Application Server 8

    Dear All, We have a strange problem in JAS8 application. When ever we access the site from any browser for which the proxy is configured, and when we click on any of the tab ( Link or Web Page) after login, the application is redirecting back to Logi

  • R183 System Update - Scheduled to go live January 22nd, 2013

    We are announcing a new Business Catalyst release, scheduled to go live on January 22nd, 2013. Please refer to our official blog post for feature highlights and other major improvements slated for this release. Minor enhancements and cosmetic improve

  • Style Sheets in Web Dynpro ABAP

    hi gurus , can we add our css in abap web dynpro? is it possible or its using by default portal css. if it is possible ,please tell me the way. warm regards.

  • HTML coding in EMOD

    Three questions: 1. Is there an issue with having too much code in EMOD? for the past two days, I've put code in, it shows up in the preview but when I save, it disappears. I put in a help ticket but haven't hear back. 2. Does EMOD not support map ht

  • Strange viewing behaviour on score page view on Logic 7.2.0 on MacBookPro

    I recorded some sequences in Logic 7.2.0 on my MacBookPro and, seeing them in page view mode, I get a strange viewing behaviour: the staffs continue going straight on overshooting the "white delimited page zone". If I try to zoom out I can't obtain t