Set data in page flow begin action?

Hi,
I want to set some data in my page flow's begin action, and then access this data in a JSP. In my begin method, I have:
* @jpf:action
* @jpf:forward name="index" path="index.jsp"
protected Forward begin()
getRequest().setAttribute("foo", "mydata");
return new Forward("index");
then, in my index.jsp, I have:
<netui:label value="{request.foo}" />
but the JSP is displaying an empty value (i.e., blank).
Is there something about the page flow begin action such that this can't be done there?
Thanks,
Jim

Hi,
For my sanity's sake, I tried creating another small test web app in Workshop, and just added code to my begin action. This time, the display of {request.foo} worked.
So, it looks like there is SOMETHING in my original web app that is causing the data binding to stop working.
I've been comparing the small test web app to my original web app, and the only thing that is significantly different is at the beginning of the JPF, I have the declaration for a control:
public class Controller extends PageFlowController
* @common:control
* @jc:ManualConfiguration UserIdAttribute="uid" UserBaseDN="dc=whatever,dc=com" Port="389" Host="foo.whatever.com"
private AccountManager accountManager;
* @jpf:action
* @jpf:forward name="index" path="index.jsp"
protected Forward begin()
getRequest().setAttribute("foo", "foodata");
return new Forward("index");
Would having that control declaration before the begin() method be causing this problem?
Any other ideas about why this might be happening?
Thanks,
Jim

Similar Messages

  • [[ Page Flow Error - Action Not Found ]] - urgent help needed!

    Hi all,
    My portal application runs on Weblogic 8.1 and I am encountering a vague error which does not point back to any of the application-based files. The error message, as stated in the subject, is
    "Page Flow Error - Action Not Found"
    I did modify the url-template-config.xml under groWeb/WEB_INF to add a new template to enforce secure access to application resources. Could this have caused the above error?
    Any feedback would be greatly appreciated!!
    Thanks.

    Here is just a portion of Page Controller class
    package com.amd.portal.presentation.GeneralRegistration
    public class GeneralRegistrationController extends PageFlowController
    * @jpf:action
    * @jpf:forward name="success" path="RegistrationConfirmation.jsp"
    * @jpf:validation-error-forward name="failure" path="index.jsp"
    public Forward registerUser(RegisterUserForm register_form)
              usermanager_ctrl.registerUser(register_form, this.getRequest());
              return new Forward( "success", register_form);
    Here is a portion of the code from the JSP that uses this controller
    <netui:form action="registerUser">
    <tr valign="top">
    <td><font color="red"> * </font> User Name:</td>
    <td>
    <netui:textBox dataSource="{actionForm.userName}"/>
       
    <netui:error value="userName"/>
    </td>
    </tr>
    <tr valign="top">
    <td><font color="red"> * </font> Password:</td>
    <td>
    <netui:textBox dataSource="{actionForm.password}" password="true" />
       
    <netui:error value="password"/>
    </td>
    </tr>
    <netui:button value="Submit" type="submit"/>
    </netui:form>
    This apparently doesn't display well when posted but I can email to you if you provide me with your email address. Thanks.
    - CW
    Message was edited by:
    lcwalters

  • Make an existing page flow as nested page flow

    Hi
    I have a page flow and want to make it as a nested page flow. I observed that there is a checkbox for making a page flow as nested when we create a page flow. I haven't selected that option during creation.
    Is there any property i can set for a page flow to make it nested.
    Appreciate your help in this.
    Thanks,
    RK

    Hi,
    Just update the entry after the import in your existing page flow controller from @jpf controller to @jpf controller nested="true".
    Once you do this, Worksop would indicate an error saying that this pageflow does not have an @jpf forward with the return action. To overcome this error add the following code in your jpf
    * @jpf:action
    * @jpf:forward name="done" return-action="newpageflow1Done"
    public Forward done()
    return new Forward("done");
    This should make your pageflow a nested pageflow
    -Jagan

  • Can I reference page-flow bean from a bounded-task-flow page-fragment?

    I have a view activity implemented as page fragment in my bounded task flow.
    I declare a page-flow scope managed-bean in adfc-config.xml to do some initialization for the bounded-task-flow:
    <managed-bean id="__23">
    <managed-bean-name id="__22">TaskFlowBean</managed-bean-name>
    <managed-bean-class id="__21">view.backing.TaskFlowBackingBean</managed-bean-class>
    <managed-bean-scope id="__20">pageFlow</managed-bean-scope>
    </managed-bean>
    In my bounded task flow, the default activity is a method-call activity which call the page-flow bean method
    <method-call id="initFlow">
    <method>#{pageFlowScope.TaskFlowBean.initFlow}</method>
    <outcome id="__27">
    <fixed-outcome>showPanel</fixed-outcome>
    </outcome>
    </method-call>
    But JDeveloper (11.1.1.2) show a warning "Refereneed pageFlowScope not found" at the "Diagram" view of the flow definition.
    The fixed outcome of the default activity is to render a page-fragment which also reference the page-flow scope bean method getPanelTitle():
    <af:panelBox text="#{pageFlowScope.TaskFlowBean.panelTitle}" id="pb1">
    <f:facet name="toolbar"/>
    </af:panelBox>
    At runtime, the page fragment was rendered properly except the panel box title is missing. No other error is reported
    When I debugged the application, the bean methods initFlow() and getPanelTitle() didn't get call as the program didn't stop at the breakpoint set in the bean methods.
    The page fragment was rendered properly except the panel box title is missing.
    When I change the scope to backing bean, both initFlow() and getPanelTitle() get called but under a different backing bean.
    As the bean attributes set by initFlow() were not no longer set when getPanelTitle() was invoked even though the methods were invoked in the correct order.
    Why can't I use a page-flow scope bean within the bounded task flow?
    On further debugging, I noticed the bean was not created when it is set to be page-flow scope. I put a debug message in the constructor... never get called.
    When should a page-flow scope bean be created to be accessible on entry to a bounded task flow?
    Edited by: Pricilla on Apr 29, 2010 3:16 PM

    Please check the scope of the pageFlow from the manual.
    pageFlowScope is only available for the pages/views in that taskflow and not in the included taskflows.

  • Workshop 8.1: Page Flow Action and jsp:include

    Hi everybody.
    Can i use jsp:include to "include" a page flow action ?
    I've tried it, but odd things are happening: The resource got included, but fragments of html source "around" it are been lost.
    Any ideas ?
    Thanks in advance.

    Hi Daniel
    There are 2 ways you can acheive this.
    1) Using something called Pageflowscoped form for this. This will let you use arrays for checkbox group.
    The main part will be that you need to define a member varaible of the form at the pageflow level there by the data will not be lost
    2) Using Request scoped form like you have now but need to modify the getter method to populate the "searchResult" object.
    public List getSearchResult() {
    if( null == searchResult){
    System.out.println(" Pouplate the searchResult here. ");
    searchResult= new ArrayList();
    //populate the default values.
    return this.searchResult;
    More info at:
    http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/netui/guide/conReqScopedVsPageScopedBean.html
    I have a sample with pageflowscoped bean and requestscoped bean that I can send you if you provide your email address.
    Unfortunately we cannot attach files in the newsgroup.
    Thanks
    Vimala

  • Page flow actions are called twice from each UI's action=...

    Odd observation: my nothing fancy login / pw change / logged in / jsps and pageflow are having the actions in the .jpf called twice for each jsp form action=.
    What can cause this?
    For example: the login jsp form action=loginAction, the corresponding method in the .jpf is called twice when the user clicks the login button on the login UI. The same behavior is observed for all the other actions in this page flow too.
    This has been a real problem for the pw change UI. Until I figured this out, pw change always returned invalid pw due to the second call to the action. :))
    tnx curt

    I have narrowed it down even more. What is happening is that you select the first item in the list it throws a validation error. I found this by adding and inline message. The weird thing is that if you select any other item in the list but the first everything flows as normal.
    This is a list of dates bound to a date type column in a database.
    Any Idea's why selecting the first item in a list would throw the validation message?

  • ADF Page Flow Action - Page Refresh

    Hello,
    BACKGROUND
    I'm working on a POC development environment using Oracle technologies. I'm using a Windows XP SP3 machine with JDeveloper 11.1.1.5 and WebLogic 10.3. What I have currently setup is:
    - Work in Jdeveloper 11.1.1.5 to edit code sources etc
    - Build project and EAR using Ant
    - Deploy EAR to WebLogic 10.3 using WLST
    The JDeveloper project was created as a WebCenter Portal Application however I don't use any of the portal features nor are there any included in the project (we might use this in the future). It's a basic vanilla ADF application at the moment with a few JSPs, a placeholder data control and 1 bounded and unbounded task flows.
    PROBLEM
    The package builds and deploys fine and I can view a landing page ok. The problem is when I try and click a button or link that goes to another page in the Page Flow the page just seems to refresh. I can see that a request is hitting the server but it would seem the framework isn't invoking the action.
    EXTRA INFO / DEBUG
    The weird thing is, if I right click a page in JDeveloper and run it in the integrated weblogic the application works fine. I thought it might be my build process so I tried right clicking and exporting an EAR file from JDeveloper and deploying that into my WebLogic but that one fails with the same refresh problem as my Ant generated one.
    I have done a file and directory comparison of the EAR and it all is the same. This lead me to believe it might be my WebLogic server/domain, so I deployed my Ant generated EAR manually into the integrated JDeveloper weblogic in which the auto deploy application is working. This however still fails with the refresh problem. It must be something to do with my EAR but I can't for the life of me figure it out as it all looks the same!
    I do get a few warnings when deploying, hopefully these can help:
    ####<11/10/2011 11:00:19 AM EST> <Warning> <J2EE> <OVLD630422KV1S> <AdminServer> <[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <3fe29258d1efb468:5549c41:132efedbfd7:-8000-0000000000000100> <1318291219078> <BEA-160140> <Unresolved optional package references (in META-INF/MANIFEST.MF): [Extension-Name: oracle.apps.common.resource, referenced from: C:\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\oracle.webcenter.framework\l81aqz]. Make sure the referenced optional package has been deployed as a library.>
    ####<11/10/2011 11:00:21 AM EST> <Warning> <J2EE> <OVLD630422KV1S> <AdminServer> <[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <3fe29258d1efb468:5549c41:132efedbfd7:-8000-0000000000000100> <1318291221031> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application MyApp-0.1 is not versioned.>
    ####<11/10/2011 11:00:36 AM EST> <Warning> <Default> <OVLD630422KV1S> <AdminServer> <[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <3fe29258d1efb468:5549c41:132efedbfd7:-8000-0000000000000104> <1318291236562> <J2EE JMX-46238> <Cannot map nonserializable type "interface oracle.adf.mbean.share.config.runtime.resourcebundle.BundleListType" to Open MBean Type for mbean interface oracle.adf.mbean.share.config.runtime.resourcebundle.AdfResourceBundleConfigMXBean, attribute BundleList.>
    Cheers,
    Ross

    Oh! I see now yes that seems to have fixed it. It seems that if you create a page as .jsp and .jspx they are slightly different too.
    .jspx has this around the content of the page
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    </jsp:root>
    The .jsp does not. So when you hit the .jsp page (e.g. test.jsp) in the browser without the extension (e.g. url:port/myapp/faces/test) you get a 404 not found.
    Hitting one that was created as a .jspx page with the extra XML stuff in the file works ok when you drop the extension.
    So just for clarification, should you use .jspx for 'pages' and .jsp for fragments of a page?

  • How to use multiple Spry Data Sets in one page

    I'm using two spry data sets in one page. When I add the first spry data set to my page everything runs OK, When I add the second spry data set to the page the first data set stops working. Does anyone know what the problem is?
    This is how I have my data sets listed.
    var ds1 = new Spry.Data.HTMLDataSet("/accounts/tower/list.php", "list");
    var ds2 = new Spry.Data.HTMLDataSet("/accounts/tower/numvisits.php", "chart");
    Thanks, let me know if you need more information.

    Good News!
    There is nothing wrong with what you have shown.
    Bad news!
    The problem could be in that part that you have not shown.
    Gramps

  • Basic question .... How can I set up a page for visitors to enter data?

    Is it possible in iWeb 08 to set up a page that visitors enter data in specific fields and allow me to retrieve that information? Like filling out a form, then emailing the form to my .mac mail.
    Thanks.

    Yes Douglas you can set up a form that collects information. Use an html snippet and get the form code from such places as
    Wufoo.com
    Formlogix.com
    Createforms.com
    bravenet.com
    and others you may find by googling it.
    Mireille

  • How to set default date of 3 weeks(21 days) from today's date during page load?

    I want to show the default date as 3 weeks from today's date during page load.
    For example ,i have given as adf.CurrentDate + 21 in EO for the attribute 'DueDate'. But it is showing me the date as 9.7.2013. 3 weeks default date is not getting set.If i give adf.currentDate also ,it not giving me today's date,it showing the 9.7.2013 only.Kindly provide your suggestions to set the default date as 3 weeks from today's date during page load.Thanks in advance.

    Hi,
    when you set the value on the entity level then you don't want to show it during page load but when the field is empty ? Correct? if so then the use case is a different one. The easiest way to implement this would be to create a Rowimpl class (Java option) and then in the get method of the entity attribute check if the value is null and if it is, set it to the current date + 21 days. This way all rows will be set with the 3 weeks due date but fields are not overridden each time the row is queried
    Frank

  • Workshop 8.1 - jsp:include an Page Flow action resource

    Hi everybody.
    Can i use jsp:include to "include" a page flow action ?
    I've tried it, but odd things are happening: The resource got included, but fragments of html source "around" it are been lost.
    Any ideas ?
    Thanks in advance.

    Hi everybody.
    Can i use jsp:include to "include" a page flow action ?
    I've tried it, but odd things are happening: The resource got included, but fragments of html source "around" it are been lost.
    Any ideas ?
    Thanks in advance.

  • Data input page set to "viewmode"

    I have a data input page which I would like to allow others users to see but not change and data. Does APEX have a 'viewmode' setting for a page or must I manipulate every field on the page? APEX 4.2

    ebenwalker wrote:
    Normal data entry Form. I am hoping to not have to put code in for every item.  Is there a method to make all items 'display only' with one block of code?  (pseudo code;  if user = clerk then set all items to display only.)
    APEX 4.2 has support for read-only conditions at item, region, and page level. Switch the form to a read-only display using a suitable condition in the region- or page-level attribute.

  • Stuck on "setting date and time" page-tried hitting menu to reset network, but it stays on the setting date and time page.  Any advice?

    Anyone know how to fix this? It's reading the remote because the light is flashing when I click on many, but it's staying on the "setting date and time" page.  Any workaround here would be great.  Thanks peeps!

    This is indication of a network issue... .ensure that the DNS settings are set to Automatic.
    If the ATV is not responding to the remote, start by unplugging the device then plugging it back in.  If it still fails to respond, restore via iTunes on the computer.

  • HT1595 My AppleTV seems to be stuck on the "Setting Date and Time" load page

    I just moved from a house to an apartment and when I hooked up my appleTV it said "Setting date and time" with a spinning load wheel and it's been doing this for a long time now. I hit MENU on the remote and tried going to Settings> General> Network like it said at the bottom of the screen, but nothing happened. It's connected to the right WiFi network, but the only icons it shows on the home screen are the 'Computers' icon (for Home Sharing) and the 'Settings' icon. My movies, music, tv shows, netflix etc. icons aren't showing up. I restarted it and got as far as the "Setting date and time" load page again, where it just sits and loads.

    Welcome to the Apple Community.
    Assuming this is not the first time you have used your Apple TV
        1.    You might try restarting the Apple TV by removing ALL the cables for 30 seconds.
        2.    Also try restarting the router.
        3.    If the problem persists, try a restore, you may want to try the previous procedures several times before doing this.
    If this is a new Apple TV, it may also be that your network router is not allowing access to the timeserver, check that your router allows access over port 123.

  • Backingfile:prerender() and action method in page flow

    I am using backing file in a pageflow based portlet in WLP8.1sp5, and implemented its prerender method. After navigating to the middle of this pageflow, the session became expired after 15 mins of inactivity (this is expected). However, when a user click an action button in the browser which sent the request to the stale session, I expected my backing file prerender is invoked and I can check for expired session and route user to a timeout page. But this didn't happen. Instead, I see an ugly error page complaining that action couldn't be found in the pageflow. Of course, the session is no longer there.
    My questions are:
    1. Why WLP framework behave this way? Why backing wasn't called prior to action method of the pageflow?
    2. In WLP (8.1sp5), is there a pattern to handle expired session and render/display a "session timed out" page.
    Thanks in advance!

    I tried it. However, I encountered two problems:
    1. I placed the backing file at desktop level. And the page backing contexts I got back are null:
    try {   
    DesktopBackingContext ctx = DesktopBackingContext.getDesktopBackingContext(request);
    BookBackingContext bbc = ctx.getBookBackingContext();
    List children = bbc.getPageBackingContexts();
    for (Iterator i = children.iterator(); i.hasNext();)
    PageBackingContext pbc = (PageBackingContext) i.next();
    String label = pbc.getLabel();
    boolean bv = lableInArrayList(label, al);
    pbc.setVisible(bv);
    pbc.setActive(bv);
    } catch (Exception e) {
    where list "children" is returned as null, thus the null pointer exception when I tried to get an iterator.
    How come?
    2. When using SPNEGO single sign on, there is no straightforward and sure way to tell whether the request is (a) first time hit (i.e. session is new) or (b) is a hit after the session expires (i.e. the session is new again but I lost all pageflow state etc.). I could use request.getQueryString() as an indicator for (b) because the query string wouldn't be null vs. first hit http://.../abc.portal (without any query string). My question is: is this method request.getQueryString() a reliable way to indicate (b)?
    Thanks in advance!

Maybe you are looking for

  • Weird siebel 8.0 console mode installation problem on OEL 4

    Hi There, When I tried to install Siebel 8.0 SIA build on Oracle Enterprise Linux (OEL 4), I encountered a weird problem. It is a sandbox for QA to do testing, everything is on the same machine: oracle database 10.2.0.3, gateway, siebel server and SW

  • ICloud mail and Windows RT 8.1

    I've checked and used ALL instructions which describe different ways of using iCloud mail on a Windows RT 8.1 tablet. I've got following results: Standard Windows RT Mail client can't configure icloud mail at all (both using pxx-imap.mail.me.com/pxx-

  • WIRELESS CONNECTIVITY--RESET PMU

    Here is the deal with my Powerbook. I have been connecting to my wireless Linksys router no problem for 3 months or more. All of a sudden one day it says I have excellent signal and am connected to the network, but it cannot connect to the internet v

  • Order query by empty position - BEX query

    Hi, We need to order a BEX query by Invoice and Ascending Position (we need to see first the empty position #). The type of the infoObject "Position" is NUMC (6). We tried to convert it to char, but it didn't work. We also ordered the query by positi

  • Print & Print Preview in JSP application?

    Hi, I moved from swing to JSP. Trying to convert same Swing application to JSP application.In the swing application I used PRINT method in JPanel classes which implements PRINTABLE interface to format and print the data to the printer. Also I develop