Refractor  for Pagedef  ?

Is there any reason why there is no Refractor for PageDef(xml) files. I would expect at least the basic , delete, move, rename ?
Maybe we can add this as a request for the next version.

You can refactor pageDef from the main menu.
Select your file in the tree and between Application and Search options you have Refactor option.
Hope this helps.
Joseba
I've assumed you are using JDeveloper 11g

Similar Messages

  • JSF, ADF BC, 11g - Configure default location for pageDefs

    Hi all,
    As the title suggests, I was wondering if there is anyway to configure the default location for pageDefs.
    I've been having some issues when creating a page through faces-config.xml.
    If I don't put a folder before the jsp name when declaring the page in the faces-config - eg. /Home.jsp - then the pageDef is created in the correct place - eg. /adfmsrc/com/delexian/app/pageDefs
    However if I do put a folder before the jsp name - eg. /app/Home.jsp - then it puts the pageDef in /adfmsrc/app
    Anyone know of a workaround?
    Cheers,
    -chris

    Hi Chris,
    not that I know
    In case you have access to Metalink, I logged Bug 7502373 - PAGEDEF FILES NOT CREATED UNDER PAGEDEFS PATH FOR JSPX CREATED IN SUB-DIRECTORY
    a few days agi.
    See also Note 744764.1 - PageDef Files Not Created Under PageDefs Path For JSPX Created In Sub-Directory
    For now, I only see Refactoring as workaround.
    Regards,
    Didier.

  • Issues in JEDEVELOPER  11g

    Hi friends,
    I very often get the following errors while working in 11g. I loose my patience in debugging these errors.
    Pls let me know whar could be the reasons for these.
    1) I often get this message in the log : Binding null for PageDef : and it impacts my bindings.
    2)The domain edit lock is owned by another session in exclusive mode - hence this deployment operation cannot proceed - Weblogic error.
    Kindly help me in solving these.
    Thanks,
    User

    Hi,
    For the first one, go into the source of your pageDef and make sure that the bindings you are using are the only ones present. Sometimes if you recreate bindings and remove them, the pageDef keeps a reference to a mapping but maybe you are not using it any more.
    For the second issue, you need to go into the WLS console http://127.0.0.1:7101/console/ with user/password weblogic/weblogic and on the left hand side you will see a box containing view Changes and Restarts. Apply all pending changes and then you will be able to re-deploy your application again.
    The domain gets locked at un-deploying and if for some reason there are exceptions it causes the domain to remain locked. Does it happen often to you? Would you be able to provide the steps to hit this behavior?
    Cheers,
    Juan C.

  • Problem with method action after migrating from TP2 to TP4

    Hi,
    we are migrating our application (ADF Faces, ADF BC) from TP2 to TP4. We have encountered several problems.
    The biggest that we could not solve is as following:
    In our View Object's RowImpl.java classes we have method void refreshLOVAccessorQueries(). In a number of View Objects that method is placed in client interface. In pageDefs of jspx pages that are bound to that View Objects we have method action like
    <methodAction IterBinding="TeeCronTtVOIterator"
    id="refreshLOVAccessorQueriesCron"
    InstanceName="bindings.TeeCronTtVOIterator.currentRow"
    DataControl="TradingAppModuleDataControl"
    RequiresUpdateModel="true" Action="invokeMethod"
    MethodName="refreshLOVAccessorQueries"
    IsViewObjectMethod="false" IsLocalObjectReference="true"/>
    and invoke action like
    <invokeAction id="refreshCronLOVs" Binds="refreshLOVAccessorQueriesCron"
    Refresh="prepareModel"
    RefreshCondition="#{!requestContext.postback and empty bindings.exceptionList}"/>
    When we are accessing such a jspx page the application rases error:
    "Method bindings.TeeCronTtVOIterator.currentRow.refreshLOVAccessorQueries() not supported "
    In TP2 everything worked fine. Now in TP4 for some VO that refresh is OK and for others just mentioned error is thrown. Confusing is that all View Objects and their java classes are created in the same manner and they are almost identical, and this counts for pageDefs too.
    What could be the reason of all this?
    Second thing is that in adfc-config.xml in backing bean defs we have managed-property like:
    <managed-bean>
    <managed-bean-name>regionBacking</managed-bean-name>
    <managed-bean-class>app.view.backing.RegionBacking</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>bindings</property-name>
    <value>#{bindings}</value>
    </managed-property>
    </managed-bean>
    JDeveloper warn us about that with: ' EL token bindings" is unknown '. Why is that? It looks that everything connected with that managed property works fine.
    Another problem is not severe but unpleasant
    After migration to TP4 nothing (not one element) is visible (shown) in the design view.
    The structure of the pages is similar as in the StoreFrontDemo and it shows just fine in TP2.
    Thanks!!!

    Thanks Frank,
    but working from beginning is to much work so, we have solved it in another way.
    Regard to first problem we discovered that it is happening only when there is no Rows in iterator for which we are invoking action. In invoke action we have changed refresh property to default value and the problem is solved.
    Second thing is warning that has no other effect so we will ignore it.
    About third problem, when we create new working copy of application in JDeveloper without system11.1..... directory, JDev works fine and all jspx pages are shown in design view. After some work, due to undiscovered reason design view is lost... What could cause this?
    Maxa

  • How i can implement onPageLoad method in ADf Fusion Middleware

    I want to implement onPageLoad method in ADF Fusion Middleware. What i did so far is :
    - Created my own PagePhaseListener class which implements PagePhaseListener interface.
    I wrote following code in that class
    public void afterPhase(PagePhaseEvent event) {
    PageLifecycleContext ctx = (PageLifecycleContext)event.getLifecycleContext();
    if (event.getPhaseId() == Lifecycle.PREPARE_RENDER_ID) {
    BindingContainer bc = ctx.getBindingContainer();
    onPagePreRender();
    bc = null;
    public void onPageLoad() {
    // Subclasses can override this.
    public void onPagePreRender() {
    // Subclasses can override this.
    public void beforePhase(PagePhaseEvent event) {
    PageLifecycleContext ctx = (PageLifecycleContext)event.getLifecycleContext();
    if (event.getPhaseId() == Lifecycle.PREPARE_MODEL_ID) {
    BindingContainer bc = ctx.getBindingContainer();
    onPageLoad();
    bc = null;
    - Created a backingbean with session scope and override onPageLoad method
    - Inside pageDefinition i added Controller class using EL like #{MyPhaseListenerBean}
    but it game me error that no "MyPhaseListenerBean class found.

    Hi ,
    When am Adding ControllerClass ( ControllerClass="com.hp.rebates.grs.view.backing.fragments.ItemTabsBean" ) for PageDef File am getting error as...
    <[ServletContext@31287410[app:grs module:grs-ViewController-context-root path:/grs-ViewController-context-root spec-version:2.5 version:V2.0]] Servlet failed with Exception
    java.lang.ClassCastException: com.hp.rebates.grs.view.backing.fragments.ItemTabsBean cannot be cast to oracle.adf.model.RegionController
    at oracle.adf.model.binding.DCBindingContainer.getRegionController(DCBindingContainer.java:4944)
         at oracle.adf.controller.internal.binding.TaskFlowRegionController.doRegionRefresh(TaskFlowRegionController.java:225)
         at oracle.adf.controller.internal.binding.TaskFlowRegionModel.processBeginRegion(TaskFlowRegionModel.java:117)
         at oracle.adf.view.rich.component.fragment.UIXRegion$RegionContextChange.doChangeImpl(UIXRegion.java:1182)
         at oracle.adf.view.rich.context.DoableContextChange.doChange(DoableContextChange.java:91)
         Truncated. see log file for complete stacktrace
    >
    Any one can help me solve this issue.
    Thanks in Advance.

  • 11gTP4: DataBindings.cpx pageDefinitionUsages page ids

    Hi JDev team
    I notice in JDev 11gTP4 that when creating data bound web pages, which automatically creates the associated DataBindings.cpx entries for the associated page def file, that the pageDefinitionUsages page ids now look like this:
      <pageDefinitionUsages>
        <page id="view_UserDetailsPageDef" path="view.pageDefs.UserDetailsPageDef"/>
        <page id="view_DummyClientsInputFormPageDef"
              path="view.pageDefs.DummyClientsInputFormPageDef"/>
        <page id="view_xTemplatePageDef"
              path="view.pageDefs.xTemplatePageDef"/>
      </pageDefinitionUsages>However in JDev 10.1.3 JDev it would have looked like this:
      <pageDefinitionUsages>
        <page id="UserDetailsPageDef" path="view.pageDefs.UserDetailsPageDef"/>
        <page id="DummyClientsInputFormPageDef"
              path="view.pageDefs.DummyClientsInputFormPageDef"/>
        <page id="xTemplatePageDef"
              path="view.pageDefs.xTemplatePageDef"/>
      </pageDefinitionUsages>In particular notice the changing id values, in 11g it now includes the prefix "view_".
    I'm wondering if this is deliberate as if we wish to access the bindingContainer in a backing bean via a call to bindingContext.findBindingContainer(String), based on our old assumptions of the BindingContainer name format we'll have trouble in getting this code to work. This becomes even more difficult because we don't necessarily know that the findBindingContainer method uses the ids from the DataBindings.cpx file.... as a first port of call I was looking at the Id in the actual PageDef file which doesn't include the prefix "view_" in 11gTP4. Confusing.
    As such to make is easier if you're going to introduce this change, can I suggest you make sure the PageDef Id matches the pageDefinitionUsages page id in the DataBindings.cpx file as default when JDev creates the underlying PageDef/DataBinding entries automatically for the user? This way they wont get mislead by a different PageDef id from the entry in the DataBindings file.
    In addition if you're going to use the prefix, can I also suggest you include a prefix for the complete package name structure, such as "view_pageDefs_"?
    Cheers,
    CM.

    Hi,
    I think we open up a can of worms if refactoring should change the IDs as well because it would mean that the whole application code needs to be parsed and - even worse - all applications that use bindings as part pf an ADF Library usage. I think the best option to handle this is to ensure that a predictable pattern is used when creating the page IDs.
    [Chris] This becomes even more difficult because we don't necessarily know that the findBindingContainer method uses the ids from the DataBindings.cpx file.... as a first port of call I was looking at the Id in the actual PageDef file which doesn't include the prefix "view_" in 11gTP4. Confusing.
    Not really, because findBindingContainer is a method exposed on the binding context and therefore must be within the databindings.cpx file. Of course this requires some basic understanding of ADF that you and I have but that maybe will cause the confusion among developers starting with the technology.
    I'll file a tracking bug pointing to this thread for the developers to make up their mind on whether it is possible to use the same IDs for pageDef files and databindings.cpx. There must be some reason for why this has been changed.
    Frank

  • Pagedef Editor bug - for nested appmodule

    Creating a nested iterator for a nested appmodule produces:
    <iterator Binds="Root.SAppModule.SView"
    DataControl="ControlAppModuleDataControl" RangeSize="-1"
    id="SVewIterator1"/>
    If a table binding is then created it shows the control binding as :
    ControlAppModuleDataControl.Root.SAppModule.SView
    And none of the attributes of the view are shown. Editing the page def from the page def editor changes the iterator binding to :
    <iterator Binds="ControlAppModuleDataControl"
    DataControl="ControlAppModuleDataControl" RangeSize="-1"
    id="SVewIterator1"/>
    Using the names below can someone respond with the correct settings for 11g so we can manually edit pagedef files with the correct names and should the word "Root" be included as this word was used in the 10.1.3.3 version??
    root datacontrol = ControlAppModuleDataControl;
    nested AppModule = SAppModule;
    view name for table = SView;
    thanks in advance

    Are you getting this iterator created for you in a new page while dropping the view object from the nested AM instance in the root datacontrol AM from the data control palette?
    Or are you creating iterator bindings using the structure window?
    Please see section "10.3.7 How Nested Application Modules Appear in the Data Control Palette" of the ADF Developer's Guide for Forms/4GL Developers on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html for more information on this.

  • Reffering one pagedef for two jsff

    Hi,
    My Jdeveloper version is 11.1.1.3.0
    I am reffering one pagedef file for two different jsff.
    In Jsff1 iam adding records to the grid.
    I want to see the records newly added,edited in the Jsff2
    but iam unable to get the output.
    I am adding the record to the iterator in first Jsff, and refferring the same in second jsff.
    Iam using separate jspx for the jsff.
    May i know why i am not getting the data in second jsff.
    Regards,
    Lakshmar.B
    Edited by: Lakshmar.B on Sep 7, 2010 12:17 AM

    Hi,
    You can achieve the desired use case by creating simple task flow there is nothing you can do with Page definition files.
    1) create a task flow with 2 View activities
    2) Create a navigation control between them
    3) drag collection to View 1 and View 2 both could be different styles......(Table and Form)
    4) Create a button and set Action to the Outcome name in Task flow in both pages.
    Hope it helps

  • Page Element within PageDef Files for Nested Pages

    Hello all,
    I have found in the help file of the JDeveloper, information about the <page> element which can be added in a page's definition (xml file) for referencing a nested page definition, but it does not work, I do not know, perhaps I use it wrongly.
    Please any ideas or recommendations?

    Hi,
    nested bindings are not supported in 10.1.3.x. In Jdeveloper 11 the templating mechanism uses pageDef references
    Frank

  • How to get pages list for a group space or create a page for a group space

    hi All,
    I am using wc11.1.1.3, I want to use java api to implementing the following functions in site template:
    1. Get pages list for a given group space
    2. Create a page for a given group space
    I researched the following codes from web site:
    PageDef newPage = mPageService.createPage(
    PERSONAL_USER_PAGE, pageNameFormat, pageTitle,
    "MyPageTemplate1.jspx",
    "/mytemplates/",
    null, null, null);
    What should be used instead of PERSONAL_USER_PAGE if a group space page is intended to be created? which parameter is for defining group space name that the page should be created for?
    By the way, PageService seems has method for getting list of pages, but how to use it to get page list which is in a specified gs?
    Best regards

    did you manage to get the page list using Page Service API?

  • ADF Faces & BC: PPR and refresh condition on pagedef executables.

    Hi all,
    I'm running into some problems on my page when a command button is pressed. It's partialSubmit attribute is set to true, it seems that iterators/invokeActions within my pageDef are re-executed and thus resetting the index iterator cursor to its original position which leads to the following two messages:
    Jun 2, 2008 5:34:57 PM oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding$FacesModel setRowKey
    WARNING: row is null for rowKey:oracle.jbo.Key[TEST_MN 00123456 2008-05-08 98 98 4 ]
    Jun 2, 2008 5:34:57 PM oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding$FacesModel makeCurrent
    My pageDef code:
    <iterator id="MasterVoIterator" RangeSize="10"
    Binds="MasterVo"
    DataControl="AppModule" />
    <iterator id="DetailVoIterator" RangeSize="10"
    Binds="DetailVo"
    DataControl="AppModule" />
    <invokeAction Binds="invokeInitValues" id="initValues"/>
    I would like to know how to setup the refresh property under the following scinero:
    1. when the page shows up for the first time:
    MasterVoIterator - invoke
    DetailVoIterator - invoke
    invokeInitValues - invoke
    2. When a show/hide button is used to display the detail rows is clicked:
    MasterVoIterator - do nothing
    DetailVoIterator - invoke // to refresh the detail records.
    invokeInitValues - do nothing
    Here is a pic of the component I am working with:
    http://i108.photobucket.com/albums/n23/zeoneozero/mrbhelp.jpg
    Any advice is appreciated
    Thanks,
    Wes

    Hi,
    use
    ${!adfFacesContext.postback}
    as the refresh condition property value to avoid a refresh on postback (when a button is clicked)
    Frank

  • "XML File not found for the Container DataBindings.cpx" error after deploy

    Hello,
    I have a problem with my JSP-Javaproject. Local works all fine but when i deploy my project to a Oracle Aplication Server i allway get this XML-File-Not-found exception:
    oracle.jbo.NoXMLFileException: JBO-26001: XML File not found for the Container DataBindings.cpx
    In my EAR-File the DataBindings.cpx is at:
    \WEB-INF\classes\
    My JSP-File:
    <jbo:ApplicationModule id="AippackageModule" definition="DataBindings.DataModule" releasemode="Stateful" />
    My web.xml:
    <context-param>
    <param-name>CpxFileName</param-name>
    <param-value>DataBindings</param-value>
    </context-param>
    My DataBindings.cpx:
    <?xml version='1.0' encoding='windows-1252' ?>
    <Application xmlns="http://xmlns.oracle.com/adfm/application" id="DataBindings"
    Package="" ClientType="Generic">
    <pageMap>
    </pageMap>
    <pageDefinitionUsages>
    <page id="eonerrorPageDef"
    path="de.avacon.ahb.system.tools.pageDefs.eonerrorPageDef"/>
    </pageDefinitionUsages>
    <dataControlUsages>
    <BC4JDataControl Configuration="AppModuleLocal"
    Package="model.data"
    xmlns="http://xmlns.oracle.com/adfm/datacontrol"
    id="DataModule">
    <Parameters/>
    </BC4JDataControl>
    </dataControlUsages>
    </Application>
    What can i do?
    Thanks, steve

    Adding the dependency in the ViewController fixed this for me.
    I'm using two AppModules in the controller and the second one wasn't being picked up.
    I was able to fix this by:
    Go to the Project Properties, select Dependencies, edit the Dependent Projects and Archives, find the model that's failing and add a tick in the Build Output box.
    The model should now be picked up in the ViewController's DataBindings.cpx source file, though I did have to restart JDev for this to be picked up.
    HTH
    Phil

  • Best practice for calling application module methods and plsql code

    In my application I am experiencing problems with connection pooling, I seem to be using a lot of connections in my application when only a few users are using the system. As part of our application we need to call database procedures for business logic.
    Our backing beans, call methods on the application module which in turn call a database procedure. For instance in the backing bean we have code like this to call the application module method.
    // Calling Module to generate new examination/test.
    CIGAppModuleImpl appMod = (CIGAppModuleImpl)Configuration.createRootApplicationModule("ky.gov.exam.model.CIGAppModule", "CIGAppModuleLocal");
    String testId = appMod.createTest( userId, examId, centerId).toString();
    AdfFacesContext.getCurrentInstance().getPageFlowScope().put("tid",testId);
    // Close the call
    System.out.println("Calling releaseRootApplicationModule remove");
    Configuration.releaseRootApplicationModule(appMod, true);
    System.out.println("Completed releaseRootApplicationModule remove");
    return returnResult;
    In the application module method we have the following code.
    System.out.println("CIGAppModuleImpl: Call the database and use the value from the iterator");
    CallableStatement cs = null;
    try{
    cs = getDBTransaction().createCallableStatement("begin ? := macilap.user_admin.new_test_init(?,?,?); end;", 0);
    cs.registerOutParameter(1, Types.NUMERIC);
    cs.setString(2, p_userId);
    cs.setString(3, p_examId);
    cs.setString(4, p_centerId);
    cs.executeUpdate();
    returnResult=cs.getInt(1);
    System.out.println("CIGAppModuleImpl.createTest: Return Result is " + returnResult);
    }catch (SQLException se){
    throw new JboException(se);
    finally {
    if (cs != null) {
    try {
    cs.close();
    catch (SQLException s) {
    throw new JboException(s);
    I have read in one of Steve Muench presentations (Oracle Fusion Applications Team' Best Practises) that calling the createRootApplicationModule method is a bad idea, and to call the method via the binding interface.
    I am assuming calling the createRootApplicationModule uses much more resources and database connections that calling the method through the binding interface such as
    BindingContainer bindings = getBindings();
    OperationBinding ob = bindings.getOperationBinding("customMethod");
    Object result = ob.execute()
    Is this the case? Also is using getDBTransaction().createCallableStatement the best way of calling database procedures. Would it be better to expose plsql packages as webservices and then call them from the applicationModule. Is this more efficient?
    Regards
    Orlando

    Thanks Shay, this is now working.
    I successfully got the binding to the application method in the pagedef.
    I used the following code in my backing bean.
    package view.backing;
    import oracle.binding.BindingContainer;
    import oracle.binding.OperationBinding;
    public class Testdatabase {
    private DCBindingContainer bindingContainer;
    public void setBindingContainer (DCBindingContainer bc) {this.bindingContainer = bc;}
    public DCBindingContainer getBindingContainer() {return bindingContainer;}
    public static String validateUser()
    // Calling Module to validate user and return user role details.
    System.out.println("Getting Binding Container from Home Backing Bean");
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    System.out.println("Obtain binding");
    OperationBinding operationBinding = bindings.getOperationBinding("calldatabase");
    System.out.println("Set username parameter");
    operationBinding.getParamsMap().put("p_userId",userId);
    System.out.println("Set password parameter");
    operationBinding.getParamsMap().put("p_testId",examId);
    Object result = operationBinding.execute();
    System.out.println("Obtain result");
    String userRole = result.toString();
    System.out.println("Result is "+userRole);
    }

  • How to change the iterator collection for a table dynamically?

    Hi all,
    I am required to change the table iterator dynamically based on the some logic. Is this possible?
    Attempted this by trying to set "value" using a bean -
    value=#{backingBeanScope.chkBean.getCollectionModel}
    This bean method returns either of the below based on condition =
    #{bindings.MyVO1.collectionModel}
    #{bindings.MyVO2.collectionModel}
    Am I doing something wrong?
    Thanks,
    Srini

    have multiple VO instances and the pagedef
    iterator Binds="#{pageFlowScope.OrderBean.pageIterList.pageIterId}"
    in the bean:
    public Map getPageIterList() {
    return itrMap;
    another method in the bean:
    itrMap = new HashMap();
    put value(vo instance) for pageIterId in this map and call this method in the TF.

  • Setting bind variable for a view object from the Managed Bean

    Hi,
    i am using JDeveloper 11g, i have to create LOV in the JSF. To show the LOV, it has to populate data using View object and its query parameter need to be sent from the Managed Bean.
    For the View object i want to set the bind variable parameter from the managed bean value. bename is stored in a managed bean (session scope)
    #{beantest.bename}
    But it gives the following exception.
    JBO-29000: Unexpected exception caught:
    org.codehaus.groovy.control.MultipleCompilationErrorsException,msg=startup failed, Script1.groovy: 1: expecting '!',found '{'@ line1, column 2.
    I have followed the link http://kr.forums.oracle.com/forums/thread.jspa?threadID=615474 like Frank wrote on 8.2.2008:
    But steps are not clear.
    How to input the VO bind parameter with Managed bean variable?
    Any Help
    Regards
    Raj
    Edited by: user9928180 on Dec 17, 2008 9:51 AM

    Hi,
    a bind variable in a VO needs to be exposed as an executeWithParams operation in the pageDef file. Just add a new action binding to the pageDef file (context menu) and select the executeWithParams operation on teh VO. Then in the argument field, reference the managed bean property for the value
    Frank

Maybe you are looking for

  • Screen Capture IOS settings for documentation

    Hi There, I need to have a possibility to capture IOS7 (IPAD.IPOD) screens to make documenation for our engineers how to configure a device for a specific customer. Its possitble to make screenshots (home key and on/off key) but i want to capture a m

  • Why can't I upload photos from the gallery to my eBay?

    My photos will. Ot upload...nor can I upload pix to places to get them developed.

  • Calendar Bug Report

    Hi, First of all, I love my Pre!  Thanks Palm.  You guys are doing awesome.  Just wanted to post a couple bugs I've noticed in the Calendar app when syncing with Google Calendar.  Nothing huge, but still bugs: (1) It appears that the phone sometimes

  • Best option for signal boost?

    I have a WRT300N router and am using it for my laptop and Xbox 360.  Neither of these is N capable, so I'm not sure that's a huge issue.  Our desktop is plugged into the router itself. Because of our house plan, the signal strength takes a pretty big

  • Adding a feedback email address to webhelp output

    How do I add a link within the help file which lets a user give email feedback on a particular page? I'm happy to rename files to be asp and get the file name to append to the mailto: string, but can I do this just by changing a container file rather