Page Flow - Null request attributes

Hi.
I am using the netui:anchor and netui:paramter tags to add attributes to the request
object. However in the pageflow when I try to get them from the request using
this.getRequest().getParameter("xxx") - it seems to be NULL.
Any clues?
Girish

Hey Richard -
I solved this problem using the outerrequest and the scopedrequestutil classes.
However, I still have the page flow caching issue that many folks seem to be posting
on the newsgroups.
Thanks
Girish
"Richard Feit" <[email protected]> wrote:
Hello Girish,
This should work. Can you post a JSP fragment and a page flow action
that
demonstrates the problem?
Thanks,
Rich
"Girish Venkat" <[email protected]> wrote in message
news:3fe87514$[email protected]..
Hi.
I am using the netui:anchor and netui:paramter tags to add attributesto
the request
object. However in the pageflow when I try to get them from the requestusing
this.getRequest().getParameter("xxx") - it seems to be NULL.
Any clues?
Girish

Similar Messages

  • Return-to="currentPage" - Not able to get request attribute in page

    My JPF portlet has request "Request Attribute Persistence" as session.
    The Page Flow Refresh Action attribute is "refreshAction".
    My refreshAction annotation looks like this
    * This is called when the page is refreshed.
    * @jpf:action
    * @jpf:forward name="success" path="begin.do"
    * @jpf:forward name="goBackToCurrentPage" return-to="currentPage"
    * @jpf:forward name="goBackToPreviousPage" return-to="previousPage"
    * @jpf:forward name="goBackToPreviousAction" return-to="previousAction"
    When I try to forward to "goBackToCurrentPage", the request attribute that I had stored are not accessible in the JSP page.
    The only way for me to get that working is to change the forward to "goBackToPreviousAction".
    In this way, the action class will be called, which will inturn set the attribute in the request scope. However, this is a very expensive way.
    Is there something that I am missing here?

    Hi again!
    I must admit that I, after some tesing, had to leave the "goBackToPreviousAction" solution since it gave me some unwanted side effects.
    Instead I found a solution that actually works as one would expect.
    Thanks Graham Patterson!
    (http://forums.bea.com/bea/thread.jspa?messageID=200571206)
    My pfRefreshAction() now instead looks like this.
    * @jpf:action
    * @jpf:forward name="goBackToIndexPage" path="index.jsp"
    protected Forward pfRefreshAction()
    Forward forward = null;
    if ("forward to index page condition")
    forward = new Forward("goBackToIndexPage");
    return forward;
    Regards/ Thomas Lindbom :-)

  • Multiple Browsers with the same Page Flow

    I have a legacy application that I am working on migrating to Weblogic. The
    legacy application allowed the user to have multiple windows of the same
    module open at the same time. Users found this useful if they wanted to look
    at two different records in the same module. For example, if you had a
    registration app and you wanted to look at Joe's registration information
    and Sue's registration. Is it possible to have two browsers within the same
    session open and pointing to the same RegistrationController.jpf?
    Thank You.
    Michelle

    I believe our problem is that our form beans are class members of the page
    flow thus when you open another instance of the same controller the form
    beans are overwritten. Our GUI is displayed as modules containing multiple
    tabs with a form bean for each tab. The module has a controller, signifying
    the page flow for the module. So, one record in a module will span multiple
    tabs. We did not want to have one big form bean that is why we multiple
    form beans. But it now looks like we will need to store these form beans
    perhaps to the session in a collection identified by the window instance
    they belong to.
    We also need to do multiple different page flows but I don't think nested
    page flows will not work here because the page flows would almost need to be
    nested of each other. I guess you could almost think of as each module is
    an independent application however some can be invoked by others.
    <Rich Feit> wrote in message news:[email protected]..
    Hi Michelle,
    Yes, that should be just fine. That page flow will remain the "current
    page flow" as requests from both browser windows hit it. The NetUI
    runtime synchronizes the action methods, so you don't need to worry about
    thread-safety within them.
    There's also a way to have multiple different active page flows at the
    same time, but in this case you don't need to do anything special.
    Rich

  • How do I redirect request to an external page flow?

    Hi,
    I´m really stucked here. I need to redirect and XML wich I get in page flow to an external page flow(in a different project(war) but in the same workshop application(ear)), I´ve tryied all kinds off things but it does not work correctly.
    I even tryied what is written in workshop docs:
    If the path begins with a protocol such as "http:" the page flow runtime will look outside of this web application for the resource, and it will automatically cause a redirect (rather than a server forward) to the resource. If the path begins with a forward slash, "/", the runtime will start at the web application's root directory to locate the resource. If the path omits the forward slash, "/", the reference is relative to the page flow's directory.
    so I did:
    @jpf:forward name="goToKnapp" path="http://localhost:7001/eaiKnapp/PageFlowName.jpf"
    and inside the method:
    return new Forward("goToKnapp");
    and it does´t work.
    Any help will be wellcome.

    Go to iPhoto and hit File and go to EXPORT. From there you can export your entire iPhoto Library to your external drive in any folder you want. Now if you've named the pictures in iPhoto and you select the check box for NAME and Keywords in the EXPORT menu the photos will be exported with the names given in iPhoto and any keywords you have added to the photo such as a description.. Hope this helps not sure if this is what your looking for.

  • Use request attributes in JSF

    Is there a way we can pass data from one form bean to the other using request attributes insted of session attributes?
    I am able to work with session attributes using
    HttpSession mySession = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(true); and setting attributes to it, but getting null pointers(occassionally) when I retrieve the atribute and work with it.
    getSession(false) isnt helping either.
    Looks like facesServlet is creating a new request when it forwards to next page. Any idea on how to get the Faces Servlet do something like request despatcher forward, for navigation so I can work with request attributes?
    Appreciate your input.

    Can I have just one backing bean and use it for all jsps in the app? App has 4 flows from home page and mutiple jsps in each flow. Each jsp has multiple form fields. Is that OK?
    Any way to passing data/objects between different backing beans - other than using session attributes? I had similar problems working on Struts app as well.

  • Re: Page Flow Question

    John,
    We are looking into this and will get back to you.
    Regards,
    Anurag
    "John Hundley" <[email protected]> wrote in message
    news:3f184486$[email protected]..
    >
    Hi,
    I have developed a Page Flow application that has more than one entrypoint into
    a given set of pages that perform updates to a database. Depending onwhere the
    user entered the pages from I want to return to that page once the personhas
    completed making the updates. I have been toying with the return to pagebut
    that only works to go to the previous page and no further. I was thinkingI could
    set a variable in the globalApp class that would point to the initialentry page
    but I would have to do that in the .jsp and I haven't quite figured outhow to
    access globalApp from a .jsp. Is this the best approach or are therebetter ways
    of doing what I am trying to do? Has anyone done this sort of thing andhave an
    example?
    Thanks,
    John

    Thanks suggestion from Eddie and Gregory! Actually Eddie's suggestion by putting
    everything in a single line did work, however I encountered a even weirder problem:
    I am using a plugin called Chime Pro from MDL, by putting everything in a single
    line, the plugin is able to render picture on the test brower on server machine,
    however, the picture still won't be rendered on the client browser (on another
    PC with plugin installed), the weirdest thing is that when I start the TCPtrace
    utility:http://www.pocketsoap.com/tcptrace/, the plugin start to work.
    I initially think it may due to the port problem, I switched the server port to
    the common 8080, it still won't work.
    Does anyone in this group use Chime Pro plugin? Any suggestion is appreciated.
    Thanks
    Zhenhao
    Eddie O'Neil <[email protected]> wrote:
    Zhenhao--
    Try putting everything on a single line; it looks like the \n's at the
    end of the taglib definitions are putting returns in the output page.
    Eddie
    Zhenhao Qi wrote:
    Hi Eddie,
    Thanks for the hint, by using <netui:content/> tag, I did get rid ofthe HTML
    <span> ...</span> wrap. However, I still got several empty lines beforemy output
    (please see the attached returned-format.txt and the format_wanted.txtand the
    screen shot ), this causes my plugin refuse to render the picture.I think those
    empty line is due to my code below, somehow the WLS output newlineif I have code
    on that line "
    <%@ page contentType="chemical/x-mdl-molfile"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <%@taglib prefix="netui" uri="netui-tags-html.tld"%>
    <netui-data:callPageFlow method="GetMolbyscode" resultId="jpfMol">
    <netui-data:methodParameter value="{url.Sample_code}"/>
    </netui-data:callPageFlow>
    <netui:content value="{pageContext.jpfMol}" >
    </netui:content>
    I think we are getting close to solve the problem, but this maybe adifficult
    one due to workshop's own setting.
    Thanks!
    zq
    Eddie O'Neil <[email protected]> wrote:
    Zhenhao--
    Try using the <netui:content/> tag; this simply writes the text to
    the output stream and does not wrap it in an HTML <span>...</span>
    as
    the <netui:label/> tag does.
    Let me know if that helps...
    Eddie
    Zhenhao Qi wrote:
    Hi,
    Looks like my workshop debugger is behaving better this afternoon.My apology
    for the previous message, the "call PageFlow" did return the stringI expected,
    However, the format is little off from what I expected, please seethe attached
    return format and the format I wanted.
    I have the following jsp code:
    <%@ page contentType="chemical/x-mdl-molfile"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <%@taglib prefix="netui" uri="netui-tags-html.tld"%>
    <netui-data:callPageFlow method="GetMolbyscode" resultId="jpfMol">
    <netui-data:methodParameter value="{url.Sample_code}"/>
    </netui-data:callPageFlow>
    <netui:label value="{pageContext.jpfMol}" >
    </netui:label>
    Is there any way inside workshop that I maybe able to tweak code alittle to make
    the format suit my need, this is critical for my plugin to recognizethe format
    to reder some picture.
    Thanks!
    Zq
    "Zhenhao Qi" <[email protected]> wrote:
    Hi Eddie,
    Thanks a lot for the info.! the "{url.Sample_code}" did solve my
    dynamic
    data
    binding problem, however it looks like it did not return any thingwhen
    I use
    the following code:
    <netui-data:callPageFlow method="GetMolbyscode" resultId="jpfMol">
    <netui-data:methodParameter value="{url.Sample_code}"/>
    </netui-data:callPageFlow>
    <netui:label value="{pageContext.jpfMol}" >
    </netui:label>
    The method "GetMolbyscode" in the .jpf as following:
    public String GetMolbyscode(String S_code)
    try {
    java.sql.Clob molfile = structuredb.getmolbyscode(S_code);
    int len = (int)molfile.length();
    String molfil = molfile.getSubString(1, len);
    return molfil;
    catch (SQLException e) {
    System.err.print("Caught Exception : ") ;
    e.printStackTrace() ;
    return null;
    I did use "toggle breakpoint" to step through the excution of "GetMolbyscode",
    I got the expected "molfil". I need to particularly mention that
    the
    returned
    string "molfil" contains several "\n" inside it, I am wondering this
    may cause
    the problem.
    By the way, the "toggle breakpoint" debugging function sometimesdid
    not work,
    I am wondering why.
    Thanks!
    Zq
    Eddie O'Neil <[email protected]> wrote:
    Zhenhao--
    The NetUI tags use data binding expressions to access data. Oneof
    the ways you could do this is to use the "url" binding context,
    which
    provides access to the first parameter that shows up on the URLfor
    each
    parameter key; this is equivalent to your getParameter(...) call.
    Replace your methodParameter with this:
    <netui-data:methodParameter value="{url.Sample_code}"/>
    Hope that helps...
    Eddie
    Zhenhao Qi wrote:
    Hi All,
    I am new to this newsgroup. I am using workshop 8.1 and try to
    call
    dynamically
    the PageFolow method, but it won't work, is there alternatives?
    I have the follwing codes:
    <%
    String S_code = request.getParameter("Sample_code");
    %>
    <netui-data:callPageFlow method="GetMolbyscode" resultId="jpfmol">
    <netui-data:methodParameter value="<%=S_code%>"/>
    </netui-data:callPageFlow>
    However, it give me the error: this attribute does not supportrequest
    time value.
    Thanks!
    zq
    ISISHOST03270216272D 1 1.00000 0.00000 26670
    41 44 0 0 0 999 V2000
    2.7381 -3.0319 0.0000 C 0 0 0 0 0 0 0 00
    3.5627 -3.0960 0.0000 C 0 0 0 0 0 0 0 00
    4.0298 -2.4093 0.0000 C 0 0 0 0 0 0 0 00
    3.6710 -1.6674 0.0000 C 0 0 0 0 0 0 0 00
    2.3818 -2.2873 0.0000 C 0 0 0 0 0 0 0 00
    2.8488 -1.6080 0.0000 C 0 0 0 0 0 0 0 00
    2.3471 -0.9539 0.0000 N 0 0 3 0 0 0 0 00
    1.5699 -1.2290 0.0000 C 0 0 0 0 0 0 0 00
    1.5915 -2.0530 0.0000 C 0 0 0 0 0 0 0 00
    0.8901 -0.7616 0.0000 C 0 0 0 0 0 0 0 00
    0.9549 0.0608 0.0000 O 0 0 0 0 0 0 0 00
    0.1454 -1.1167 0.0000 N 0 0 0 0 0 0 0 00
    -0.5344 -0.6494 0.0000 C 0 0 0 0 0 0 0 00
    -0.4678 0.1701 0.0000 C 0 0 0 0 0 0 0 00
    -1.1469 0.6373 0.0000 C 0 0 0 0 0 0 0 00
    -1.8925 0.2822 0.0000 C 0 0 0 0 0 0 0 00
    -1.9550 -0.5447 0.0000 C 0 0 0 0 0 0 0 00
    -1.2751 -1.0082 0.0000 C 0 0 0 0 0 0 0 00
    -1.0817 1.4597 0.0000 C 0 0 3 0 0 0 0 00
    -0.3368 1.8145 0.0000 C 0 0 0 0 0 0 0 00
    -1.7613 1.9274 0.0000 C 0 0 0 0 0 0 0 00
    -0.3041 1.1839 0.0000 C 0 0 0 0 0 0 0 00
    -1.3358 -1.8310 0.0000 O 0 0 0 0 0 0 0 00
    -2.0787 -2.1898 0.0000 C 0 0 0 0 0 0 0 00
    -2.6984 -0.9024 0.0000 N 0 0 0 0 0 0 0 00
    -3.3799 -0.4375 0.0000 S 0 0 3 0 0 0 0 00
    -4.1233 -0.7952 0.0000 C 0 0 0 0 0 0 0 00
    -2.7549 0.1042 0.0000 O 0 0 0 0 0 0 0 00
    -3.7404 0.3098 0.0000 O 0 0 0 0 0 0 0 00
    4.1342 -0.9847 0.0000 N 0 0 0 0 0 0 0 00
    4.9571 -1.0445 0.0000 C 0 0 0 0 0 0 0 00
    5.4203 -0.3619 0.0000 C 0 0 0 0 0 0 0 00
    5.3167 -1.7870 0.0000 O 0 0 0 0 0 0 0 00
    6.2476 -0.4235 0.0000 C 0 0 0 0 0 0 0 00
    6.7107 0.2583 0.0000 C 0 0 0 0 0 0 0 00
    6.3511 1.0018 0.0000 C 0 0 0 0 0 0 0 00
    5.5239 1.0593 0.0000 N 0 0 0 0 0 0 0 00
    5.0645 0.3766 0.0000 C 0 0 0 0 0 0 0 00
    6.8135 1.6851 0.0000 N 0 0 0 0 0 0 0 00
    7.6364 1.6264 0.0000 C 0 0 0 0 0 0 0 00
    2.5816 -0.1629 0.0000 C 0 0 0 0 0 0 0 00
    9 5 1 0 0 0
    19 20 1 0 0 0
    4 6 1 0 0 0
    19 21 1 0 0 0
    8 10 1 0 0 0
    19 22 1 0 0 0
    5 6 2 0 0 0
    18 23 1 0 0 0
    10 11 2 0 0 0
    23 24 1 0 0 0
    1 2 2 0 0 0
    17 25 1 0 0 0
    10 12 1 0 0 0
    25 26 1 0 0 0
    5 1 1 0 0 0
    26 27 1 0 0 0
    12 13 1 0 0 0
    26 28 2 0 0 0
    2 3 1 0 0 0
    26 29 2 0 0 0
    13 14 2 0 0 0
    4 30 1 0 0 0
    30 31 1 0 0 0
    14 15 1 0 0 0
    31 32 1 0 0 0
    3 4 2 0 0 0
    31 33 2 0 0 0
    15 16 2 0 0 0
    32 34 2 0 0 0
    6 7 1 0 0 0
    34 35 1 0 0 0
    16 17 1 0 0 0
    35 36 2 0 0 0
    7 8 1 0 0 0
    36 37 1 0 0 0
    17 18 2 0 0 0
    37 38 2 0 0 0
    38 32 1 0 0 0
    18 13 1 0 0 0
    36 39 1 0 0 0
    8 9 2 0 0 0
    39 40 1 0 0 0
    15 19 1 0 0 0
    7 41 1 0 0 0
    M END
    </span>------------------------------------------------------------------------

  • 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

  • Menu-drive page flow without having to resort to portals

    Is it possible to use the page flow system in a cross-frame context, without having
    to resort to the Portal paradigm?
    We need to display a menu in the top frame and the actual page displayed in the
    center frame needs to change when a menu option is clicked. I know this sounds
    a lot like the portal, but it is much more simple. Can I find an example somewhere
    on how to implement this with only a page flow.
    Thanks in advance,
    Regards,
    Jan Noppen

    Hi Jan,
    we needed something similar in one of our projects. I don't know if you
    mean html frames, or you just used the word to describe the menu-content
    structure. We had the later.
    We used netui:templates to do it. We created a template that contained a
    menu and the actual content. The jsp-s of the pageflow used this
    template, so they had the menu. The different parts can communicate
    using request or session.
    BR,
    don
    Template:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <netui:html>
    <head>
    <netui:base />
    <title><netui-template:attribute name="title"/></title>
    <link href="<%=request.getContextPath()%>/resources/css/style.css"
    type="text/css" rel="stylesheet"/>
    </head>
    <body style="margin:0">
    <jsp:include page="menu.jsp" />
    <netui-template:includeSection
    name="bodySection"></netui-template:includeSection>
    </body>
    </netui:html>
    jsp in pageflow:
    <!--Generated by WebLogic Workshop-->
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <netui-template:template templatePage="/resources/jsp/mytemplate.jsp">
    <netui-template:setAttribute value="Title of page" name="title"/>
    <netui-template:section name="bodySection">
         some content
    </body>
    </netui-template:section>
    </netui-template:template>
    Jan Noppen wrote:
    Is it possible to use the page flow system in a cross-frame context, without having
    to resort to the Portal paradigm?
    We need to display a menu in the top frame and the actual page displayed in the
    center frame needs to change when a menu option is clicked. I know this sounds
    a lot like the portal, but it is much more simple. Can I find an example somewhere
    on how to implement this with only a page flow.
    Thanks in advance,
    Regards,
    Jan Noppen

  • Calling Service Control from Page Flow

    In Workshop for Weblogic Platform v10.0, we have a web service control in a page flow.
    Although the web service call succeeds (as evidenced by a TcpMon monitor), the control method always returns null.
    I'm guessing that although the call looks synchronous, it's actually behaving asynchronously - returning immediately with null.
    Is this perhaps related to the particulars of calling controls from a Page Flow environment? Is it a bug in v10 of Workshop (Eclipse-based?
    Thanks for any ideas!
    - Rob
    ps: Here's the control interface and using class:
    package controls;
    import com.bea.control.ServiceControl;
    import org.apache.beehive.controls.api.events.EventSet;
    import org.apache.beehive.controls.api.bean.ControlExtension;
    @ServiceControl.Location(urls = {"http://LECAP1.lan.us.ray.com:9905/xsltTransform_vs0"})
    @ServiceControl.HttpSoapProtocol
    @ServiceControl.SOAPBinding(style = ServiceControl.SOAPBinding.Style.DOCUMENT, use = ServiceControl.SOAPBinding.Use.LITERAL, parameterStyle = ServiceControl.SOAPBinding.ParameterStyle.BARE)
    @ServiceControl.WSDL(resourcePath = "controls/cesXsltTransform.wsdl", service = "xsltTransform_vs0")
    @ControlExtension
    public interface xsltTransform_vs0ServiceControl extends ServiceControl
    static final long serialVersionUID = 1L;
    public java.lang.String xmlTransform(com.raytheon.schemas.ces.transformationservices.xmlschema.schema.TransformInput transformInput_arg);
    /** This event set interface provides support for the onAsyncFailure event.
    @EventSet(unicast=true)
    public interface Callback extends ServiceControl.Callback {};
    @Control
    private xsltTransform_vs0ServiceControl xsltTransform_vs0ServiceControl1;
    com.raytheon.schemas.ces.transformationservices.xmlschema.schema.TransformInput transformInput_arg = form
                        .getTransformInput_arg();
    String xmlTransformResult = xsltTransform_vs0ServiceControl1
                        .xmlTransform(transformInput_arg);

    Strange -- the PageFlowJspFilter adds no-cache headers to the response, so
    if you're forwarding to a JSP from the action, then the browser shouldn't be
    caching the result. What's in the URL bar in the case where your request is
    getting cached?
    "Neeraj Harlalka" <[email protected]> wrote in message
    news:3ff993bd$[email protected]..
    >
    Richard -
    Ok. I dug deeper into the issue and now my problem is that although theaction
    is getting called correctly, it seems to execute from a cache. The actiondoes
    not get executed the second time.
    Any ideas?
    Neeraj
    "Richard Feit" <[email protected]> wrote:
    Hmm... I'm not sure why you'd get that. Can you post the relevant JSP
    code?
    Also, are you able to hit the other page flow directly from a browser?
    Rich
    "Neeraj Harlalka" <[email protected]> wrote in message
    news:[email protected]..
    Hi Richard -
    I get an error saying cannot find the begin.do action.
    Thanks
    Neeraj
    Richard Feit" <[email protected]> wrote:
    Hello Neeraj,
    This should work:
    <netui:anchor
    href="/someOtherFlow/SomeOtherFlowController.jpf">someOtherFlowController.
    j
    p
    f</netui:anchor>
    What happens when you do this?
    Rich
    "Neeraj Harlalka" <[email protected]> wrote in message
    news:3fda39df$[email protected]..
    I read the other posts on how to call one page flow from a jsp
    that
    belongs to
    another pageflow. However the last suggestion posted - use the netuianchor tag
    with href, also does not work.
    Any other solution?
    Thanks
    Neeraj

  • Nested Page Flows and Pop Ups - Workshop 8.1

    Hi, everybody.
    I'm facing the following problem:
    I've a "main" page flow within some page flow-scoped data and forms. Now i need to open/execute another page flow (a "secondary" one) inside a pop up window. The tricky is i cannot "lose" the data in the first page flow. I will navigate to main page, fill some data, open the pop up, execute some queries, close the pop up and continue previous navigation.
    If i don't use a "nested" page flow for my pop up, i loose the page flow-scoped data from my main page flow (a new page flow is created).
    If i use a nested page flow, the following scene does not work:
    - Go to main page (create main page flow);
    - Fill some data;
    - Open pop up (create nested page flow);
    - Perform some queries (execute actions inside nested page flow);
    - Close pop up window;
    - Fill some data;
    - Submit main page;
    - Execute form validation using Struts Validator.
    When i execute the last step and there are errors in the submitted form, netui data binding tags fail. I believe that the engine "thinks" that it should use nested page flow (and form) instead of the main page flow (and form).
    I've found a workaround for this situation: When the pop up is closed, the main page execute a "dummy refresh action" in the main page flow.
    Is this the correct behaviour ? Is there another way of do it ?
    Thanks in advance.

    Hi Vimala.
    I cannot lose page flow data because i have other kind of data (beside a form) inside my page flow: Options values, previous search result list, ...
    Can i close the pop up window without call "return-action" ? How should i proceed if i don't need/have a "return-action" ?
    How should i proceed if i should to specify the forward of a "return-action" as a request parameter/attribute ?
    Thanks.

  • Page Flows - opening new windows - losing context values

    Hi.. Anyone face this -?
    I have a page flow that gets some data from the database and displays it in a grid. The page has a print button that should open a popup with a printable version of the grid. I am storing the rowset in the page flow as an instance variable. Now when I click on print, I call an action in the page flow that opens a new JSP in another window. The JSP is expecting the grid from the page flow context. However, it seems like in the new window, a new version of the controller is getting instantiated, with the rowset being null.
    How would I get around this?
    Thanks
    Kunal

    I've had success with the following so far--think it works around the instance label limitation:
    * Popup window action. Redirect set to true to unwrap request from portal.
    * @jpf:action
    * @jpf:forward path="/portlets/full/path/to/this/action/displayNumber.do" name="jumpout" redirect="true"
    * @jpf:forward path="Number.jsp" name="success"
    protected Forward displayNumber() throws Exception
         String s = this.getRequest().getParameter("jpfScopeID");
         if(s==null || s.equals("")){
              Forward fwd = new Forward("jumpout");
              pageFlowVar x = "test";
              PortletBackingContext ctx = PortletBackingContext.getPortletBackingContext(this.getRequest());
              fwd.addQueryParam("jpfScopeID", ctx.getInstanceLabel());
              return fwd;
         } else {
              Forward fwd = new Forward( "success" );
              fwd.addPageInput("pageInput", x);
              return fwd;
    }

  • 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 get actionOverride value in the URL in page Flow

    Hi All,
    I have main page Flow , under main page flow there are 2 sub folders.When i navigate
    between the page flow the URL I can see is like http://localhost:7501/myWEB/actportal.portal?_nfpb=true&portlet_2_1_actionOverride=/content/account/getAccount
    Can any body tell me how to get the value 'portlet_2_1' that we see in the URL.
    What is the API to get this value.
    Thanks & Regards,
    Hitesh C.

    u can try in JSP:
    DesktopPresentationContext dpCtx = DesktopPresentationContext.getDesktopPresentationContext(request);
    BookPresentationContext bpCtx= dpCtx.getBookPresentationContext();
    ArrayList al = bpCtx.getPagePresentationContexts();
    for(int i=o; i<al.size(); i++) {
    PagePresentationContext ppCtx = (PagePresentationContext )al.get(i);
    List windowCtxList = ppCtx.getWindowPresentationContexts();
    for(int j=0; j<windowCtxList.size(); j++) {
    WindowPresentationContext wpCtx = (WindowPresentationContext)windowCtxList.get(j);
    wpCtx.getLabel();
    "Hitesh" <[email protected]> wrote:
    >
    Joe,
    Thx a lot .
    I got the instance ID for the current portlet with API
    com.bea.netuix.servlets.controls.portlet.PortletPresentationContext.getPortletPresentationContext(request).getInstanceLabel();
    But how to get instance label for other Portlet ? any idea..........
    Thanks ,
    Hitesh
    "Joe" <[email protected]> wrote:
    It is a portlet's instance name. You can see it in the .portal screen
    as a property.
    This is added for portlet scoping. The instance name you might get from
    a
    backing (did not find it yet) or soeme fancy request attribute eventually.
    "Hitesh" <[email protected]> wrote:
    Hi All,
    I have main page Flow , under main page flow there are 2 sub folders.When
    i navigate
    between the page flow the URL I can see is like http://localhost:7501/myWEB/actportal.portal?_nfpb=true&portlet_2_1_actionOverride=/content/account/getAccount
    Can any body tell me how to get the value 'portlet_2_1' that we see
    in the URL.
    What is the API to get this value.
    Thanks & Regards,
    Hitesh C.

  • Javax.servlet.forward.request_uri request attribute

    Hi,
    I have declared a security-constraint on my web application, which redirects to a page with a form.
    I want to know the initial request. It usually can be retrieved in the javax.servlet.forward.request_uri request attribute, so by doing
    request.getAttribute("javax.servlet.forward.request_uri")
    But this always returns me null.
    If I test the same thing on Tomcat, it works fine.
    This attribute come with Servlet 2.4, and Weblogic 11g is JEE 5 compliant (so Servlet 2.5). So it should work.
    Is there a particularity for Weblogic ?
    Regards

    >
    This attribute come with Servlet 2.4, and Weblogic 11g is JEE 5 compliant (so Servlet 2.5). So it should work.
    Is there a particularity for Weblogic ?This attribute does exist and has to be filled when a forward is done. However there's no strict requirement that the j_security_check is handled internally by a forward. If it's not, then that request attribute wouldn't come into play.
    I've never used it, so caveat emptor, but there is a public class we have which does appear to have some methods that may be helpful to you.
    http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e13941/weblogic/servlet/security/ServletAuthentication.html
    ServletAuthentication allows both form-based authentication and programmatic authentication in servlets. It performs the authentication call through the Realm and sets the user information into the session.And the static getTargetURLFromFormAuthentication method:
    http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e13941/weblogic/servlet/security/ServletAuthentication.html#getTargetURLForFormAuthentication(HttpSession)
    -steve-

  • Page flow exception

    I have one serious problem when handling exception in page flow. ie.
    my code looks like,
    // Generated by WebLogic Workshop
    // Created on: Mon Dec 01 15:31:45 GMT+05:30 2003
    // By: kshashishekar
    package portlets.validation.validation;
    import com.bea.wlw.netui.pageflow.FormData;
    import com.bea.wlw.netui.pageflow.Forward;
    import com.bea.wlw.netui.pageflow.PageFlowController;
    import com.bea.wlw.netui.tags.html.TreeNode;
    import javax.security.auth.login.FailedLoginException;
    import javax.servlet.http.HttpServletRequest;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.action.*;
    import com.login.CustomLogin;
    import com.bea.p13n.controls.login.UserLoginControl;
    * @jpf:controller struts-merge="struts-config-portlets-validation-validation2.xml"
    * @jpf:message-resources resources="validation.validator.Message"
    * @jpf:view-properties view-properties::
    * <!-- This data is auto-generated. Hand-editing this section is not recommended.
    -->
    * <view-properties>
    * <pageflow-object id="pageflow:/portlets/validation/validation/validationController.jpf"/>
    * <pageflow-object id="action:begin.do">
    * <property value="280" name="x"/>
    * <property value="60" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="action:validate1.do#portlets.validation.validation.validationController.ValidateForm">
    * <property value="220" name="x"/>
    * <property value="200" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="action:logout.do#portlets.validation.validation.validationController.ValidateForm">
    * <property value="120" name="x"/>
    * <property value="100" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="action-call:@page:validate1Page1.jsp@#@action:validate1.do#portlets.validation.validation.validationController.ValidateForm@">
    * <property value="384,320,320,256" name="elbowsX"/>
    * <property value="172,172,192,192" name="elbowsY"/>
    * <property value="West_1" name="fromPort"/>
    * <property value="East_1" name="toPort"/>
    * </pageflow-object>
    * <pageflow-object id="page:validate1Page1.jsp">
    * <property value="420" name="x"/>
    * <property value="180" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="action-call:@page:Result.jsp@#@action:validate1.do#portlets.validation.validation.validationController.ValidateForm@">
    * <property value="156,170,170,184" name="elbowsX"/>
    * <property value="332,332,203,203" name="elbowsY"/>
    * <property value="East_1" name="fromPort"/>
    * <property value="West_2" name="toPort"/>
    * </pageflow-object>
    * <pageflow-object id="page:Result.jsp">
    * <property value="120" name="x"/>
    * <property value="340" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="page:/error.jsp">
    * <property value="40" name="x"/>
    * <property value="180" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="forward:path#success#validate1Page1.jsp#@action:begin.do@">
    * <property value="316,350,350,384" name="elbowsX"/>
    * <property value="52,52,172,172" name="elbowsY"/>
    * <property value="East_1" name="fromPort"/>
    * <property value="West_1" name="toPort"/>
    * <property value="success" name="label"/>
    * </pageflow-object>
    * <pageflow-object id="forward:path#success#Result.jsp#@action:validate1.do#portlets.validation.validation.validationController.ValidateForm@">
    * <property value="184,170,170,156" name="elbowsX"/>
    * <property value="192,192,332,332" name="elbowsY"/>
    * <property value="West_1" name="fromPort"/>
    * <property value="East_1" name="toPort"/>
    * <property value="success" name="label"/>
    * </pageflow-object>
    * <pageflow-object id="forward:path#success#validate1Page1.jsp#@action:logout.do#portlets.validation.validation.validationController.ValidateForm@">
    * <property value="156,270,270,384" name="elbowsX"/>
    * <property value="92,92,172,172" name="elbowsY"/>
    * <property value="East_1" name="fromPort"/>
    * <property value="West_1" name="toPort"/>
    * <property value="success" name="label"/>
    * </pageflow-object>
    * <pageflow-object id="control:com.bea.p13n.controls.login.UserLoginControl#myControl">
    * <property value="28" name="x"/>
    * <property value="34" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="formbeanprop:portlets.validation.validation.validationController.ValidateForm#username#java.lang.String"/>
    * <pageflow-object id="formbeanprop:portlets.validation.validation.validationController.ValidateForm#password#java.lang.String"/>
    * <pageflow-object id="formbean:portlets.validation.validation.validationController.ValidateForm"/>
    * </view-properties>
    public class validationController extends PageFlowController
    * This is the control used to generate this pageflow
    * @common:control
    private UserLoginControl myControl;
    // Uncomment this declaration to access Global.app.
    // protected global.Global globalApp;
    // For an example of page flow exception handling see the example "catch"
    and "exception-handler"
    // annotations in {project}/WEB-INF/src/global/Global.app
    * This method represents the point of entry into the pageflow
    * @jpf:action
    * @jpf:forward name="success" path="validate1Page1.jsp"
    protected Forward begin()
    return new Forward( "success" );
    * @jpf:action validation-error-page="validate1Page1.jsp"
    * @jpf:forward name="success" path="Result.jsp"
    * @jpf:catch method="exceptionHandler" type="Exception"
    protected Forward validate1(ValidateForm aForm) throws Exception
    com.bea.p13n.usermgmt.profile.ProfileWrapper var = myControl.login( aForm.username,
    aForm.password, getRequest());
    getRequest().setAttribute( "results", var );
    return new Forward("success",aForm);
    * Action encapsulating the control method :logout
    * @jpf:action
    * @jpf:forward name="success" path="validate1Page1.jsp"
    * @jpf:catch message="not authenticated" path="/error.jsp" type="Exception"
    public Forward logout( ValidateForm aForm )
    throws Exception
    myControl.logout( getRequest() );
    return new Forward( "success" );
    * @jpf:exception-handler
    * @jpf:forward name="errorPage" path="/error.jsp"
    protected Forward exceptionHandler( Exception ex, String actionName, String
    message, FormData form )
    String displayMessage = "An exception occurred in the action " + actionName;
    System.out.println ("display message "+displayMessage);
    getRequest().setAttribute( "errorMessage", displayMessage );
    return new Forward( "errorPage" );
    * FormData get and set methods may be overwritten by the Form Bean editor.
    public static class ValidateForm extends org.apache.struts.validator.ValidatorForm
    private String password;
    private String username;
    public void setUsername(String username)
    this.username = username;
    public String getUsername()
    return this.username;
    public void setPassword(String password)
    this.password = password;
    public String getPassword()
    return this.password;
    * added just to test validate (override) method.
    public ActionErrors validate(ActionMapping map, HttpServletRequest req)
    ActionErrors errors = null;
    try {
    errors = super.validate(map,req);
    }catch (Exception e)
    e.printStackTrace();
    if (errors ==null) {
    System.out.println ("errors = "+errors);
    } else
    System.out.println ("errors= "+errors);
    return errors;
    in the above code when we call "validate1" action, it will authenticate successfully
    when we enter valid username and passowrd.
    But when i enter invalid credentials page flow controller should execute "handleException"
    method but at this time i am getting an error
    Page Flow Unhandled Exception
    Exception: java.lang.IllegalArgumentException
    Message: argument type mismatch
    A java.lang.IllegalArgumentException exception was thrown and not handled by any
    Page Flow. See the console for the exception stack trace.
    please help us on how to rectify this error.
    thanks,
    shashi
    [validationController.jpf]

    Hi-
    That may be on the right track, but the /index.jsp page gets displayed in the
    portlet...I am still within the portal framework, so I don't think I am loosing
    the context...
    -Howie
    "Khurram Zafar" <[email protected]> wrote:
    >
    you are most likely redirecting to the /error.jsp page and losing the
    context for
    your portal app. The index.jsp page may be defined as your <welcome-file>
    in your
    web.xml file. The best thing to do is to save the context before visiting
    error.jsp
    and then provide a link in error.jsp to go back. Look at javadoc for
    PageURL for
    obtaining the URL to a portal page, you can then save it in session of
    pass it
    to your error page.
    "Howie Oakes" <[email protected]> wrote:
    Hello-
    I have a page flow portlet that I am testing some exception handling
    on. Right
    now when I catch an exception, I display the global /error.jsp page,
    using the
    @jpf:catch tag. The problem is when I refresh the page after viewing
    the error
    page, the pageflow always pulls up the /index.jsp page at the root of
    the webapp.
    I have to get a new session to see the original page flow.
    This only happens when I am running the Jpf as a portlet...I don't see
    this behavior
    with it stand-alone.
    I am not sure why the index.jsp page is being called...there are noreferences
    to it in my jpf code...
    thanks,
    Howie

Maybe you are looking for

  • How do i use my .mac email with iCloud?

    I had a .mac account with mobile me which i switched over to iCloud when prompted. I just receently bought a brand new iMac and want to use my .mac email in the apple Mail program but it's not working. I'm assuming the "type" of email is iCloud. Any

  • Document Splitting at the time of Bill of exchange

    Dear All, issue is related to Document Splitting at the time of Bill of exchange I booked  2 different Customer Sales through FI, but both invoice have different Profit centre. Entry is like Customer A/C Dr 1000   Pc 1100   To Sales A/C     1000    

  • I made my screen large somehow...I cannot see all of my Icons

    can anyone help...Rm

  • Empty Events

    Man, this is the crappiest upgrade Apple has ever put out. I've solved a lot of issues by rebuilding the library, fixing permissions, etc. Importing photos is still flakey, and I've had to rebuild the library many times just to get newly imported pho

  • Iphone4 to 6.3.1, not single delete personal records Even deleted

    Why update my iphone4 to 6.3.1, not single delete personal records Even deleted, not when the machine is flash back I delete the phone number will appear simply no way to single delete records of calls reopen