Is it possible to access getRequestBean1 from a component in page fragment?

Hi,
Assume I have two pages, the first page has a button (say button1) among other components; the second page contains a page fragment which has a button (say button2) in it.
In the button1 action, I set the value for a property (say X) which has request bean scope. When I click this button, the navigation will lead to the second page.
I then tried to retrieve the value using getRequestBean1( ).getX() in the button2 action. To my disappointment, I found that getX( ) always return null.
I know I may be able to overcome this by making X a session scope property, but I would be grateful if somebody could shed some light on this problem.
Many thanks.
Xiaoyan

Your problem is not related to page fragments. It has to do with the lifetime of a request bean. Here is an excerpt from http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/scopes.html
Request scope begins when the user submits the page and ends when the response is fully rendered, whatever page that is.
When you clicked the button on page 1 which submitted the page, the request bean was instantiated. When the response for page 2 was sent to the browser, the request bean's life ended. That is, it is no longer around after the page is displayed.
One of the ways you can keep the value around for the subsequent submission is to add a hidden field to the page fragment.
Bind the hidden field to the request bean's property. Then have something like this in the action method
public String button2_action() {
staticText1.setText( hiddenField1.getText());
return null;
You might want to read the above mention tutorial to learn more about scope and managed beans.

Similar Messages

  • Accessing dataprovider from mxml component.

    Hi,
    I have a dataprovider and would like to access the data from mxml component.
    Basically I have
    Actionscript:
    Bindable]
    private  var dp:ArrayCollection;
    private  
    function dp_handler(e:ResultEvent):void
    dp = e.result as ArrayCollection; 
    I wanted to access dp from mxml component using
    <mx:script>
    <![CDATA[
    mx.core.Application;
    lbl.text = Application.application.dp.getItemAt(0).fieldname;
    ]]>
    <mx:Label  
    id="lbl" x="51" y="136" />
    It keeps telling me dp is unknow property.  Any idea what am I doing wrong?

    Thanks Greg.  That fixed it!

  • Is is possible to access channels from a CAN database in labview with NI USB 8473s

    Hello,
    I would like to know whether is possible to access a CAN database, which is uploaded through MAX, in labview.
    More specifically, I have uploaded my CAN database in MAX and I want to have access to each specific channel in labview.
    i.e according to picture, I would like to have access  to n_Motor_InsRpm channel of E1_L0_1 (motor speed) in Labview, so I can set and transmit a speed value through CAN. Could that be possible with NI USB 8473 s? If yes, is there any simple example in Labview ?
    Thanks for your Help
    Charis
    Solved!
    Go to Solution.
    Attachments:
    CANdb.jpg ‏11 KB

    There are several ways to get database information without needing hardware. Here is one I did a while ago.
    https://decibel.ni.com/content/docs/DOC-39793
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Unable to access values from database in login page..

    Hey all,
    Friends I have a login.jsp page and I want if i enter username and password then it will be accessed from database and after verifying the details it will open main.jsp.I made a database as "abc" and created DSN as 1st_login having table 1st_login. But the problem is that I am unable to access values from database.
    So Please help me.
    Following is my code:
    <HTML>
    <body background="a.jpg">
    <marquee>
                        <CENTER><font size="5" face="times" color="#993300"><b>Welcome to the"<U><I>XYZ</I></U>" of ABC</font></b></CENTER></marquee>
              <br>
              <br>
              <br>
              <br><br>
              <br>
         <form name="login_form">
              <CENTER><font size="4" face="times new roman">
    Username          
              <input name="username" type="text" class="inputbox" alt="username" size="20"  />
              <br>
         <br>
              Password          
              <input type="password" name="pwd" class="inputbox" size="20" alt="password" />
              <br/>
              <input type="hidden" name="option" value="login" />
              <br>
              <input type="SUBMIT" name="SUBMIT" class="button" value="Submit" onClick="return check();"> </CENTER>
              </td>
         </tr>
         <tr>
              <td>
              </form>
              </table>
    <%
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection connection = DriverManager.getConnection("jdbc:odbc:1st_login");
    Statement statement = connection.createStatement();
    String query = "SELECT username, password FROM 1st_login WHERE username='";
    query += request.getParameter("username") + "' AND password='";
    query += request.getParameter("password") + "';";
    ResultSet resSum = statement.executeQuery(query);
    //change: you gotta move the pointer to the first row of the result set.
    resSum.next();
    if (request.getParameter("username").equalsIgnoreCase(resSum.getString("username")) && request.getParameter("password").equalsIgnoreCase(resSum.getString("password")))
    %>
    //now it must connected to next page..
    <%
    else
    %>
    <h2>You better check your username and password!</h2>
    <%
    }catch (SQLException ex ){
    System.err.println( ex);
    }catch (Exception er){
    er.printStackTrace();
    %>
    <input type="hidden" name="op2" value="login" />
         <input type="hidden" name="lang" value="english" />
         <input type="hidden" name="return" value="/" />
         <input type="hidden" name="message" value="0" />
         <br>
              <br><br>
              <br><br>
              <br><br><br><br><br>
              <font size="2" face="arial" color="#993300">
         <p align="center"> <B>ABC &copy; PQR</B>
    </BODY>
    </HTML>
    and in this code i am getting following error
    C:\Project\SRS\build\generated\src\org\apache\jsp\loginjsp.java:93: cannot find symbol_
    C:\Project\SRS\build\generated\src\org\apache\jsp\loginjsp.java:93: cannot find symbol_
    C:\Project\SRS\build\generated\src\org\apache\jsp\loginjsp.java:94: cannot find symbol_
    C:\Project\SRS\build\generated\src\org\apache\jsp\loginjsp.java:95: cannot find symbol_
    4 errors
    C:\Project\SRS\nbproject\build-impl.xml:360: The following error occurred while executing this line:
    C:\Project\SRS\nbproject\build-impl.xml:142: Compile failed; see the compiler error output for details.
    BUILD FAILED (total time: 6 seconds)

    As long as you're unable to compile Java code, please use the 'New to Java' forum. This is really trival.
    To ease writing, debugging and maintenance, I highly recommend you to write Java code in Java classes rather than JSP files. Start learning Servlets.

  • Its possible to access CommDb from Java?

    Hello.
    The subject above is my question.
    CommDb is a internet database. I want to edit this database like GnuBox does (http://mobile.linux.pt/p800/symbianlinuxhowto).
    Anyone knows if its possible or not? If the answer is yes can you tell me how? Will it work with N6600?
    I thank you in advance!
    Rui
    (BIG HELLO FROM PORTUGAL - Come to visit me in Euro 2004 :) )

    You can't do that with J2ME because of the "sandbox" security model. Maybe on devices that allow access to the filesystem you could find a way to hack it, but the 6600 isn't one of those devices.
    shmoove

  • Possible? access data from another effects plugin

    right this sounds complicated so I'm gonna ask if its even possible before i start trying to build this. Picture this scenario.
    Main comp has layer "A" which is a sub-composition, B. The layer A has my filter on it.
    In comp B, we have a layer "C" with my filter on it (or another one of my filters on it)
    When rendering the main comp, can the filter on A access information held by the filter "C" in comp "B"?
    seems weird but what I'm after here is reusability. The filter on C will contain some information that A needs to render correctly. By placing the information in the nested comp "B", B can be reused anywhere in the project. Alternatively if I just did everything inside filter A, this meta information cannot be propagated across all uses of comp B across the project.
    phew. confused? I know I am.

    That's some scary stuff, but YES, plug-ins can access each others' data. See the Sweetie sample for how a plug-in can expose a function suite that other plug-ins can call. You'll also need a bunch of AEGP_EffectSuite calls to find other plug-in instances, and get at their params.
    I strongly recommend against doing this, however; think of the user!

  • Make public property of a component and access it from another component?

    Component "alpha.mxml"
    propriety: mapevent_mapready
    Component "beta.mxml"
    <alpha:alpha mapevent_mapready="some_function()" />
    how?

    Hi leonapster,
    Say in your component alpha.mxml
    <!--alpha.mxml -->
    <AlphaComponent>
         public var mapevent_mapready:Boolean=false;
    </AlphaComponent>
    <!-- Beta.mxml -->
    <BetaComponent>
    <mx:Script>
         private function init():void
              //Now you can access the mapevent_mapready property of Alpha Component as below:
              var bool:Boolean = alphaComp.mapevent_mapready;
         alphaComp.mapevent_mapready
    </mx:Script>
    <alpha:alpha id="alphaComp" />
    </BetaComponent>
    Thanks,
    Bhasker

  • Configure Oracle Access Manager - from weblogic OIF instance page bombs out

    I am trying to integrate OIF with Oracle Access Manager as SP integration module. But, when clicked on "Configure Oracle Access Manager" it throws the following error:
    Oracle Access Manager cannot be configured properly. Make sure the Oracle Access Manager SDK Server has been configured properly and the required environment variables have been set. Details can be found on Online Help and Administrative Guide.
    I have updated the environment variables and classpath, also confirmed the Access Server SDK to work properly by testing java JAccessGate.
    any help is greatly appreciated.
    The diagnostic logs show these errors:
    ========================
    Login of admin identity cn=usca_iam_admin failed. Please check to make sure the admin user ID is valid.
    at com.oblix.accessmgr.ObAccessManager.sendRequest(ObAccessManager.java:163)
    at com.oblix.accessmgr.ObAccessManager.setAdmin(ObAccessManager.java:195)
    at oracle.security.fed.admin.config.mbeans.OAMConfigUtils.configureOAM(Unknown Source)
    at oracle.security.fed.admin.config.mbeans.AdminUtilMXBeanImpl.configureOAM(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.as.jmx.framework.standardmbeans.spi.OracleStandardEmitterMBean.doInvoke(OracleStandardEmitterMBean.java:889)
    at oracle.as.jmx.framework.generic.spi.interceptors.ContextClassLoaderMBeanInterceptor.internalInvoke(ContextClassLoaderMBeanInterceptor.java:94)
    at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterceptor.doInvoke(AbstractMBeanInterceptor.java:245)
    at oracle.as.jmx.framework.generic.spi.interceptors.MBeanRestartInterceptor.internalInvoke(MBeanRestartInterceptor.java:116)
    at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterceptor.doInvoke(AbstractMBeanInterceptor.java:245)
    at oracle.as.jmx.framework.generic.spi.security.AbstractMBeanSecurityInterceptor.internalInvoke(AbstractMBeanSecurityInterceptor.java:174)
    at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterceptor.doInvoke(AbstractMBeanInterceptor.java:245)
    at oracle.as.jmx.framework.standardmbeans.spi.OracleStandardEmitterMBean.invoke(OracleStandardEmitterMBean.java:803)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
    at java.security.AccessController.doPrivileged(Native Method)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
    at weblogic.management.mbeanservers.internal.JMXContextInterceptor.invoke(JMXContextInterceptor.java:268)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
    at java.security.AccessController.doPrivileged(Native Method)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
    at weblogic.management.mbeanservers.internal.SecurityInterceptor.invoke(SecurityInterceptor.java:444)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServer.invoke(WLSMBeanServer.java:323)
    at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder$11$1.run(JMXConnectorSubjectForwarder.java:663)
    at java.security.AccessController.doPrivileged(Native Method)
    at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder$11.run(JMXConnectorSubjectForwarder.java:661)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder.invoke(JMXConnectorSubjectForwarder.java:654)
    at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1426)
    at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
    at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1264)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1366)
    at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
    at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    My Oracle Access Manager is 10.1.4.3 and OIF is 11.1.1.3
    thanks

    Hello,
    I'm having the same problem. Did anybody find a solution to fix it?
    Any help is appreciated.
    Regards,
    Ignacio.

  • Possible to access your iTunes library from iPod with Homesharing ?

    I have many movies in the library. Is it possible to access them from my iPod ( on the same network at home ) just using home sharing ?

    Yes, although it depends a bit on how your library is organised. If everything is in the iTunes standard folders, libraries are in ...My Documents\My Music\iTunes and all the media in ...My Documents\My Music\iTunes Music then you can share the main iTunes folder over your network. Install iTunes on the laptop, then hold shift immediately after clicking on the iTunes shortcut to get the option to choose or create a new library. Navigate to your network share and open the iTunes Library.itl file. Don't try to access the library from two machines at the same time.
    tt2

  • Accessing JFX from Java or find a workarround

    Hi there, I'm a new one ...
    I'm working on this project designing applications for a touch panel. I've written a little Java app that uses JNA to access the driver and grab the coordinates of touches on the panel. Works fine so far ...
    Now I'm creating an UI using Java FX. I've got the thing up and running, only experiencing minor problems due to learning JFX.
    When it comes to combining the UI with the Java classes that access the driver I'm not sure how to implement the whole thing. I know it's only possible to access Java from JFX, not the other way arround. My java classes though are the ones who should trigger the events the UI should react to.
    I think I've read something about the possiblity to use reflection to call JFX functions from Java which is one idea I could go with. (if anyone got good links ...)
    The other idea is that I implement a sort of FIFO object where my Java classes drop events and a timer in my JFX classes where I pull them out (not sure if MediaTimer is the right class to go with)
    Any suggestions, tips, etc. ? :)
    Greetings, Alex

    I think that if you create a interface in java and a class in javafx that implements that interface you can then pass that class to java. For instance:
    Java:
    public interface EventReceiver {
        public void receive(String event);
    // Then your java class that generates the events
    public class EventGenerator {
        private List<EventReceiver> receivers = new LinkedList<EventReceiver>();
        public void registerEventReceiver(EventReceiver er) {
            receiver.add(er);
        public void unregisterEventReceiver(EventReceiver er) {
            receiver.remove(er);
         *  Add code that calls EventReceiver.receive(String) method for each element in the receiver list
         *  when the panel is touched.
    }and in the JavaFX code:
    public class JavaFXEventReceiver extends EventReceiver {
        public override function receive(String event) {
            // Do UI updates...
    }A little more indepth version can be found here:
    http://www.compare-review-information.com/pure-java-code-to-call-javafx-class/
    You might run into some problems though pertaining to threading...but there are workarounds for that aswell :)
    - Emil H

  • Access data from a third party warehousing tools in BEx WAD

    Hi,
           I would like to know whether it's possible to access data from a third party warehousing tools ( For eg: Cognos) in BEx Web Application designer. Any help would be appreciated.
    Thanks

    Hi,
    BEx Web Application designer is only integrated to BIW server. So We can not access data of other tools unless the data is stored in the BIW server as the data in any data target. 
    With rgds,
    Anil Kumar Sharma .P

  • Passing parameter from workitem to bsp page

    Hi,
    is it possible to pass parameter from workitem to bsp page and also vice versa?

    SAP_WAPI_READ_CONTAINER function works well.but i need to pass a parameter to workitem container.
    what i am trying to do is;
    1-get data by using sap_wapi_read_container
    2-change data
    3-send changed data back to workitem
    my problem is in third step.I am using SAP_WAPI_WRITE_CONTAINER. but it doesnt work.After execution the FM return_code set to 1.
    Do u know how to set a variable in workitem?

  • Is it possible to access Pages from an web application running in Safari in i-Pad?

    Is it possible to access Pages application from an web application running on safari browser in iPad ?

    Since you control the application AND the plugin - you can define ANY method of communication you want.  Shared files, shared memory, IPC, named pipes, etc.

  • Is it possible to access a single Lightroom catalogue mounted on a shared drive from multiple computers, each with an individual Lightroom install?

    Is it possible to access a single Lightroom catalogue mounted on a shared drive from multiple computers, each with an individual Lightroom install?
    Thanks.
    Steve Greenberg

    No, Lightroom catalogs cannot be on a networked (shared) drive, and they do not support simultaneous multi-user access

  • Is it possible to access a html based web service from a pdf form?

    I was wondering if it is possible to send a query from livecycle to web service and parse the return data.
    An quick example of what I am thinking is querying a database like wolfram alpha using their html query.
    It is in the format http://api.wolframalpha.com/v2/query?input=pi&appid=XXXX. where "pi" is the query and XXXX is the specific user id
    The website then returns a xml file.
    Is there anyway to send out that html with any query from a text field and process the response?
    Thanks!

    Hi,
    Naseko is right in using the formcalc get function, and I use this for accessing information from google calendar, you can also call the formcalc get function from JavaScript as described here http://blogs.adobe.com/formfeed/2009/02/calling_formcalc_functions_fro.html.
    The main problem I have is with the yellow message bar message and popup saying do you want to allow access to api.wolframalpha.com (or whatever).  I think you can get around this by certifing the form, but I don't have access to the servre products to do that.
    Anyway, if it helps have a look at https://workspaces.acrobat.com/?d=vFcW-9OVSm*BdV6GyFfUIg you will need to modify the button click code to specify your own appid but the code is simple enough;
    var response = FormCalc.Function.Get("http://api.wolframalpha.com/v2/query?appid=<<appid>>&input=capital%20of%20australia");
    response = response.replace(/^<\?xml\s+version\s*=\s*(["'])[^\1]+\1[^?]*\?>/, "");
    var responseNode = xfa.datasets.createNode("dataGroup", "response");
    responseNode.loadXML(response, false, false);
    var answer = responseNode.resolveNode("queryresult.pod.(title.value=='Result')").subpod.plaintext.value;
    console.println(answer);
    So this code sends a query "capital of australia" and gets a response "Canberra, Australian Capital Territory, Australia"
    Replace <<appid>> with your appid and look at the linked sample to see how FormCalc.Function.Get works.
    Also, expect Designer to crash a few times while getting it to work.
    Hope this helps,
    Bruce

Maybe you are looking for

  • Basic CSS Functionality Questions

    Hi, I have a CSS 11501 loaner on the way from Cisco, but was hoping to ask a few questions ahead of time. I am relatively new to this, so bear with me. I have three offices connected via a VPN between two pix devices. Local users and anonymous web tr

  • Premiere Pro CS4 Installation Failed - Again!

    Hi all We are currently using an old version of Adobe Premiere which I would like to upgrade to the latest version.  I want to show everyone in the company how good the latest version is and get them to pay for an upgrade/full version. I then noticed

  • Tax code P0 does not appear in any G/L line item

    Hi, I am using BAPI_ACC_DOCUMENT_POST to upload the AP/AR Journals. I have a scenario wherein for AP document type 'KA' both the line items are of vendor . One line item though has a special G/L indicator and a tax code to it. When i execute the prog

  • Windows 7 not genuine problem, to upgrade windows 10?

    windows 7 not genuine problem, to upgrade windows 10? or can i install it over windows 7 that is not genuine?

  • Fail to Abend when Row Not Found for Update?

    I'm using Coldfusion 9 against a IBM mainframe DB2 database.  I have a condition that when a row is not found for update in a cfquery, execute an insert cfquery.  Sounds logical and easy, right?  Not so!  Error trapping is failing to return an error