ADF - dataAction changes to a dataPage?

Thankfully I have managed to solve this problem now - Re: ADF - Multiple Forms on one dataPage
although I did experience one strange thing when viewing the ADF struts-config diagram.
After restarting JDeveloper the ADF struts config-diagram displayed a dataPage instead of a dataAction as I had orginially added. I found this very strange and have not experienced it before, thankfully however after removing this and replacing it with a dataAction my problem was no more, I was just wondering if anyone else had encountered such a thing?
Thanks
David

David,
if this is after migrating from JDevelopet 9.0.5.2 to JDeveloper 10.1.2 ? I hit a similar case with UIX and Struts and it was caused by the DataAction extending DataForwardAction instead of DataAction.
Actually in case that one cannot delete/rebuild the data actions, here is a sequence that solved the problem for me (it was within a UIX project)
1. Open the 9.0.5.2 workspace in JDeveloper 10.1.2
2. Select the ViewProject? and accept the migration of the UIX libraries to the newer version
3. Open the Struts Pageflow diagram
4. Select one of the "wrong" icons "/IPCTUEFormAction2?" in the example and choose
5. "Go to Code" from the context menu
6. Change "extends DataActionForward? " to "extends DataAction?" and make sure you import the DataAction? class (its automatically indicated,import oracle.adf.controller.struts.actions.DataAction?;)
7. Compile the class and save it
8. Go back to the pageFlow Editor and use the righ mouse context menu
9. Choose Diagramm --> Refresh Diagram from all pages
10. Close the Struts page flow diagram and save the changes
11. Save the project
12. Close JDeveloper
13. Open JDeveloper
14.Open the Struts Page flow diagram
With this sequence I am 90 % successful. In the remaining 10% of cases step 7 to 13 (I simply have to redo the sequence).
Note that step 7 - 14 only enforce the diagrammer to refresh.
Frank

Similar Messages

  • ADF: table changes are not getting refelcted properly

    Hi,
    I have an ADF form in a jsp which binds to some data in the DB table. I had to change a field to 'NOT NULL' in the data base. I updated the same value in the entity object by right clicking the entity object, and selecting the 'Synchronize with the Data base'. Now the field has become a required field. But when I try to save that data, it never validates the form as other fields. For other required fields, I get a pop up box saying 'A Value required'. But for this field, I get
    JBO-27014: Attribute RebillIsTaxable in RebillService.RebillInfoView3 is required. I am wondering how this acts different than the other fields.
    I also tried updating the vo and delted the field, and created it again in the jsp page.
    Here is the code.
    <af:selectOneChoice value="#{bindings.BillInfoView3RebillIsTaxable.inputValue}"
    label="#{bindings.RebillInfoView3RebillIsTaxable.label}"
    binding="#{CRBIF001.selectOneChoice4}"
    id="selectOneChoice4" required="#{bindings.RebillInfoView3RebillIsTaxable.mandatory}">
    <f:selectItems value="#{bindings.RebillInfoView3RebillIsTaxable.items}"
    binding="#{CRBIF001.selectItems4}"
    id="selectItems4"/>
    </af:selectOneChoice>
    Can any one help me to solve this issue?
    Thanks,
    priya

    Hi,
    I need the af:message tag as I use that to display other manual validation error. I am just wondering, how it works with other 'required' fields with out any coding. I just need to add 'required' attribute with the binding. But for this field, though I have the 'required' attribute, I get the error message instead the pop up message.
    The field is a fixed drop down list with two values in it. I add a blank item too in the list. While this error message is displayed, I see two blank values inserted with the two fixed values. But when the page is rendered, it has one blank item.
    Is there any thing I need to check here? But the page definition file has only one blank item. Here is the code.
    <list id="RebillInfoView3RebillIsTaxable" ApplyValidation="true"
    IterBinding="RebillInfoView3Iterator" ListOperMode="0"
    StaticList="true" NullValueFlag="1">
    <AttrNames>
    <Item Value="RebillIsTaxable"/>
    </AttrNames>
    <ValueList>
    <Item Value=" "/>
    <Item Value="Exempt"/>
    <Item Value="Taxable"/>
    </ValueList>
    </list>
    Please let me know if I miss something in the code.
    Thanks,
    Priya

  • ADF/Swing: changing iterator in runtime before displaying panel

    Is it possible ,before displaying panel, to change iterator name that was specified in design time and is placed in panel.pageDef xml file and this way display panel with different iterator than is in panel.pageDef file? If yes, is it posible display this way many panels in the same time?

    Hi,
    the iterator is referenced by the attribute binding. If you look at the Swing code then you see that the Swing widgets reference a named attribute binding in their model binding. To change the iterator you would need to access the ADF binding layer and change it there. which I haven't tried.
    The attribute binding references an iterator as a named reference, which means that changing the physical implementation - in theory - works if the same set of attributes are available.
    Frank

  • ADF Filter- change the order of displayed attributes

    Fairly new to ADF. Started a week ago. I was wondering if I can change the order of the attributes displayed on the panel that opens when you click on filter? if so how would I go about it
    Thanks

    Hi,
    I was wondering if I can change the order of the attributes displayed on the panel that opens when you click on filter
    where did you click on filter? Which component ?
    Frank

  • Using ADF against changing table structures

    Hello,
    We are developing a JSP app that will hit the same tables in different dbs/scheams, but the attributes (columns) of the tables could change (all except the primary key and name of the table). I want to write the app once and allow it to hit the same tables even if they have different columns (depending on what db is connected). As an example, using ResultSetMetaData I can easily "loop" thru through all column "labels" and then loop thru the ResultSet to display the data.
    I am assume that ADF would NOT be a good fit for this type of application but I wanted to see what others had to say.
    Thanks.

    The biggest problem is that the number of columns in the tables could differ. Is it possible/feasible to create dynamic ViewObjects based on the structure of the currently connect db? As in, once the app initially connects, it dynamically build the ViewObjects and then allows the app to access these ViewObjects as needed.

  • ADF 11g: Change Text Value within af:dialog

    Any guidance much appreciated: I'm new to ADF 11g and java scripting...
    I have a popup containing a dialog inside my af:document. I want to be able to dynamically change the text message being displayed inside the dialog at runtime prior to showing the popup. I have added an af:panelGroupLayout inside the dialog component, with an af:outputText component inside that.
    <af:popup id="nexusAlertPopup">
    <af:dialog id="nexusAlert"
    inlineStyle="vertical-align:top; text-align:left; font-size:small;"
    type="ok" closeIconVisible="false" title="Change Me"
    affirmativeTextAndAccessKey="Continue">
    <af:panelGroupLayout id="nexusAlertPanelGroup">
    <af:outputText id="nexusAlertText"/>
    </af:panelGroupLayout>
    </af:dialog>
    </af:popup>
    When I look at the ADF javascript API, I cannot find a set method to change the value of the outputText in my JS Function. Can you use a normal setAttribute method on any ADF object?
    Regards,
    Mario

    Branislav Nemec wrote:
    Is there a particular reason you need to change the title in JS function?Thanks for your reply Branislav.
    To make a short story long: I am trying to create a dynamic popup dialog on an ADF page template. We have Oracle Form Modules which are being clipped inside this center panel of the pages using this template and the communication between the ADF application and our Forms application happens through JS on the client. What I need to do is on the Forms side, override all forms alerts with a call to a JS Function which would popup a synchronous ADF dialog and return the result back to Forms in a Global variable. So the text of the alert needs to be dynamically passed through and this needs to preferably happen on the client side without a roundtrip to the ADF server. If it is possible. Also, it is not the TITLE I am concerned about as there is a setTitle() method in the AdfRichDialog class.
    Hope this sheds some light on the issue...

  • ADF Faces: Changing "rendered" property in PPR: JDev 10.1.3

    Hello all,
    I have an ADF Faces page that has an af:CommandButton on it. The rendered property of the button is set to an EL expression that references the model (ADF BC). When the page is submitted (via an af:CommandButton with PartialPage=true), the rest of the page refreshes properly to reflect the changed model state, but the command button with the conditional rendered property is not disappearing as expected (the button is initially rendered=true). I remember reading recently about a similar issue if the button is initially not visible, and I'm not sure if this is related.
    Interestingly, if I click on the button (which should no longer be visible after the PPR event), it does nothing - so it appears to be merely a visual problem. I have also tried setting the disabled property to an EL expression that is the opposite of the rendered property, and the button does not change to be disabled, either.
    Any thoughts? At this point, it looks like a bug/feature.
    Kind regards,
    John
    Should I be able to do this?

    John,
    if you wrap the button in a panel (e.g. buttonpanel) and set the PPR to this panel, does it work ?
    Frank

  • Adf model: Change page def for a page dynamically?

    Dear All,
    i want to ask is there a way to change the jspx page and its page definition file
    dynamically??
    e.g. i have a page, page1.jspx with page definition page1PageDef.xml.
    can i do something to change this mapping dynamically (per client, not affecting the
    whole application), says based on some condition, set the page definition for
    page1.jspx to page1A_PageDef.xml???
    the name of the attributevalues, variables, methodIterators..etc, in page1PageDef and page1A_PageDef.xml, are same, the only different is that the methodIterator bind
    to different methodAction in the 2 page definition files.
    is it possible?? risky??
    thank you.
    lsp

    Just delete the Cover section and insert a Text Page.
    Click on:
    +Toolbar > View > Page Thumbnails+
    Click on the Cover thumbnail, it will be outlined in yellow, hit delete.
    It may start off with certain defaults but you do not have to accept them.
    Peter

  • ADF :  Value change listener for the whole jsff page

    Is there any feature to have a value change listener for the whole jsff page ?
    How to know if user has change something in the page i.e. how to know whether the page is dirty ?

    User please tell us your jdev version!
    Read this blog https://blogs.oracle.com/groundside/entry/ever_wondered_how_uncommitteddatawarning_works
    Timo

  • ADF Faces - Change style for menuTab component

    How to change color for menuTab components (selected and enabled)?
    I do not want to create new style, all I need is just change some colors and fonts for default oracle style.
    I was able to change color for table, overridinf some styles in my css-file, but overriding
    <af_menuTabs_selected> and <af_menuTabs_enabled> did not work, because on generated html-page menuTab components do not use any styles. Is there any workaround to change color of that component?
    Thanks.

    public String commandButton_action() {
    ot_msg.setValue("Hello");
    AdfFacesContext.getCurrentInstance().addPartialTarget(ot_msg);
    The code above works fine but I nead also, in the method, to generate a excel file with JXLS librairie.
    The file can takes a long time to download and thus I want to change the value of outputText while the file is generating and not after.
    How can I do that ?
    Thanks

  • Adf:tree change node icons

    Hi ,
    Is it possible to create adf tree like in this example - http://www.roseindia.net/jsf/RCFaces/RCF-tree-component.shtml.
    There is two options for tree defaultExpandedImageURL and defaultImageURL . I need implement such functionality in adf tree
    how can i do it ?
    Thanks in advance.

    with help of : zero linecodes you can achieve this in adf tree.
    so can you please tel the usecase.

  • ADF Calendar : change the calendar activity style

    Dear All,
    Is it possible to display the events found in the month view of the ADF calendar without the time ?
    By default the calendar displays it's events in the following format "12:00 AM Client X" i need to display only the event description without the time therefore i need to display only "Client X".
    Thanks for your supportĀ 

    Please declare the activity as an all day activity. :-)
    -Gyanesh

  • ADF BC : Changing Mandatory property for the EO Attribute at runtime

    Hi all,
    I have one Entity attribute, which has to be Mandatory for all new, not yet commited row; but it is not mandatory_ for any others, existing (in the database) row. How to acquire this ?

    You might need to write a validation method to achieve this:
    check if:
    getEntityState() == Entity.STATUS_NEW or Entity.STATUS_INITIALIZED
    To show * mandatory indicator on the UI, you could use the above property exposed via some bean property/VO transient attribute...

  • Making a delete commit automatically with ADF BC, Struts and ADF UIX

    I'm trying to create a delete action that commits to the database automatically using ADF Business Components, Struts and ADF UIX.
    I have a browse page from which the user can view all records in the table, and perform edit, create and delete actions on the data.
    When the user selects a record and clicks edit they are taken to a screen where they can amend the details of that record. Create works in a similar way, but the create action on the view object is invoked before taking the user to the edit page (this is done by linking the browse page to an ADF DataAction (bound to Create) on the Struts page flow diagram, and then linking the ADF DataAction to the edit page).
    When the user clicks submit on the edit page, the container follows a forward from the edit page to an ADF DataAction bound to the Commit method, and then from there a forward back to the browse page.
    This seems to work fine for edit and create, but when I try to do something similar for delete, it behaves unpredictably - sometimes the delete is committed to the database, sometimes not.
    To be more specific, the way I have tried to implement the auto commit delete is as follows:
    There is a UIX submitButton on the browse page called Delete. When clicked, this button triggers an event, which is caught by an event handler inside the page. The event handler causes the UIX servlet to take a forward to an ADF DataAction bound to the Delete method on the relevant view object. It thens follows a forward from the previously mentioned DataAction to another ADF DataAction bound to the Commit method for the application module. There is then a forward leading back to the browse page.
    Has anyone else encountered similar problems?

    did you figure this out?

  • ADF BPM Integration

    Hi,
    We are integrating, BPM and ADF. For the human taskflow we are generating the ADF taskflow. Now problem is when we need to do even a single customization debugging is so complex and time consuming we need time 1-2 days even to fix simple issues which we can fix in ADF in 2-3 hours.
    Is there any of doing hot deployment in BPM/ADF, it can save a lot of time in deployment.
    Eagerly waiting for answer.
    Thanks
    Vipim

    Vipim,
    I'm not clear where your problem is, but a nice way to manage your BPM and ADF projects is to make them separate JDeveloper applications. That way if you need to change something in ADF, you change just the ADF application and redeploy just that - the BPM/SOA application remains unaffected.
    Similarly, this if you change the BPM/SOA application you can redeploy it too without affecting the ADF application.
    Just make sure your ADF application human taskflow is registered correctly in Enterprise Manager. Enterprise manager > SOA > Right-click soa-infra > Service Engines > Human Workflow > (your human task) > Administration. You'll need to have an entry here that points to your deployed ADF application. Though this will already be registered for you (most times!) when you to the deployment. This needs to be done for all your human tasks.
    Some tutorials use SOA/BPM project and ADF projects in the same JDeveloper application. I find it easier to have the ADF project and the BPM/SOA project in different applications for maintenance purpose and to keep things simple. Splitting out and application out should be relatively straight forward. Just copy the application to another location and delete the projects that you no longer want in the application.
    HTH
    Phil.

Maybe you are looking for

  • Mounting 2013 21.5 inch imac

    Is there any way to mount my imac to a wall. I dont want to buy the one with it already fitted though because i already have the imac and cant return it. base 2013 21.5 inch model

  • Shipping point in STO PO and RTV PO want to make mandatory

    Hello, For Stock Transport purchase order of UB document type and Returns purchase order i what to make shipping mandatory. I have tried in field setting, however there is no such option to set. if you know any way to set the shipping mandatory pleas

  • Lock image pixels, how to unlock ?

    It open a JPEG in Camera Raw from Bridge, make some adjustments and then I open the photo as a Smart Object in Photoshop. Then I create an adjustment layer and also change the layer style on the smart object ( Inner glow and a Stroke). I save the lay

  • Master Collection CS5 Installation Problem

    Hi Guys I had a problem half way through installing the MC on my win64bit PC and the result is Fireworks did install properly and appears in the Adobe Master Collection folder (as a blank icon) but FW does not in the program uninstall list. However w

  • BorderLayout WEST, EAST and CENTER regions wont display?

    Hi all thanks for comments on the last post, very helpfull. I have writen this code and cant figure out why it is not displaying anything in either of the CENTER WEST OR EAST regions of the borderlayout. Sorry its a bit messy and still trying to get