Replacing page flow factory

Hello,
We are using Portal 8.1 SP6
I have seen an interesting way to implement dependency injection in NanoWAR (PicoContainer).
They have implemented their own the struts processorClass, which is responsible to resolve the dependencies for the struts Action classes, and there they inject dependencies.
The dependencies key is the URL to an action.
Since a page flow is somehow a struts action, I was looking for a way to replace the processor class by my own one. Have a look at the .pageflow-struts-generated directory and you will see that Portal has defined following line:
processorClass="com.bea.wlw.netui.pageflow.PageFlowRequestProcessor"
Has anybody any idea about how to replace that class?
If this is not possible, is there a way replace Portal's page flow factory by my own one?
Thanks,
Yves Bossel
Edited by ybossel at 05/29/2007 7:13 AM

Hello,
After some research Workshop documentation I have found the com.bea.wlw.netui.pageflow.FlowControllerFactory class.
That class is responsible to resolve the page flow class and to create new page flow instances.
If I could specify the FlowControllerFactory, it would be possible to inject the dependencies into the page flows, just after they get instantiated.
The idea is to declare a decorator for the FlowControllerFactory that injects the dependencies (setter injection) after the decorated FlowControllerFactory has created a page flow.
Note that I would prefer to use constructor injection. But this is a good start.
I would appreciate any idea about how to replace the FlowControllerFactory.
Thanks in advance,
Yves

Similar Messages

  • 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>------------------------------------------------------------------------

  • Trigger ADF page flow from BPEL

    Hi
    I have couple of questions regarding BPEL and ADF interactions.
    My requirement is to launch a application (similar to a payment gateway) which takes the input parameters from client and performs some processing using couple of ADF pages. After my processing is done, i would like to direct the page flow to "success" or "failure" pages. the URL's for the success and failure pages would be provided by the client in the payload before launching the application.
    1. can a ADF flow be triggered from a BPEL/ESB process ?
    2. can the client apps page flow be modified by the result of my apps processing ?
    any pointers to sample implementations or documentation would be really helpful.
    Thanks in advance
    Pradeep

    Pradeep,
    BPEL - Business Process Execution Language - not Page Flow Execution Language :D. BPEL is for Business process development at a large and not to replace the page flow of say Struts, or JSF navigation.
    You can trigger any process from a page but I would strongly advise against trying to do the opposite route. For simple fillups off information you can use the Human Workflow part of BPEL, for complex - screensets - this will be part of 11.
    For your requirement, it might be good enough to write some result from a process to the db and based on it - the application decides what to do next - in this case the page flow lies again within the application and NOT BPEL
    hth clemens

  • 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

  • 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

  • Multiple instances of Page Flows

    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?
    We currently have our form beans stored in the page flow which seems to
    cause a problem as when we open another browser instance in the same session
    pointing to the same page flow, the form beans from the first window are
    overwritten. An approach we are possbily looking at is to store the form
    beans in an object in the session and identify a set of form beans as
    belonging to a particular window instance - perhaps by uniquely naming the
    windows as they are opened.
    Has anyone done this before with needing to have multiple instances of the
    same page flow or multiple instances of different non-nested page flows open
    at the same time?
    Michelle

    Hi Vijay,
    Thanks for the reply, But that's not the right aproach.
    I cannot change the application to stateless, Since the standard application where the page resides is statefull.
    Also some of the business logic I cannot achive with stateless application
    Regards
    Geogy

  • Communication between multiple page flow portlets

    Hi, I am working on weblogic portal 8.1.
    I've been struggling to communicate between different page flow portlets,
    I have a login page flow portlet and i need to submit login details to indeex page after login action is done.
    I am able to do this by using PageUrl class and RequestDispatcher's forward method using definition label of the index page flow portlet.
    but it is not happening again when i logged out.
    If anybody have worked on it, please let me know the soltution.
    Thanks,
    Vidya sagar

    Not sure whether you tried this option(I tried it works for me).
    configuration has to be done is portlet-2:
    =========================
    Create an custom event namely(messageCustomEvent) and also add an action for it for invoking a portlet method getMessage in Portlet-2.
    //Place this method in Portlet-2
    public void getMessage(ActionRequest request, ActionResponse response,
    Event event) {
    CustomEvent customEvent = (CustomEvent) event;
    String message = (String) customEvent.getPayload();
    response.setRenderParameter("message0", message);
    configuration has to be done is portlet-1:
    =========================
    when click on Login in portlet1, in the pageflow code you fire an custom event as shown below
    PortletBackingContext context =
    PortletBackingContext.getPortletBackingContext(getRequest());
    context.fireCustomEvent("messageCustomEvent", form.getMessage());
    return new Forward("success");
    Thanks & Regards,
    Murali.
    ============

  • Workshop CRASHED while editing a page flow

    Workshop Gurus -
    Any clues on this bug. I get this error while editing pageflow. It just started
    happening this morning.
    I must say, WLW crashes gracefully. It allows me to report this message directly
    to BEA, and then allows me to save my files. However, I do need a resolution to
    this problem, hopefully soon.
    java.lang.NullPointerException
         at workshop.pageflow.model.ExternalPageFlow.refChanged(ExternalPageFlow.java:120)
         at workshop.pageflow.model.DocumentEventAdapter.processModelObjects(DocumentEventAdapter.java:492)
         at workshop.pageflow.model.DocumentEventAdapter.process(DocumentEventAdapter.java:177)
         at workshop.pageflow.model.DocumentEventAdapter.elementChange(DocumentEventAdapter.java:123)
         at com.bea.ide.element.ElementChangeSupport.fireListeners(ElementChangeSupport.java:253)
         at com.bea.ide.element.ElementChangeSupport.fireElementChange(ElementChangeSupport.java:243)
         at com.bea.ide.element.ElementChangeSupport.fireElementChange(ElementChangeSupport.java:219)
         at com.bea.ide.document.DefaultDocument.fireElementChildRemoved(DefaultDocument.java:482)
         at com.bea.ide.sourceeditor.DefaultSourceDocument.mergeComplete(DefaultSourceDocument.java:523)
         at com.bea.ide.sourceeditor.DefaultSourceDocument.mergeMetadata(DefaultSourceDocument.java:610)
         at workshop.sourceeditor.compiler.CompilerProject$MergeRunner.run(CompilerProject.java:1448)
         at workshop.sourceeditor.compiler.CompilerSvcImpl$TreeMergeLock.runMerger(CompilerSvcImpl.java:161)
         at workshop.sourceeditor.compiler.CompilerProject$4.run(CompilerProject.java:1498)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    Thanks
    Kunal Mittal

    Raj -
    Yes I am using SP2. I have had Workshop crash SEVERAL times when working with
    page flows. Some sort of null pointer exception. The only good thing is that workshop
    crashes gracefully, so I didn't lose any work that I was doing.
    Thanks.
    Kunal
    "Raj Alagumalai" <[email protected]> wrote:
    Kunal,
    Can you try using SP2 ?
    Thanks,
    Raj Alagumalai
    Backline Workshop Support
    "Kunal Mittal" <[email protected]> wrote in message
    news:[email protected]...
    Workshop Gurus -
    Any clues on this bug. I get this error while editing pageflow. Itjust
    started
    happening this morning.
    I must say, WLW crashes gracefully. It allows me to report this messagedirectly
    to BEA, and then allows me to save my files. However, I do need aresolution to
    this problem, hopefully soon.
    java.lang.NullPointerException
    atworkshop.pageflow.model.ExternalPageFlow.refChanged(ExternalPageFlow.java:12
    0)
    atworkshop.pageflow.model.DocumentEventAdapter.processModelObjects(DocumentEve
    ntAdapter.java:492)
    atworkshop.pageflow.model.DocumentEventAdapter.process(DocumentEventAdapter.ja
    va:177)
    atworkshop.pageflow.model.DocumentEventAdapter.elementChange(DocumentEventAdap
    ter.java:123)
    atcom.bea.ide.element.ElementChangeSupport.fireListeners(ElementChangeSupport.
    java:253)
    atcom.bea.ide.element.ElementChangeSupport.fireElementChange(ElementChangeSupp
    ort.java:243)
    atcom.bea.ide.element.ElementChangeSupport.fireElementChange(ElementChangeSupp
    ort.java:219)
    atcom.bea.ide.document.DefaultDocument.fireElementChildRemoved(DefaultDocument
    .java:482)
    atcom.bea.ide.sourceeditor.DefaultSourceDocument.mergeComplete(DefaultSourceDo
    cument.java:523)
    atcom.bea.ide.sourceeditor.DefaultSourceDocument.mergeMetadata(DefaultSourceDo
    cument.java:610)
    atworkshop.sourceeditor.compiler.CompilerProject$MergeRunner.run(CompilerProje
    ct.java:1448)
    atworkshop.sourceeditor.compiler.CompilerSvcImpl$TreeMergeLock.runMerger(Compi
    lerSvcImpl.java:161)
    atworkshop.sourceeditor.compiler.CompilerProject$4.run(CompilerProject.java:14
    98)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
    atjava.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
    va:197)
    atjava.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    Thanks
    Kunal Mittal

  • How do you drag pages from one PDF to replace pages in another?

    In Acrobat Pro CS2 for Macintosh you could drag one or more pages from one PDF, and choose whether to insert them into another PDF, or replace pages in the other PDF.
    To insert them you dropped the dragged pages between two pages in the Pages panel.
    To replace pages in the other PDF you dropped the dragged pages onto a page in the Pages panel.
    I recently upgraded to Acrobat CS5, and this no longer seems to work. All you can do is insert.
    Of course I can then delete the pages I wanted to replace, but it's now much less convenient, and there's more opportunity for error.
    Am I missing something, or has this feature really been removed between CS2 and CS5?

    You still can but you have to press command + option when you cursor is hovering over the page you want to replace. A blue border will appear around the page.
    So select the new page you are bringing in, drag it over to your main document, keeping the mouse pressed down. Hover over the page you want to replace and press command + option. A blue box will appear around the page. Let go of the mouse and you will get your confirmation message. Press OK, and you are good to go.

  • How to submit a form with checkboxes in a page flow?

    I'm having some trouble with a form that contains several checkboxes, and
    how to submit this form within a page flow...
    I have a JSP page containing a form with N checkboxes. The value and
    checked/unchecked status of each checkbox is generated from parsing an XML
    document. Here is the (simplified) code:
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <netui:form action="doUpdate">
    <x:forEach select="...">
    <input type="checkbox" name="id"
    <x:if ...>checked</x:if> value="<x:out ... />">
    </x:forEach>
    <netui:anchor formSubmit="true" action="doUpdate">Submit</netui:anchor>
    <netui:anchor action="doCancel">Cancel</netui:anchor>
    </netui:form>
    When this form is submitted, the checkbox values are lost -- the following
    code (in the action) produces an empty array:
    String[] prefs = this.getRequest().getParameterValues("id");
    I looked at the <netui:checkbox> tag, but it does not appear to give me a
    way to set the state and value (unless I've missed something).
    Can I submit a form without using a form bean? If I do use a form bean, can
    I set the state and value from my JSP?
    Any suggestions on how to do this (or insights into what I'm doing wrong)
    are welcome...
    -- Craig

    I am new to this, but I think this may solve your problem:
    I am not sure if this is what you are looking for, but you can create a LinkedHashMap
    with the req key/value pairs in the page-calling action in the pageflow and then
    pass that via a getRequest().setAttribute("myCheckboxes",myCheckboxHashMap);
    You can then access it in code using the optionsDataSource portion of the netui:checkBoxGroup
    - ie
    <netui:checkBoxGroup dataSource="{actionForm.thisCheckbox}" optionsDataSource="{request.myCheckboxes}">
    Hope this helps!
    m
    "Craig Coffin" <craig+1268fbec@nfld-dot-com> wrote:
    I'm having some trouble with a form that contains several checkboxes,
    and
    how to submit this form within a page flow...
    I have a JSP page containing a form with N checkboxes. The value and
    checked/unchecked status of each checkbox is generated from parsing an
    XML
    document. Here is the (simplified) code:
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <netui:form action="doUpdate">
    <x:forEach select="...">
    <input type="checkbox" name="id"
    <x:if ...>checked</x:if> value="<x:out ... />">
    </x:forEach>
    <netui:anchor formSubmit="true" action="doUpdate">Submit</netui:anchor>
    <netui:anchor action="doCancel">Cancel</netui:anchor>
    </netui:form>
    When this form is submitted, the checkbox values are lost -- the following
    code (in the action) produces an empty array:
    String[] prefs = this.getRequest().getParameterValues("id");
    I looked at the <netui:checkbox> tag, but it does not appear to give
    me a
    way to set the state and value (unless I've missed something).
    Can I submit a form without using a form bean? If I do use a form bean,
    can
    I set the state and value from my JSP?
    Any suggestions on how to do this (or insights into what I'm doing wrong)
    are welcome...
    -- Craig

  • Drag and drop STILL sketchy in Struts Page Flow

    Struts Page Flow has been a major problem area in JDev since it was introduced, and I am still having some useability issues with it.
    I CANNOT drag an application module method out, onto a data action; if the data action isn't one of the newest actions on the page. If the action has more than one target, (multiple "forwards") or just isn't one of the "newest" actions on the page, the GUI shows me dragging a the method from an app mod out onto the action, but no work is done once I drop it. I must delete the data action, and re-create it. This, in the mean time, will overwrite any data action class I had defined originally.
    This needs to be fixed very soon, as it has been in every build of 10g that I have dealt with.

    Ok. To reproduce the bad drag and drop behavior:
    Create a Misc Data page, name it "Home"
    Drag a data page out, name it "A", and put stuff on it. (Doesn't need to be complex).
    Drag an action out, name it "B".
    Drag another action out, name it "C"
    Connect a forward from "A" to "B", connect a forward from "B" to "C". Connect a forward from "C" to "Home".
    Connect a "fail" forward back, from "B" to "A".
    Try to drag a method off of an applicaiton module to Action "B". It should not work.

  • Problem Replacing pages in Adobe Acrobat 8 Pro

    I have a 130 page PDF document with hundreds of links, all of which work and display in their proper position on all pages in original document. I have generated new pages to replace most existing pages & I'm having a problem with the links. Both the original 130 page document & the replacement pages are in landscape 11 X 17" format.  When executing a Document|Replace pages command, the page is replaced but the links in the original document are rotated 90 degrees clockwise as if the command thinks I'm dealing with a portrait document. See below:
    The above image shows the problem. The new page has replaced the original page but the original page links are rotate 90 degrees clockwise as I attempted to show with the crude red arrow. The box I'm pointing to should have remained at the lower left corner of the displayed page. I could, of course, removed the links and started all over but I'm hoping there is a simpler solution. I don't look forward to replacing over 1300 links.
    Thanks in advance for any suggestions.
    Pete K.

    I'm having the exact same problem, and I am not about to
    redo all of the links. Did you ever receive an answer on this? I'm so beyond frustrated right now.

  • Can't Replace Pages (via drag and drop in Pages panel) in Acrobat 9 Pro

    I'm running OS X 10.5.8, Acrobat Pro 9.1.3, PPC G5 PowerMac.
    I'll have two PDFs open and I'll want to replace certain pages from document A with certain pages from document B.  Rather than using the Replace Pages command from the Document menu, I prefer to visually see what I'm changing.  For this reason I've always preferred the drag and drop method, where one selects a page thumbnail from one document and drops it onto a page thumbnail in another document. This only seems to be a problem in Acrobat 9.  This works fine in Acrobat 7.1.1 and 8.1.6.  Drag and drop will allow one to insert pages but the replacement of pages is not working.  As described in Acrobat Help, under "Replace pages using a page thumbnail," I try to drop the page thumbnail onto the page number as prescribed but the page to be replaced never highlights like it should.  It will only give the insertion highlight between each page, indicating that it is about to insert a page.
    Other macs exhibit the same behavior -- it always works in Acrobat 7 and 8 but not 9.
    Thank you for your assistance.

    I'm using the Windows version of Acrobat Pro 9 and found this thread with the same problem. (Key command to replace on Windows is: Ctrl + Alt).
    Anyway, to answer the how to disable the warning, go to the Acrobat Preferences. In the General category under "Warnings", check the setting "Do not show edit warnings". There should be a similar setting on the Mac version.
    (Now I wish replacing pages didn't require a key command like in previous versions.)

  • Drag/replace pages from one document to another?

    Hello,
    I've recently upgraded from Acrobat 7 to 9, and a feature I've used for years (since Acrobat 5) doesn't seem to be there anymore...  I have a product manual I'm editing, and have a couple of replacement pages with new/updated content.  I have them side by side on my screen, and each one as the "Pages" sidebar open, and I'm trying to drag one of the replacement pages from one document, over the corresponding page in the other document.
    In earlier versions of Acrobat, I was able to drag the replacement page directly over another page in the other document, and it would simply replace it.  All I seem to be able to do in Acrobat 9 is insert it before or after the the "target" page, and then delete the page I want to replace.
    Am I missing something here?  I hope so, as the way that feature used to work was a lot more convenient!  Any help is much appreciated.

    Strange how they kill a good feature.
    to replace the contents of a page in a Pdf with a replacement.
    open PDF you want to alter.
    next go to Edit menu > Replace.
    when window is open select the new page (PDF) choose replace.
    Especially with forms, the form info will stay put while the background info will change.
    (Please note information is given by an Experienced User of Acrobat. I am not an employee of Adobe.)

  • Replacing pages text but preserving «form» pages... A real problem of (wasting) energy and time?

    Section A: a bunch of pages with text that are having a lot of changes.
    Section B: a bunch of pages with forms already approved.
    (Of section B have a already a PDF file with fields, buttons, links, etc, absolutely perfect)
    Problem: change in section A a lot of pages.
    Two ways: one, is replacig in the new PDF —now with many changes in section A — just the PDF section B pages already right.
    In this procedure pages are indeed changed but field are lost...; the second way (I am using against any logic as time and energy are related) is copy-paste all the fields and buttons from the «good» PDF of section B to the new PDF with changes already made in section A.
    What's wrong?
    Why the file gets sick and does not allow to do this?
    Going back to export as IDML is not enough.
    Inserting the perfect pages of section B in the new PDF (either removing before or later the inadequate pages) damages the TOC in the new PDF and the hyperlinks related no page numbering get dead.
    And inserting/replacing new section A in the old section B claims again for a loss of links as the PDF file has been made up of two parts. (?)

    No, is not at all a problem related to maintaining forms.
    All the contrary.
    Please be kind and read again the post, is a problem with links, with the integrity of the file, with anomalies in behavior, just with many things far beyond the user that can not be reduced to that known resource:
    http://indesignsecrets.com/designing-forms-with-indesign-acrobats-replace-pages-feature-is -at-your-service.php

Maybe you are looking for

  • Verizon wireless billing on Samsung Tab 2 for Google Play Coins

    I have a samsung tab 2 tablet. I have google play slot games on it that I play. When I try to purchase coins it give me the option of billing my verizon account, but when I try to enable it it says "sending account verification sms to mobile provider

  • How to print multiple documents in SAP

    Hello Users, I am using SAP to Print the customs documents for sea shipments which is required to Print the Commercial invoice , Packing List & Bill of lading Instruction. so there is any way to Print above three documents combined for list of Order

  • [SOLVED] Once screen goes blank there's no turning back

    Hello. If I let the screensaver to blank my screen, I can't wake it up. The screen doesn't turn off, it just stays blank. I tried pressing Ctrl + Alt + Backspace, changing to a console with Ctrl + Alt + F1, F2, etc but nothing. I have to power off th

  • BPF email and hyperlink

    Dear Experts, we set BPF to send an email to users but the link to BPF (where we use variable %URL%) is not displayed as clickable link in MS Outlook 2003. There is no problem in Outlook 2007 because it recognizes the links in plain text of any kind.

  • Error Message during WLS6.0 Startup

    Hi, I am getting the following error: <Mar 22, 2001 11:32:45 AM GMT+08:00> <Error> <JDBC Init> <ERROR during TXDataSource creation: javax.naming.NameAlreadyBoundException: Failed to bind remote object (weblogic.jdbc.common.internal.RmiDataSource@4c4d