Flex with jsf Application

Hi
  I am new to flex and i have a knowledge on jsf .We got a requriment to integrate the flex with jsf .
  I googled and i developed the sample application using the fiji (Exadel ) .
  When i an running the application in the jboss I GOT EMPTY page then after deselecting the check box of 'blockjavascript' in the browser
  am able to see the swf file in the page
can any one help me..
My Project
The   mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="1024" height="715" xmlns:ns1="*">
<mx:Form x="22" y="47" width="1200" height="680">
</mx:Form>
   <mx:Button x="22" y="5" label="This is Prapansolution" width="280"/>
</mx:Application>
The .jsp
       <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:fiji="http://exadel.com/fiji"
          xmlns:a4j="http://richfaces.org/a4j"
          xmlns:rich="http://richfaces.org/rich"
          xmlns:ui="http://java.sun.com/jsf/facelets"
           version="2.0">
         <f:view><h:form id="myForm">
          <fiji:swf src="/faces/FirstFlexApp.swf" id="demonew"  bgcolor="#FFFFFF" width="820" height="480">
          <f:param name="text1" value="Hello" />
         </fiji:swf> </h:form></f:view>

"vikbar" <[email protected]> wrote in
message
news:gb0tug$7je$[email protected]..
> Hi Amy,
>
> Isnt the HistoryManager approach more specific to Flex
application i.e if
> user
> is just navigating with in the flex application? In my
case the user will
> navigate between a JSF page which does not have any SWF
file and the
> another
> one which has swf file embedded. Now everytime when the
suer moves to the
> flex
> embedded JSF page from the Non Flex JSF page these are
the steps which are
> always going to happen :
>
> 1.) System Manager will get initialized and will create
PreLoader
> instance.
> 2.) The preLoader will then try to download the swf
file. Now since this
> is
> the second time the user is coming back to the flex page
so the broswer
> would
> have already cached this swf, so Preloader will skip the
downloading
> swf/RSl
> step and hence you wont see any initialization progress
bar.
>
> 3.) New Application object will get instantiated and
will go through its
> whole
> lifecycle.
>
> So, I guess historyManager approach will work only if
the user stays on
> the
> flex application only and navigates with in flex
application itself(so in
> that
> case if the user clicks back then it knows which flex
component or view to
> display), but in my case user will completely move away
from flex page to
> a
> JSF page and then will try to come back.
>
You'd need to put the right stuff in the url to make it work,
just like if
you were calling a page that's expecting GET params. I don't
really use the
HistoryManager, so you'll need to either look into this
yourself or ask
someone who knows more about it.
HTH;
Amy

Similar Messages

  • About the Flex with jsf

    Hi
      I am new to flex and i have a knowledge on jsf .We got a requriment to integrate the flex with jsf .
      I googled and i developed the sample application using the fiji (Exadel ) .
      When i an running the application in the jboss I GOT EMPTY page then after deselecting the check box of 'blockjavascript' in the browser
      am able to see the swf file in the page
    can any one help me..
    My Project
    The   mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="1024" height="715" xmlns:ns1="*">
    <mx:Form x="22" y="47" width="1200" height="680">
    </mx:Form>
       <mx:Button x="22" y="5" label="This is Prapansolution" width="280"/>
    </mx:Application>
    The .jsp
           <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:fiji="http://exadel.com/fiji"
              xmlns:a4j="http://richfaces.org/a4j"
              xmlns:rich="http://richfaces.org/rich"
              xmlns:ui="http://java.sun.com/jsf/facelets"
               version="2.0">
             <f:view><h:form id="myForm">
              <fiji:swf src="/faces/FirstFlexApp.swf" id="demonew"  bgcolor="#FFFFFF" width="820" height="480">
              <f:param name="text1" value="Hello" />
             </fiji:swf> </h:form></f:view>

    The imageicon only be supported JMenuItem.
    how to dispose the case of sub-menu.
    JMenu mainMenu = new JMenu("main");
    JMenuItem miNew = new JMenu("New", new ImageIcon("..."));
    JMenu mnuOpenHistory = new JMenu("Open List"); /// <<<----------------- this item can not support Icon
    JMenuItem open1 = new JMenuItem("", new ImageIcon());
    mainMenu.add(miNew);
    mainMenu.add(mnuOpenHistory);

  • Unable to connect SQL server 2005 databse with JSF applications !

    Hello guys!
    Help me out to connect SQL server 2005 Databse with JSF applications using JDBC-ODBC bridge. I'm working with Netbeans 6.1 IDE.
    I tried for the basic applications but instead got this error:
    "unable to deploy jdbc drivers to the <project>domain/lib"
    Please help me out with working sample codes that connects MS SQL server 2005 DB with JSF!!
    Thank you guys!

    1) don't use the bridge driver
    2) don't do database access from JSF
    3) learn how to use your application server
    4) learn how to use your IDE

  • Will BridgeIt Technology work with JSF Applications?

    I have a JSF based web application and needed to be able to upload pictures and audio snippets from the mobile field staff.  I see that BridgeIt allows HTML5 integration between web and native components but I couldn't tell from the tutorials if it would work for a JSF application or not.  Does anybody know?  Note I see that the product is from ICEsoft but to be honest I am not an ICEfaces user (I use one of the competitors products).  Can it still work?
    Thanks.

    PPPOE will be one of the choices for the connection, these new routers often come with a wizard that knows what to do anyway.
    Yeah WAN is Internet
    No, you don't need a password but some routers insist you provide one.
    If you found this post helpful, please click on the star on the left
    If not, I'll try again

  • SAP R3 CONNECTION WITH JSF APPLICATION

    Hi Experts,
    i want to integrate my JSF application to the SAP R3 using java class. I searched a lot of blogs and docs where they have given a proxy class approach.But i am not able to use it.
    If you have any experience or knowledge , please reply .
    Thanks in Advance
    Ankur Goyal

    Hi,
    I am using NWDS 7.2.If you have any sort of information about a java apllications integration wiith SAP R3 then please reply back to me.
    Ankur Goyal.

  • Error with JSF application on SAP NetWeaver  App Server  7.3

    Hello Gurus,
                             I have a JSF web application which I have deployed on the SAP NetWeaver Server 7.3 , but when trying to access the same I get the error
    Cannot process an HTTP request to servlet [Faces Servlet] in [SecurePro] web application. [EXCEPTION] javax.servlet.ServletException: com.sap.engine.services.servlets_jsp.server.jsp.exceptions.CompilingException: Error in executing the compilation process: [ Compilation Failed! Exit Code=1
    Has anybody else also got the same error earlier?, I am using Mojarra  implementation for JSF.
    I had earlier deployed the same application in an earlier JSF version and it worked on NWAS7.0 but Now I need to upgrade that, Please help
    Thanks
    Somil Agarwal

    Hi Ingo,
    Yes - Ive tried every possible combination and here is my findings...
    I don't think the 32-bit version of the SAP Java Connector (2.1.8) works on a Windows 2003 x64 SAP J2EE 7.0, i.e. the sapjco.jar file. I created a directory and added it to the CLASSPATH of the J2EE server (server and instance) and I also added it to the Java classpath using: java -jar <path+sapjco.jar> -classpath. Executing this command brings up a SAP Java connector window where it displays information of the version, location of the sapjcorfc.dll file etc. This windows opens, but is not able to display the information. If I do exactly the same with the x64 bit version of the SAP Java connector (2.1.8) it displays the information correctly in the SAP Java connector popup. I've tried copying the sapjcorfc.dll and the librfc32.dll to both the /system32 and the SYSWOW64 directory on the server.
    HOWEVER, in CMC the Role Import tab still does not work - I just get the text null (in red). Before adding the sapjco.jar to the java classpath I got another error on the Role import tab - something like /com/sap/mw/jco/$JCOFunction. So it seems like it is now able to find the sapjco.jar file, but can not use it properly.
    The big question is now: Should the sapjco.jar file actually be on the Application server or on the BOE Server? I know it says on the application server in all documentation, but that generally assumes Tomcat and all installed on one server.
    BOE uses the sapjco.jar file to connect to the BW system to import the roles and that must be the BOE server doing that job and not the Application server???
    Just my thoughts - maybe we can discuss this at Teched in Phoenix? :o)
    Best regards,
    Jacob

  • RIA out of Flex with BlazeDS application

    I have developed Flex application that runs Java code on the
    server via BlazeDS Tomcat fork server. I had to do it that way.
    Then, I asked myself, how is it possible to create a RIA without
    the need for the user to install the BlazeDS server ? Just one
    simple executable that should know how to contact the Java
    servlets...

    You could supply your code ready to run including tomcat or
    jetty as the application server?
    Then make a installed or give deployment instructions. This
    depends on the sort of application. If you tell a bit more about it
    (is it air or web based) and how you want people to work with it
    then I can give you better ideas (hopefullt) :)
    Ries

  • How to Deploy Mysql database with JSF Application

    hi,
    I have developed web application using JSF which uses a MySQL as Database.The server is localhost, database name is database_123(or watever!), so everything works fine...now this web application is something which i need to run on other computers as well....so do i have to install mySQL server to the computer from which the war file is deployed? if i don't want to install mysql at any computer, then how can i do?
    Plz help me! and if possible please tell me or post a article.
    Thanx in advance
    jsfgeeks

    This is what I am trying to figure out what is the best way. I am not worrying about making the SQL Server part of my install, we are going to leave that up to the client. I already have the script to create the DB, I am just trying to find the best way to deliver the data to the SQL Server. Like I said I have T-SQL scripts with insert statements but they end up being huge. I am looking at maybe using ApexSQL Script, as it can make an .exe file that creates the DB and installs the data, but it give me an out of memory error because we have so much data.

  • Using Flex Performance Profiler for Profiling Flex  with Java Applications

    Hi , I am planning to use Flex Profiler to profile my Application .
    I have developed a sample Application using Flex MXML ,some ActionScript classes for Events and Cairngorm , Java , Oracle as database and Blazeds . 
    Can i use Flex Performance Profiler to Profile my Application . ?? I am asking this question as i ad read the below line from Adobe site and My Application includes java Methods 
    "You can use the profiler to profile ActionScript 3.0 applications " Can anybody please tell me What does this mean ?? and can i use the Flex Performnace Profiler . Please suggets me .

    Thanks Karl for the prompt response .
    I am making a call to a Java Method from my Action Script function , or getting data from Java Method into the ActionScript function .
    So my question  is , will the Flex Profiler will be applicable in this case as it internally calls Java Methods .

  • Application not working with JSF 1.2

    I am new to JSF. I am trying to create a sample application with JSF 1.2. I am using weblogic 10.0. I have followed the instructions give in the whitepaper to configure JSF 1.2.
    http://download.oracle.com/technology/products/weblogic/portal/weblogic-portal-jsf-whitepaper.pdf
    Deployment descriptor contains following content.
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" 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">
    <display-name>AlfaInsPortalWebApp</display-name>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    <!--<description>
                   State saving method: "client" or "server" (= default)
                   See JSF Specification 2.5.2
              </description>-->
    </context-param>
    <listener>
    <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
    </listener>
    <servlet>
    <servlet-name>faces</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>faces</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>faces</servlet-name>
    <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>index.jsf</welcome-file>
    <welcome-file>index.faces</welcome-file>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
         <session-config>
         <session-timeout>30</session-timeout>
         </session-config>
    </web-app>
    Weblogic.xml contains reference to following libraries
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wls="http://www.bea.com/ns/weblogic/90" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd">
         <wls:container-descriptor>
              <wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
         </wls:container-descriptor>
    <wls:context-root>AlfaInsPortalWebApp</wls:context-root>
    <wls:library-ref>
    <wls:library-name>jstl</wls:library-name>
    <wls:specification-version>1.2</wls:specification-version>
    <wls:exact-match>true</wls:exact-match>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-tools-visitor-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-tools-framework-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-commonui-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-framework-full-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-clipper-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-lookandfeel-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-rest-full-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-framework-rest-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-rest-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-light-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-wsrp-producer-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-framework-common-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-framework-struts-1.2-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>struts-1.2</wls:library-name>
    <wls:specification-version>1.2</wls:specification-version>
    <wls:exact-match>true</wls:exact-match>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-services-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>content-management-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>beehive-netui-1.0.1-10.0</wls:library-name>
    <wls:specification-version>1.0</wls:specification-version>
    <wls:exact-match>true</wls:exact-match>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>beehive-netui-resources-1.0.1-10.0</wls:library-name>
    <wls:specification-version>1.0</wls:specification-version>
    <wls:exact-match>true</wls:exact-match>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>p13n-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>jsf</wls:library-name>
    <wls:specification-version>1.2</wls:specification-version>
    <wls:implementation-version>1.2.3.1</wls:implementation-version>
    </wls:library-ref>
    </wls:weblogic-web-app>
    When i start the application server following logs were obtained
    Apr 9, 2010 7:09:32 AM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/SampleJSF'
    Apr 9, 2010 7:09:33 AM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Completed initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/SampleJSF'
    Apr 9, 2010 7:09:33 AM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/SampleJSF'
    Apr 9, 2010 7:09:33 AM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Completed initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/SampleJSF'
    When i invoke the application I get the following error.
    java.lang.NoSuchMethodError: initView
         at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:92)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Please help me in configuring JSF 1.2.

    If you are new to JSF, then I'd try and simplify the environment in which you are working as the first step to achieving a successful outcome.
    JSF 1.2 is a certified and well tested component of WLS, so we know it works. I'm not sure of the effect of all those additional modules you are adding in there -- it appears as if you have gotten a Faces implementation instantiated, but there could be some form of version difference/conflict since it can't find a method its looking for.
    Using Oracle Enterprise Pack for Eclipse (http://www.oracle.com/technology/software/products/oepe/oepe_11115.html) you can build yourself out a pretty simple JSF application to get started from and deploy it to a WLS server. This would remove all the additional libraries you currently have, provide you with a bundled applicaton to deploy and give you a pretty good environment from which you can learn and experiment with JSF.
    -steve-

  • JSF with RichFaces application on SAP CE 7.1

    Hi
    We are trying to run our jsf application on SAP server. But sap is throwing the error:
    "Application error occurred during the request procession."
    Error occured in invoking event "contextInitialized()" on listener class com.sun.faces.config.ConfigureListener.
    Details: "The WebApplicationException log ID is [7E39AC51FF0B001B000003AC000D30641A8D49BEAD282A6D]."
    We are using the jars (richfaces-api-3.3.3..Final.jar, richfaces-impl-3.3.3.Final.jar, richfaces-ui.3.3.3.Final.jar) attached. Please let us know if we need to use some other configuration for SAP server. This is working fine on Jboss without any issues.
    Regards
    Abu Bakar

    I'm getting the same error and the freestyle.jsp does not help either.
    By the way, the error posted above is related to the SLD, which is not installed with CE 7.1. I don't think that has anything to do with VC... Please correct me if I'm wrong.
    Message was edited by:
            Pascal Willemsen

  • Problem with an application running Adobe Flex. Tech people say they cannot monitor, track or catch the problem.

    Problem with an application running Adobe Flex. tech people say they cannot monitor, track or catch the problem. Application shuts down and give the following erre:
    Failure of server APACHE bridge:
    No backend server available for connection: timed out after 10 seconds or idempotent set to OFF or method not idempotent.

    <moved from Downloading, Installing, Setting Up to Flex>

  • ViewExpiredException, with a simple jsf application

    I am trying to get a simple jsf application with jsf 1.2
    i have a jsf calculator.jsf as below
    <f:view>
      <h:form id="calcForm">
         <h:panelGrid columns="3">
        <h:outputLabel value="First Number" for="firstNumber" />
        <h:inputText id="firstNumber" value="#{CalcBean.firstNumber}" required="true" />
            <h:message for="firstNumber" />   
        <h:outputLabel value="Second Number" for="secondNumber" />
        <h:inputText id="secondNumber" value="#{CalcBean.secondNumber}" required="true" />
            <h:message for="secondNumber" />
    </h:panelGrid>  
    <h:panelGroup>
        <h:commandButton id="submitAdd" action="#{CalcBean.add}"  value="Add" />
        <h:commandButton id="submitMultiply" action="#{CalcBean.multiply}" value="Multiply" />
    </h:panelGroup>
      </h:form>
    </f:view>and my faces-config is as below
    <managed-bean-name>CalcBean</managed-bean-name>
        <managed-bean-class>com.testjsfapp.test.CalculatorController</managed-bean-class>
        <managed-bean-scope>
        session</managed-bean-scope>
      </managed-bean>
      <navigation-rule>
      <from-view-id>/calc/calculator.jsp</from-view-id>
      <navigation-case>
        <from-outcome>success</from-outcome>
        <to-view-id>/calc/result.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>when i open application in browser and click on add buton i get following error
    javax.faces.application.ViewExpiredException: viewId:/calc/calculator.faces - View /calc/calculator.faces could not be restored.
         com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:189)
         com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:102)
         com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)

    kulkarni_ash wrote:
    Thanks, looks like it is workingCan you please marked this post as "answered" if your problem has been resolved. This just save time for anyone else who might try to answer this post without knowing that it is already answered.
    Thanks and cheers.

  • Flex with php air application

    Hi ,
    I am new in flex.
    Actually i make a flex with php desktop application. There are two problems which i am not getting:
    a.) I make three module which i load on tab navigator click . These mudules working fine . But when i make this project export relese build to make .exe file . These modules not added in installation file.
    i.e after installation i have to copy these modules .swf file in program files where the application installed. So i want to know is there is any method so that module added in the .exe file so that they by default goes at the
    time of installation of exe.
    b.) I use php services in this project and when i insatlled the application to system its not working untill i add the the project service php file and zend frame work folder on user wamp . Is there any method that all these happen by default at the time of insatllation.

    Hi,
    AIR is best suited to be a client application.
    P.S: Since you are using PHP, you may want to take a look at
    amfphp so that you can use AMF to speed up data transfer between
    your AIR app and the PHP server.

  • Communicate a Web application (Flex) with a mobile Apllication (Flex)

    Hello,
    I wonder if it is possible to communicate a Web application (Flex) with a mobile Apllication (Flex).
    when I Click on a button in my web application I receive an alert in my mobile application.
    if you have any ideas I would be very grateful.
    Regards.

    I tried that but my problem is that the code is so old. At least what I saw. I don't know how old is too old and I'm trying to do things "right." I saw code from 1998, but I don't know if that's still what you do. It might still work, but that doesn't mean it's correct. There's so much out there on Java that so old that half the time I'm not sure what to do because some other technology in J2EE or the latest Java SDK might have come up with a new way to do things. Thanks.

Maybe you are looking for

  • Reinício de estratégia de liberação MM

    Boa tarde pessoal,    Estou com um probleminha que não consegui encontrar uma solução ainda com estratégia de liberação de pedidos (PO).    Pois gostaria de configurar minha estratégia de liberação para que só reiniciasse a estratégia de liberação, o

  • Booting From MAC OS CD?  (It won't)

    Okay, so someone I knew was gonna throw out an iMac. I hate seeing computers go to waste, so I just took it. They didn't have any CDs or anything with it. I turn it on, and obviously can't login. I dunno the password and neither do they. I found that

  • Ipod also locked

    My Ipod all of a sudden stopped working. I tried reseting it and it just has a briefcase on it with an exclamation mark. Then instead of being color, its in black and white like it degreased into a first generation ipod.....I have tried contacting ap

  • Enhancement for MIR7 - MIRO

    Dear Friends,   I want to call an enhancement when posting a parked invoice document in tcode MIRO. I want to do some processing after the document is saved in the database. This invoice document will be initially parked using tcode MIR7. I tried wit

  • Dynamic Range Slider

    Hello Everyone, I'm using line charts in my VC application and want to change the Y axis values from auto-adjust to dynamic range slider. The problem is that in my chart sometimes I have negative values, but the dynamic range slider doesn't allow me