Hardcoded pathnames in pageflow controller class in weblogic portal

Hi,
I have a question regarding the annotations which are used while working with pageflows in weblogic workshop. When we use the forward annoation
to forward from a particular action method or even say the begin method, i feel the path to the resource, typically,JSP page is hardcoded. I would like to know
if there is a way to avoid hardcoding the names of the resources inside the pageflow controller class. Basically, i would like the forward resource to be configurable. If i want to change to a different forward jsp i don't want to change the controller source which will result in building the class again. So, is there way we can avoid hardcoding the name of the forward inside the controller class.

Hi,
Thanks for your reply. I am sure using struts would be right choice. But, I am looking to see if there is a better way to achieve that when using pageflows with weblogic portal. Since, i am more used to struts, i wanted to know if i can get a similar feature while working with beehive pageflows in weblogic portal and not using struts. Also, i see that while using the pageflows struts-config-xml file is being generated in the classes folder. But, i am not able to change that xml file directly as the controller code overrides my changes in the xml file. So, i believe that there is no direct way to accomplish my requirement using pageflows. So, i need to create a struts pageflow or import a create a pageflow based on a existing struts module or applicaition only.

Similar Messages

  • Help me to add some libraries for WebLogic Portal project

    My Web portal project (10.3.2) that was created with Oracle Enterprise pack for Eclipse with some custom configurations:
    - Beehive controls
    - Beehive netUI
    - Struts 1.2
    - WebLogic Control Extension 10.2
    - full feature for "WebLogic portal"
    - "Portal application controld 10.3.2" and "Portal framework beehive adapter" support in WebLogic Portal (optional)
    I need these packages to process some user and group informations:
    - com.bea.p13n.controls.ejb.usermgmt
    - com.bea.p13n.controls.userInfoQuery
    - com.bea.portal.tools.security.group
    - com.bea.portal.tools.security.user
    My problem is impossible to import these package (except: com.bea.p13n.controls.ejb.usermgmt). I've read carefully API Javadoc for these package informations but it cannot help anymore.
    Anybody can tell me what libraries should be added to project to solve my problem ?
    Thank in advance.
    Ps:
    This is my screenshot for project configuration:
    http://i284.photobucket.com/albums/ll10/docphongm41/screenshot/screenshot.png

    Thank Kevin.
    I've fix my problem by adding some jar files, such as war-classes.jar which can be found in workspace/.metadata/.plugin/oracle.eclipse.tools.weblogic/libraries/wlp-tools-ugm-web-lib_10.3.2_10.3.2/1/WEB-INF/lib
    So, I can use UserID class in my source code without any error notification on Eclipse. Everything sound to be okay, but it isnt. When I initialize an UserID object in my pageflow controller class like this:
    UserID uid = new UserID("::security:user");
            String uname = uid.getUserName();I'll get an exception:
    com.bea.netuix.nf.UIControlException: com.bea.portlet.adapter.scopedcontent.ActionLookupFailedException: java.lang.NoClassDefFoundError: com/bea/portal/tools/security/user/UserIDI don't know why JVM cannot found my imported class though I've already added library and imported this class to the source.

  • Book on Weblogic Portal and beehive page flow portal integration

    I request oracle press to write a book on Weblogic Portal as well as Creating pageflow based portlets with weblogic portal and workshop.
    The old edocs.bea.com documentation sucks and does not meet the oracle press standard.
    Thanks
    Biren

    The Beta 9.2 Team,
    9.2 features sounds good and interesting. We are using BEA's Content management system(8.1) extensively.
    Our requirement is to create a portlet for Content Owner/Users to create HTML documents with images and upload it into BEA Repository. Upon uploading, Content Admin needs to be notified through email and they will either approve or reject the document. The content status again needs to be notified to the content owner/user via email.
    1. As known to everyone 8.1 doesn't have WYSIWYG editor and is included in 9.2. Can i reuse the 9.2 WYSIWYG functionality into 8.1 as a portlet??
    2. The following thread(http://forums.bea.com/bea/message.jspa?messageID=400001479&tstart=0) says
    - workflow ==> We have limited workflow support. We plan to enhance this in our next major release.
    Does this limited workflow support include email notification?
    Any inputs would be greatly appreciated!!
    Thanks,
    -Nach.

  • Access HTTP header(s) in pageflow controller

    Hi,
    I am trying to access an HTTP header in my pageflow controller (jpf). I know the header is there, because I can display it's contents in JSPs.
    In my controller action, I have:
    String foo = getRequest().getHeader("myheadername");
    But the above is always returning 'null'.
    Can anyone tell me how I can access these headers from my pageflow controller?
    Thanks,
    Jim

    Hi,
    For the record, and in case anyone runs across this problem in the future, I was finally able to figure out the reason for this problem: I was testing via an Apache server that was configured as a reverse-proxy.
    I was able to eliminate the problem by adding the Apache hostname and port in the WebLogic "Frontend host" and "port", and I can now access the getRequest().getHeader("myheader") properly in my pageflow controller code.
    Jim

  • Error while extending controller: class name is wrong or not included

    Hi All,
    I am getting this error while I port my extended controller class to the custom top and assign this controller to the page. I have made sure its the class file that is copied. The directory is correct, the permissions were given using chmod 775. There exists a soft link betwen the custom top and the oracle top as well. What else am I missing here?
    Error: oracle.apps.fnd.framework.OAException: Could not create Java class: (oracle.apps.ap.oie.entry.webui.XXEntryFlowPageCO) associated with region: (GeneralInformationPG). This is probably because the class name is wrong or not included in project.

    :( Started out with that Gyan. If i do give the path with xx. appended to it, it lets me save and when i log back in and there are no changes to the page. I go to the personalise option to find the modification has been overwritten. I was told that this is so because Oracle doesnt recognise the xx.path and since there exists a soft link already the standard path with the new controller name should work.
    i have really tried both of these options and am not sure what could be wrong. thanks for all your attempts to help. anything else i can try?

  • How to get the parent window in sub-child controller class in javafx?

    how to get the parent window in sub-child controller class in javafx?

    You can get the window in which a node is contained with
    Window window = node.getScene().getWindow();Depending when this is invoked, you might want to check the Scene is not null before calling getWindow().
    If the window is a stage that is owned by another window, you can get the "parent" or "owner" window with
    Window owner = null ;
    if (window instanceof Stage) {
      Stage stage = (Stage) window ;
      owner = stage.getOwner();
    }

  • How to retrieve content from DAO Class and process in Controller Class?

    Hello
    This is for the experts.
    What is the best approach to passing a large set of data from Class A to Class B? I have a DAO Class that connects to a database to retrieve data. I tried saving the data in a collection (map) and passing the collection to Class B. The problem here is that the data is may be too large for a collection without increasing the heap size, it could cause out of memory exception. Instead I'd like to pass the data (row by row) on to the "Controller" Class where which will process each row. I am not sure how to do this without using a collection or some sort. Some tips will be much appreciated.
    Note: MVC Rules dictates that Controller cannot call the DAO Class directly, it has to go through the Model which talks directly with the DAO Class.
    Thanks
    Edited by: 875864 on 30-Oct-2011 15:05

    875864 wrote:
    Hello
    This is for the experts.
    What is the best approach to passing a large set of data from Class A to Class B? I have a DAO Class that connects to a database to retrieve data. I tried saving the data in a collection (map) and passing the collection to Class B. The problem here is that the data is may be too large for a collection without increasing the heap size, it could cause out of memory exception. Instead I'd like to pass the data (row by row) on to the "Controller" Class where which will process each row. I am not sure how to do this without using a collection or some sort. Some tips will be much appreciated.
    Note: MVC Rules dictates that Controller cannot call the DAO Class directly, it has to go through the Model which talks directly with the DAO Class.
    Thanks
    Edited by: 875864 on 30-Oct-2011 15:05if its a large set of data, and is fetched from DB and you are sure that it is too large and chances of getting out of memory exception then why you are passing it over request.
    If the data is fetched based on some filter criteria, then just pass the filter criteria from class A to class B, and fetch the data from DB based on the filter criteria in class B.

  • How to get the function name in controller class

    Hi experts ,
    I am new to the OAF framework.
    i have created the two functions and bot he the function have the same controller class .i want to capture the function name or function id in the controller class.
    can you please let me know how to get the function id or function name in the controller class.

    Hi apurba,
    Thanks for the quick reply.
    i am trying to get the function name from the FunctionSecurity class,
    However in FunctionSecurity class there is no such method defined as getFunctionName();
    my requirement is ,i have two functions functionA and functionB defined.
    both the function has the same controller class.in controller class ,i need to get the function name ,based on the function name
    i will redirect the page to respective page.
    looking forward for you response.
    appreciate your help
    Thanks,
    KT

  • How to Find Controller class of  BSP application for particular Iview

    Hi  All,
    Any one please  help me  to find a Controlller class of BSP for an  I view.
    http://Host Name :Port No/sap/bc/gui/sap/its/wosm-cr-->this is for sap retail,
    My requirement  is to change some source code in that particular iview.
    i goine with SE80 Tcode
    with package called WOSM>ITS service>Topic 90-->which contain Mime Objects,Html Templates.
    but i dint find any
    Point will be given!!!

    Hi All,
    My question is where should i find Controller class ?
    i gone with Tcode  SE80>packages>WOST>ITS service>WOSM>Topic90>which contain Mime Objects,HTML Templates.
    i dint find any controller class.
    regards
    Naresh

  • Deploying the extended controller class file on server

    Hi OAF Experts,
    I am working on the already extended controller file.
    I have made the changes and was able to comiple the controller class file.
    I have one uestion for you. Now to put the class file on the server i am following the below steps:
    1) Putting the new class file on the server where it is already present. This is done using Unix commands
    2) Bouncing the server.
    I hope this will reflect the new changes. Is there any thing else i need to do?
    Thanks,
    Samarth

    Hi,
    Yes. These are only required steps to reflect the changes.
    --Sushant                                                                                                                                                                                   

  • Calling the same controller in Weblogic portal 10.3.2

    In weblogic 8.1 calling the same controller instance (different action) is very simple.... just pass on the jpfScopeId in the request parameter as per the code below
    function openActionInNewWindow(index){
    <%
    PortletPresentationContext ppc = PortletPresentationContext.getPortletPresentationContext(request);
    String jpfScopeId = ppc.getInstanceLabel();
    %>
    url = "/someApp/portlets/somePath/someAction.do?index="+index;
    url += '&jpfScopeID='+'<%=jpfScopeId%>';
    alert(url);
    extWindow = window.open(url, 'second', 'title=Breaking News,width=650, height=300,toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,resizable=yes');
    extWindow.focus();
    How do we do the same in Weblogic portal 10.3.2? I tried the above code but its invoking a new instance of the controller. I want to call the same controller instance as some instance variables in the controller are being used across different actions.

    No, there isn't problem show in log. I don't know why... Please suggest me or help me.
    Thanks in advance!
    Best Regards,
    Coy.

  • How to Use JavaScript in Controller Class...

    Hi All,
    Can any one tell me how to use JavaScript in Controller Class.
    Requirement is:
    I have
    Radio Group(RG1),
    Two Radio Buttons(RB1,RB2),
    Two messageTextInput(MTI1,MTI2),
    if i click RB1 i should Prompt to the end user to "Enter value for MTI1" or
    If i click RB2 i should prompt "Enter value for MTI2" while submitting page.
    Please let me know the steps to use JavaScript and the above client validation...
    Regards
    Alem...

    Using javascript is against the standard. I can tell you a workaround instead of you setting the javascript, check if that would be acceptable.
    You can use PPR and set the required property on the messageTextInput on clicking of the radio button. By doing this you will let UIX generate the javascript for you to handle the client side validation. But the validation will happen only on click of the submit button. The visual indicator is good enough to tell that the value has to be entered to the item.

  • Custom page controller class

    Hello,
    I'm trying to implement what is explained in the article *"Two Ideas to Handle JBO-35007 'Row Currency Changed' Exception"* (http://blogs.oracle.com/smuenchadf/examples/). This example illustrates how to use a custom page controller class to override the handleError() method to conditionally handle the JBO-35007 exception ('Row currency has changed since the user interface was rendered.') in a way that might be more useful to the end-user.
    So I've defined a custom page controller class in a JSP of my application, but I don't know why the application flow is not passing through the handleError method when a JBO-35007 exception occurs.
    I've defined well in the pagedef the attribute "ControllerClass", and I use the "back button" to produce the JBO-35007 exception. But I don't know why the method handleError is not executed, although the the JBO-35007 exception is displayed.
    Thank you very much.

    Hi,
    you are on JDeveloper 11g ? The article you follow was written for 10.1.3. In 11g the error handling is configured in DataBindings.cpx page. Select the DataBindings.cpx page in the Application Navigator and select its root node in the Structure Window. Then open the Property Inspector to configure your version of the Error Handler class
    Frank

  • How do i set the contentStyle of textbox in my controller class on pageload

    Hi All,
    I have a requirement where i need to set the contentStyle of a textbox as well as the border of textbox as per condition on page load.
    I am trying this code but unable to set it properly.
    *public void onLoad() {*
    FacesContext context = FacesContext.getCurrentInstance();
    ExtendedRenderKitService erks =
    Service.getRenderKitService(context, ExtendedRenderKitService.class);
    erks.addScript(context,"AdfPage.PAGE.findComponent('it15').setProperty('ContentStyle',background-color:#00C0C0);");
    Am i missing something ??
    Is there any other method to achieve my requirement ?
    Please suggest!!
    Thanks!!

    Hi Accadsoft,
    I have tried with this but nothing happens :-
    I have used this code in my controller class :-
    FacesContext context = FacesContext.getCurrentInstance();
    ExtendedRenderKitService erks =
    Service.getRenderKitService(context, ExtendedRenderKitService.class);
    erks.addScript(context,"AdfPage.PAGE.findComponentByAbsoluteId('it3').setProperty('ContentStyle',background-color:#00C0C0);");
    Please find the below Jspx code snippet as well...:-
    <af:form id="f1"
    binding="#{backingBeanScope.backing_TimeCostedInvoices.f1}">
    <af:panelFormLayout binding="#{backingBeanScope.backing_TimeCostedInvoices.pfl1}"
    id="pfl1" maxColumns="3" rows="1">
    <af:inputText value="#{bindings.Totalamount.inputValue}"
    label="#{bindings.Totalamount.hints.label}"
    required="#{bindings.Totalamount.hints.mandatory}"
    columns="#{bindings.Totalamount.hints.displayWidth}"
    maximumLength="#{bindings.Totalamount.hints.precision}"
    shortDesc="#{bindings.Totalamount.hints.tooltip}"
    binding="#{backingBeanScope.backing_TimeCostedInvoices.it3}"
    id="it3">
    <f:validator binding="#{bindings.Totalamount.validator}"/>
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.Totalamount.format}"/>
    </af:inputText>
    <af:selectOneChoice value="#{bindings.Doctypedesc.inputValue}"
    label="#{bindings.Doctypedesc.label}"
    required="#{bindings.Doctypedesc.hints.mandatory}"
    shortDesc="#{bindings.Doctypedesc.hints.tooltip}"
    binding="#{backingBeanScope.backing_TimeCostedInvoices.soc1}"
    id="soc1"
    valueChangeListener="#{backingBeanScope.backing_TimeCostedInvoices.getValue}"
    autoSubmit="true">
    <f:selectItems value="#{bindings.Doctypedesc.items}"
    binding="#{backingBeanScope.backing_TimeCostedInvoices.si1}"
    id="si1"/>
    </af:selectOneChoice>
    </af:panelFormLayout>
    </af:form>
    I am just thinking whether the syntax is appropriate on this line :-
    erks.addScript(context,"AdfPage.PAGE.findComponentByAbsoluteId('it3').setProperty('ContentStyle',background-color:#00C0C0);");
    Please suggest!!!

  • How to access servlet objects from OA page controller class

    Hi everybody!
    I need to put some value into servlet attribute in OA page controller class to read it from ordinary servlet later.
    How can i do it? Is it possible to get HttpServletRequest and HttpServletResponse objects from page controller?
    Thank you.

    I have a servlet which receives uploaded files with special attributes (something like tags for file) using POST request.
    This attributes created when user open page in standard OAF page via page controller.
    On client side I have an applet which uploads user selected file to my servlet and passes this file attributes.
    Now this attributes passes as plain text. I want to encrypt this attributes to hide attribute details from user. To do this I need to share some information between OAF page and my servlet.
    I know that OAF supports URL encryption, but to decrypt it I should use standard pageContext object.
    But in ordinary servlet I can't use it.

Maybe you are looking for