Template and application module code sharing

Experts,
I have a template which has some BTF as dynamic regions. Each BTF is based on one App Module. My use case is
Login page - AppModule
Main page
pageFragment1 - AppModule1
pageFragment2 - AppModule2
Successful login takes me to Main Page with Pagefragment1 as the default region. In page Fragment 1 , i am displaying total by exposing a method from AppModulue1 (cant store this in any scope variable as i need to have a ppr from the pageFragment to the main template page).
I want this total to be appearing on the main page also.
How can i do this ?
thnks
Jdev 11.1.2.1

Hi,
this is only possible if the bounded task flows share the DataControl scope in which case adding the AM to the main page also shows the value you see in the bounded task flow. Alternatively, you can pass a JavaBean object defined as a managed bean in the main page to the task flow (as an input parameter), then have the bounded task flow updating the bean reference and use EL in the main page to show the value (addressing the managed bean property)
Frank

Similar Messages

  • Programmatically created ViewDefImpl and application module releasing

    Hello!
    What will happen with a programmatically created ViewDefImpl instance after module releasing (for Stateful release mode, I mean if module will do passivation)? How I see it gone away.
    As workaround I'm using a distinct module with Reserved relese mode, but it's no good.
    Don't inspect closely, but I think the error during actiovation caused by this reason:
    java.lang.NullPointerException
    at oracle.jbo.server.Serializer.activateDynamicVO(Serializer.java:425)
    at oracle.jbo.server.ApplicationModuleImpl.activateVOs(ApplicationModuleImpl.java:7145)
    at oracle.jbo.server.ApplicationModuleImpl.doActivateState(ApplicationModuleImpl.java:6962)
    at oracle.jbo.server.ApplicationModuleImpl.doActivateAMState(ApplicationModuleImpl.java:6927)
    at oracle.jbo.server.Serializer.activate(Serializer.java:272)
    at oracle.jbo.server.DBSerializer.activateRootAM(DBSerializer.java:330)
    at oracle.jbo.server.ApplicationModuleImpl.activateState(ApplicationModuleImpl.java:5519)
    at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:171)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7735)
    Code fragment from module for wich activation failed:
    >>>>>>>>>>>>>>>>>>>>>>>>>>>
    viewDef = new ViewDefImpl(QUERY_RESULTS_VO_DEF_NAME);
    for (...) {
    ViewDefHelper.addUpdateableTransientViewAttr(viewDef,
    attr.getFirstChild().getNodeValue(),
    String.class);
    viewDef.resolveDefObject();
    viewDef.registerDefObject();
    resultsVO = (SimpleXMLViewObjectImpl)createViewObject(QUERY_RESULTS_VO_NAME, viewDef);
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    Thanks in advance.
    Ilya.

    application module1 is for table1, table4 and table5 and Application module 2 is for different tables say table2,table3 now I got 1 requirement where I need to do insertion in table1 after insertion in table2,table3 from applicaiton module2

  • [svn:fx-trunk] 5464: ASDoc updates for FxApplication and Application ( no code changes)

    Revision: 5464
    Author: [email protected]
    Date: 2009-03-20 11:52:50 -0700 (Fri, 20 Mar 2009)
    Log Message:
    ASDoc updates for FxApplication and Application (no code changes)
    * notes the pageTitle property is for use with the SDK HTML templates
    * update the default values for backgroundGradientColors
    QE Notes: None
    Doc Notes: Please review
    Bugs: SDK-16535, SDK-16693
    Reviewer:
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-16535
    http://bugs.adobe.com/jira/browse/SDK-16693
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxApplication.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as

  • Calling stored procedures from entity object and application module

    Hello
    I've put in place an EntiyImpl base class containg helper methods to call stored procedures.
    I now need to call stored procedures from the application module.
    Apart from creating an application module base class and duplicating the helper method code is there a way
    to share the helper methods for calling stored procedures between the entity impl and application module impl ?
    Regards
    Paul

    Does the helper code depend on features of a particular entity object instance, beyond its database transaction?
    If so, I'm not sure I see how it could be used from an application module class.
    If not, here's what you do:
    Step 1:
    Parametrize the database transaction--you might even want to. So instead of
    protected myHelperMethod(Object someParam) {
    DBTransaction trans = getDBTransaction();
    change this to
    protected myHelperMethod(DBTransaction trans, Object someParam) {
    Step 2: make the method public and static--once you parameterize the DBTransaction, you should be able to do this.
    public static myHelperMethod(DBTransaction trans, Object someParam) {
    Step 3: Remove the method from your EntityImpl base class into a utility class:
    public abstract class PlSqlUtils {
    private PlSqlUtils() {}
    public static myHelperMethod(DBTransaction trans, Object someParam) {
    When you want to call the method from an application module, entity object, or even view object class, call
    PlSqlUtils.myHelperMethod(getDBTransaction(), paramValue);
    Unlike Transaction.executeCommand(), this lets you provide functionality like setting procedure parameter values, retrieving OUT parameter values, etc.
    Hope this helps,
    Avrom

  • Application module Code

    hi all,
    at present iam working in jdev 11.1.1.3
    i write one method in application module,add to the client interface also and when i click one button in my page(.jspx)that method is exectuted automatically ,how to navigation to the button and my code in AM.
    Edited by: user13092208 on Jan 3, 2011 1:33 AM

    I don't get your question.
    Please describe in detail what you want to do and where your problem is.
    Timo

  • DataBindings and Application Module Bean

    Hallo everybody,
    I am working on JDev 10.1.3.4 and Oracle Application Server 10.1.3.4.
    I developed an 'application module' and I maked it as remotable using 'EJB Session Bean' option;
    then I deployed it on the AS.
    I know how to call remote application module by code in a JClient application ([thanks to a metalink note|https://metalink2.oracle.com/metalink/plsql/f?p=130:14:6076423513290714654::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,309753.1,1,1,1,helvetica|thanks to a metailk note]):
    bq. JUApplication app = new JUApplication(TestClient.getAppModule()); \\ app.setClientApp(DCDataControl.JCLIENT); \\ +     app.getApplicationModule(+)
    I would like to use remote application module function by DataBindings and %PageDef.
    is it possible? how can I do this?
    best regards
    Edited by: user567554 on Dec 17, 2008 5:44 PM

    Hi Frank,
    thank you for reply.
    Could you make an example how to configure my datacontrol for a remote Application Module Connection?
    I'm able to connect to a remote AM deployed to Local Embedded OC4J, but I'm not able to connect to to a remote AM deployed in a remote AS
    I think need change DataControl Configuration Attribute with the appropiate AM Configuration. Probably my AM Configuration is wrong:
    &lt;AppModuleConfig name="AppModuleEmbeddedASTest2"&gt;
    &lt;DeployPlatform&gt;EjbIas&lt;/DeployPlatform&gt;
    &lt;java.naming.security.principal&gt;oc4jadmin&lt;/java.naming.security.principal&gt;
    &lt;java.naming.security.credentials&gt;*ASpwd*&lt;/java.naming.security.credentials&gt;
    &lt;jbo.internal.embedded&gt;true&lt;/jbo.internal.embedded&gt;
    &lt;JDBCDataSource&gt;jdbc/+myConnDS+&lt;/JDBCDataSource&gt;
    &lt;AppModuleJndiName&gt;AppModuleBean&lt;/AppModuleJndiName&gt;
    &lt;HostName&gt;*AS-IPAddr*&lt;/HostName&gt;
    &lt;ApplicationPath&gt;+ejbAM  (My Application Name)+ &lt;/ApplicationPath&gt;
    &lt;java.naming.security.authentication&gt;simple&lt;/java.naming.security.authentication&gt;
    &lt;ApplicationName&gt;model.AppModule&lt;/ApplicationName&gt;
    &lt;ConnectionPort&gt;*+23791 (found in $ORACLE_HOME/j2ee/myTests//config/rmi.xml)+* &lt;/ConnectionPort&gt;
    &lt;jbo.server.internal_connection&gt;jdbc/myConnCoreDS&lt;/jbo.server.internal_connection&gt;
    &lt;/AppModuleConfig&gt;

  • TP4 Lov and application module procedure

    Hi!
    I have a little problem. I have a page with a LOV and a Task Flow.
    In the Task Flow i have a table, wich depending the value that users select in the LOV present some data. (Whith where clause and a bind variable).
    This works ok. But when I add to the task Flow a button that invoke a procedure implemented in the application module. The result, is that the LOV doesn´t work. i mean not appear the data to select.
    Any idea?
    Thanks
    Rowan

    Ok my english....
    First what a want to do:
    I´m doing a create,update,insert,remove page, using adf rc. But for doing those, I need to use PL/SQL procedures, not the create, remove.. procedures that jdev gives us in the data control. And as the table has a lot of records i ´ve put in the page a LOV to search the rows that the user want to modify.
    Now how i do that (in short):
    First i "programmed" the LOV. I´ve created a ViewObject for the lov and another view object for the table the second VO has a bind variable and a where clause.
    "Where tabla.cod = :LovParam"
    For passing the value from the LOV to the table i have defined a Task Flow View with input parametre, with a panel collection and inside the table VO. have defined an executeWithParams binding and invokeAction executable.
    I´ve drop the task flow to the .jspx.
    In the .jspx I´ve inserted a LOV component and create a variable executable a inside of this a variable. And then i´ve bind the LOV with the variable.
    Probably here is missing a step, but how i say up this is in short what i have done.
    Finally all this works fine.
    The second step is to add the command button that calls the PL/SQL, for doing this:
    I´ve programmed in the application_module_implementation a function which calls the PL/SQL, I´ve followed the steps that are explained in the adf guide, in chapter 25.5.2 Invoking Stored Procedure with Only IN Arguments.
    And then i´ve dropped the function from data control to statusbar facet of the Data Collection.
    The result is that when the button is on panel collection, the LOV does´t work. And if remove the button the LOV works. This haven´t any sense for me.
    I have made more test and, if instead of the panel collection I use a form layout the LOV works but the button gives me the next error "Not supported function".
    I know that this is another think. and now i´m trying to solve this one.
    I hope now you have material to work with. I think that it´s strange what happens with the collection panel. And about the function sure that i´m doing something wrong.
    Thanks, for you interest
    Rowan

  • Is it possible to export and import jsf page and application module?

    Hi,
    I want to export a application module and then import it to another application,so deos jsf pages.If I can do this ,then my team could do the diffent work at the same time.one group response for data model then commit as application module,one group for page create and edit and so on .Who has any good idea?
    Thanks advance
    lixinzhu
    2007/09/19

    hi,frank
    thank you.
    You know a page include a .jspx file,a page definition file and depend faces-config.xml,faces-config.oxd_faces and other I don't know information,so if i only put the first two file into cvs,but how can i get other information in the last two file?When I get the first two file and needed information in the other file,how can i merge these into new project and let jdeveloper "reconize it"?Applicaion is more complex,it not only depend its self java class,xml and many entity object and view object,how to handle the "export" and "import" process?Just like oracle form,only a fmb is enough,database object only need to "put into database","export" and "import" are very simple,so i need jdeveloper to supply these "import" and "export" function.I'm not familar with cvs,does it can know object dependency like application module?if it can,how to let jdev "reconize" imported in object?
    lixinzhu
    2007/09/19

  • Maven dependencies and application Module

    hi,
    I'm using jdev 11gR2. When i use project propertie-->maven-->dependencie-->"add from repository", and select a jar : errors from import in java files avec solved, but i can't see package from this jar in the Application Module (Data Model).
    How can i see it?
    thanks
    Clément

    no idea?

  • ScheduledExecutorService and Application Module

    I have an Long running job which is submitted from UI, so I used ScheduledExecutorService to execute the task by passing the reference of Application Module. Now the Thread makes some database commits new rows. I have RichPoll which will keep pooling for the progress.
    As Soon as the data is inserted I call transaction commit.
    Now What i noticed is the data committed in the Run method is not available in DB until the run method completes , Any idea what's going wrong
    public class MyClass implements Runnable {
    private MyAMImpl aM;
    public String doAction() {
    FacesContext fc = FacesContext.getCurrentInstance();
    Application app = fc.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = fc.getELContext();
    ValueExpression valueExp =
    elFactory.createValueExpression(elContext, "#{data.MyAMDataControl.dataProvider}",
    Object.class);
    aM = (MyAMImpl )valueExp.getValue(elContext);
    ScheduledExecutorService ses = Executors.newScheduledThreadPool(1);
    setService(ses);
    ses.schedule(this, 3, TimeUnit.SECONDS);
    public void run() {
    try {
    String bug = this.bug;
    am.executeTask();
    } catch (Exception e) {
    e.toString();
    }

    Hi,
    how should we know if the work is done in the part that you don't share? Have you debugged it to ensure the commit happens ?
    Frank

  • Cisco SAMI (Cisco Service and Application Module for IP) modules

    Hi,
    Could anyone confirm whether Cisco SAMI module on 7600 supports traditional ppp over vpdn wholesale broadband?
    Currently we have setup on Cisco 7200's and we want to upgrade the hardware to 7600 to scale better, MWAM module supports the VPDN configuration but its now end of sale and replacement product is SAMI whose literature is quite confusing.
    Thanks
    Hitesh

    Try this link for more information on cards
    http://www.cisco.com/en/US/products/hw/univgate/ps501/products_white_paper0900aecd801f92c1.shtml

  • Issue in Application Module and Enterprise Integration for SAP applications

    Hi,
    When I enabled the Application Module and Enterprise Integration for SAP applications Version 2.60 Patch 2 I am getting error in defect entity and Application Module. Does any one face this issue? Please let me know the solution.
    QC details:  QC 11.0 with patch 7
    I followed the steps given in ALM addin page to install the adapters
    Attached Screen shots of the Error

    Hi
    If you are wanting to know how to configure ESSO to be used to logon to SAP applications then there is a guide in the helpfile of the admin console. Simply do a search for SAP.
    In short ESSO-LM comes with a SAP helper object which needs to be selected on install. To enable the ESSO SAP helper to interact with SAP, the SAP server and the SAPGUI client need to be configured. The details for this are in the helpfile. If you have multiple SAP systems launched from the SAPGUI then this is the best method because it means ESSO can distinguish between the different SAP systems through matching screens
    If you have only one SAP system and you do not want to configure the SAP server then you could use send keys and not use the SAP helper object at all.
    Hope this helps

  • Application module configurations

    Hi
    When I right click on an application module and choose Configurations... there are two configurations for a given application model (for example AppModuleLocale and AppModuleShared) in the manage configurations dialog. I couldn't find anything about the usages and differences of these two configurations on the net. Would you please tell me about this?
    Cheers,
    Ferez

    These are the two configurations which are created by default by the framework. The 'local' configuration is for normal use as a web application with multiple users accessing the application. The 'shared' configuration is a special use case where the application module is shared by multiple other application modules, e.g. when the data accessible via the shared application module is quasi static in nature. This kind of application module is often used for look up data.
    If you check the 'Pooling and Scability' parameters of the two configurations, you'll notice the difference in the 'MaxPoolSize' parameter. For 'shared' application modules this parameter is set to 1, as there are no changes in the data expected and the same application module can be used for all queries.
    Timo

  • Best practice for application module  for scalability

    if i compare application module with forms 6i runtime session.(correct me if i wrong)
    In forms 6i, we create for single form for purchase entry. in which we select table like po , po_item, item_master, customer master
    also single form for sales entry. in which we select table like sales , sales_item, item_master, customer master, po , po_item
    So my question is. in jdeveloper , we planning to make separate jsp page and applicaiton module for purchase entry,
    separare jsp page and application module for sales.
    is it ok.
    or
    what is the best practice in this senario.?? ( or in scalability senario)
    if i made one single application module for whole application (let say 300 entity's(tables)) will performance of my app server degrade.

    You might want to read the chapter about AM Granularity in the ADF Developer Guide:
    http://download.oracle.com/docs/html/B25947_01/bcservices009.htm#sm0229

  • ADF panel executes all queries in the application module.

    Hi all,
    I have created an ADF Panel, which allows the user to run a few simple queries against an Oracle database done using ADF view objects and ADF view links and ADF application module.
    As I add more functionality meaning more available queries meaning more ADF views and ADF view links, running the Application Modules becomes slower.
    Let’s say the application module AM1 is made of 30 different view links. And application module AM2 is made of another 30 view links.
    Now let’s say that ADF Panel1 references 8 view links from AM1, but it appears that all 30 view links that make up Application Module AM1 are executed before returning the result sets of the 8 view links referenced in ADF Panel1. Let me also underline the fact that each view link in Application Module AM1 can be executed independently, so the question is how I can make Jdev not to run all 30 queries in view links in the Application Module AM1 when ADF Panel1 is executed, but just the 8 that are referenced in the ADF panel1.
    I hope I made my question understood.
    Your inputs are greatly appreciated.
    Thanks.
    Bobby A.

    Hi,
    if this is what you see then you should file a bug because certainly its not the way it is designed to work. Note that in JDeveloper 11g - you don't specify the release you are on - the iterators by default are set to refresh deferred. Only iterators that belong to a PageDef file are executed when the page loads (you can suppress this by setting a refresh condition). Other queries are not executed
    Frank

Maybe you are looking for

  • Browser Compatibility Issue with IE9 and IE 10

    Hi Everybody, I have a page which contains pageviewer Webpart, which redirects to the other page the problem is in IE 8 this works good but comes to IE9 and IE 10 the page is not displaying on the page but link is working good. Can any one please giv

  • Error with  org/apache/axis/AxisFault

    Hello Hi: I have server over Linux Red Hat Enterprise. and other server in local the if connect with the other server the servers are weblogic but need a create a webservice the that need the .jar axis.jar but not find the class AxisFault, and genera

  • Drag and drop issues

    hi ive got the following code. bevvy is a movieclip, theres a dynamic text box called feedText nd a box..imaginately called box. I'm trying to create a drag and drop game when the user drags a word into the box that will have its meaning beside it in

  • Wrong Exg. rate type picking in Foreign Purchase order - URGENT HELP

    Hi Friends, We have an issue with Exchange rate type. We want to post the exg. taye type SPOT for our doc. types WL, WA, WE in goods movement. We have configured the SPOT rate in OBA7 for the above doc. types. In OB08, we have given the exchange rate

  • IPhone4S photos to iPhoto on IMac7,1

    With previous iPhones, the transfer from the iPhone to the iMac went flawlessly. Now with the iPhone4S, several photos transfer correctly and then I get "Unreadable Files: #  The following file(s) could not be imported.  (The file is in an unrecogniz