Struts/ADF/Toplink conversion from 10.1.2 to 10.1.3

Hi. We have a J2EE application based on Struts/ADF/Toplink.
We just let the JDeveloper migrate the whole application itself.
We solved a few minor problems, but now we have the greater one:
- we have in domain classes some getX...(), setX...() methods, intended for example
for getting attributes of nested objects or for conversion from String to Date.
In older version, when you had some getXSomeAtr() method in domain class, the attribute
XSomeAttr was automatically generated into Data Control.
In newer version it's not! If you want the attribute to be in data control, you must
have an private attribute XSomeAtr declared in domain class.
Example - we have these attibutes (first two has their own getters and setters and are
mapped in toplink, the third is unmapped)
     private Date datum;
private String nazev;
private String XDatumAsDate;
and methods
public String getXDatumAsDate() {
return OurUtils.dateToStringAsDate(getDatum());
public void setXDatumAsDate(String datum) throws ParseException{
Date d = OurUtils.StringToDateAsDate(datum);
setDatum(d);
And the form look like this
<html:text property="XDatumAsDate" .../>
<html:text property="nazev"     .../>
Reading is ok, but attempt to modify date in input field ends with
"JBO-35009: Setting attribute for XDatumAsDate in object methodRSICollection failed"
Are we doing something wrong ? We just need to have the date entering under our control and
be able to enter dates in various formats.
Thanks in advance for any comments.

I compared the both old and new data control xml files and found the difference. The previous attribute descriptor has IsUpdateable="true" but the new has IsUpdateable="0".
Manually changing won't help - data control generation of any class regenerates all data controls and puts back IsUpdateable="0". I'm stuck now.

Similar Messages

  • JSF/ADF/Toplink object from multiple schemas

    We are considering starting a new project using JSF/ADF/Toplink using a already existent database.
    How is it possible to create toplink object from tables when tables belongs to different schemas?
    I think there must be a way to do this and in jdeveloper forum suggested me to post the question here.
    Thank you very much.
    Michele

    Michele,
    When you are in the wizard where it lets you select the tables you can select one schema and query and select your tables. Then you can switch schemas and query and select additional tables.
    When using TopLink this way you will most likely need the SQL generated qith schema qualified tables. To do this go to the map (under TopLink node) and edit its defaults tab and check the option 'Qualify Table Names with Schema Name".
    Doug

  • Jdev10g JSP + ADF + TopLink  debug logging

    Is there some way to specify the logging level when running a JSP/Struts + ADF + TopLink application? I suppose I can set the logging on the Struts action servlet but that will not give me a log of the TopLink statements. Normally, this is set in sesssions.xml, but ADF does not seem to use that file.
    Thanks,
    Ara

    Hi,
    Thanks for ur suggestion. I wanted to make this work with jdeveloper 10g ,as I am also using jdev for OAF development. I cannot use jdeveloper 10g for my other development activities. So kindly let me know as how to make ADF pages work with Jdeveloper 10g.
    I have followed the steps in the turorial (URL) as given below:
    http://maishareef.com/tutorials/s11.php
    In this tutorial, the ADF page is developed with jdev 10g.
    Thanks,
    Sathya

  • ADF/TopLink/Struts - start browsing from a given row position?

    I created a web-application to browse a table called "Project" in the database using ADF/TopLink/Struts, following some online tutorials, and successfully deployed it to Tomcat 5.5.7. Now I am able to browse the table using the following link,
    http://localhost:8080/Project/browseProject.do
    Since there are too many data records in the table, I am wondering if there is a way to jump to a given row using something like,
    http://localhost:8080/Project/browseProject.do?Project_ID_No=123
    where "Project_ID_No" is the primary key of table "Project".
    I understand that we can retrieve the value of the "Project_ID_No" parameter from the HttpServletRequest. The question is how to obtain the currency corresponding to the value of "Project_ID_No" and perform some necessary steps afterwards?
    Thanks,
    Henry

    Sorry I haven't been able to reply, got dragged into an emergency project.
    I have it all working very well, and I really should have figured the commit thing out myself, I was just thinking about it way too hard.
    I do have one more quick question about something I was able to do, I want to have a link next to each row that will delete that row. In order to do that I need to:
    1) Set the current row
    2) Delete the row
    3) Commit
    I was able to do this declarative without having to create any extra data actions by passing three event params on a link such as the following
    &lt;a href="engineManagement.do?event=selectRow&rowKeyStr=&lt;c:out value='${Row.rowKeyStr}' /&gt;&event=Delete&event=Commit" &gt;Delete&lt;/a&gt;
    (selectRow is bound to the setCurrentRowWithKey method)
    Should I be using the event system in this way?
    This seems to work very well, but i'm concerned about the ordering of the events, if they get executed in the wrong order, the wrong row will be deleted or the transaction won't get committed. Will the ADF controller always execute events in the order they appear on the query string?

  • Struts/ADF Iterator problem - how to prevent iterator from executing?

    HI
    I've a problem with a iterator which I would like NOT to execute before I order it! This is a basic Struts/ADF app developed in JDeveloper 9052 and I really don't understand why this iterator is executed!
    My binding definition file for the page contains 2 iterators, let say iterator A and B. Each iterator is bound to a different viewobject. Viewobject bound to iterator A i straightforward, but viewobject bound to iterator B has 3 bind variables - and then I don't want iterator B to execute before i have specified values for those, but I can't hold it back!
    The bindingcontainer is forced into FindMode to prevent any iterator to execute in the first place - then I thought that I would be completely in control. This works fine, until I need to execute iterator A without executing B or any other iterator. I've overridden the prepareModel() method, to accomplish this:
    protected void prepareModel(DataActionContext ctx) throws Exception {
    DCBindingContainer con = ctx.getBindingContainer();
    JUCtrlActionBinding action = (JUCtrlActionBinding)con.findCtrlBinding("ExecuteA");
    action.invoke();
    But, executing iterator A this way, also automatically executes iterator B somehow, which causes a classic JBO-27122 (not all variable bound...). If I remove the code for manually executing iterator A, I get no error, because no iterator is fired at all then. But how do I only execute one iterator in the binding container???
    To demonstrate, my JSP page only has this content:
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <html:errors/>
    Regards
    Jacob

    I don't think you can stop that.
    What I usually do to prevent result show up is to add additional condition with bind variable to programmatically make it selecting no row. vo is something like
    select aField
    from someTable
    where .....
    and :toSearch = 'Y'
    the bind variable :toSearch will be default to 'N'

  • 10g Struts/ADF: Problem with updating a DataAction

    We have a web application (JSP/Struts/ADF) that we developed using the 10g (build 1542) Struts Page Flow designer. It is a great tool for building the application the first time but when we go to change something, DataActions end up being ignored when the application is run.
    Here is the scenario:
    We have SQL-based VOs which require a paramter at run-time. We use a Struts DataAction to bind the VO SQL query through a custom method in the App Module (AM). This works fine the first time that we create it and run it.
    The problem comes when we want to change the custom method (which was already associated with a DataAction) in the AM and then rebuild and run the app, it looks like the DataAction is not there and we get an error on the DataPage (that the DataAction forwards to) which says that "not all variables bound". We have printlns in the custom method so we know when it is accessed and in the scenario that I pose here, the custom method is not called.
    This has also occurred when we had a DataPage forward to another DataPage and then later we added a DataAction in between. The application continued to forward from the DataPage to the DataPage completely ignoring the DataAction that we added and that can be seen on the Struts diagram.
    The only way that we have been able to work around this issue is to delete the Data Action and the DataPage from the struts diagram and then recreate them under a different name. This seems like it is a bug and I wonder if anyone else has experienced this?
    Is this a known bug which will be fixed in the production release?
    Thanks, Les

    This seems to be related to Bug# 3537056.
    Please contact Worldwide Support and register that you are running into this bug. Unfortunately, the bug doesn't list a workaround at present.
    Once you have correctly set SelectMethod=Cursor and passed the -Djbo.sql92.locktrailer=null runtime parameter to avoid using the FOR UPDATE clause, you hit an issue when the UPDATE statement is issued that our developers are looking into.

  • Does anyone deploy 10.1.3 applications (adf & toplink) in websphere 6.0?

    does anyone deploy 10.1.3 applications (adf & toplink) in websphere 6.0?
    We are migrating the Jdev code to 10.1.3 and make some more development.
    do any of you deploy 10.1.3 in websphere 6.0?
    Thanks

    I am not using the ADF or Toplink.
    Just a simple welcome page. I followed the steps from metalink and downgrade
    Jdeveloper JDK 1.4.2 still doesn't work. any Idea?

  • UIX, Struts, ADF and JSP

    Hi guys. My manager asked me to spell out these different strategies and I fell quite short of an adequate summary. I was wondering if someone could breifly define the following technologies and perhaps explain why you would use them. Additionally, we are embarking on a new project and are unsure of which technology to base it on (we will create a BC4J layer). It is a web application which may end up serving many anonymous users.
    UIX
    STRUTS
    ADF
    JSP (as used in JDev9.0.3.3 - Create a complete JSP application).
    Thank you in advance for your time and consideration!
    ~Rob Lundeen

    Here is a quick one:
    Oracle ADF - A framework for building J2EE applications. Based on the Model-View-Controller architecture. Offers flexability in choosing implementation for the different layers.
    STRUTS - a popular open source controller for managing the flow of Web applications when using the MVC architecture. Used as the controller for Oracle ADF based applications.
    JSP - One way to build your Web user interfaces or View layer in Oracle ADF.
    UIX - Another way to build the View layer for your application. Provides a set of rich HTML component and built-in functionality. Uses a declarative approach to building the page. Will evolve to become a JSF implementation.
    BC4J - Now renamed to Oracle ADF Business Components - one of the way to implement the data source (or Business services) layer in Oracle ADF applications. Other ways include EJBs, Web Services, TopLink, or simple Javabeans.
    I hope this helps,
    Shay,
    Oracle.

  • Jdev10g JSP + ADF + TopLink use of sessions.xml

    I am using JSP/Struts, ADF and TopLink. I would like my data controls to use the database information in sessions.xml instead of the TopLink deployment descriptor. It appears that, in order to do that, I have to subclass oracle.adf.model.generic.toplink.ToplinkDataControl, which is one of the system ADF classes. Am I wrong?
    Thanks,
    Ara

    If you are using jdev to create your toplink mappings and sessions.xml in the same project, you should be able to specify the location of the toplink-deployment-descriptor in the sessions.xml as follows:
    /META-INF/Model/toplink-deployment-descriptor.xml
    This issue (3583952) was fixed in Jdev 9.0.5.2. Please make sure you are using JDev 9.0.5.2 and 9.0.5.1.
    Thanks,
    Anuj Jain

  • Database constraints and Struts ADF

    I have a struts ADF project and wish to pick up unique constraint violations from the database(only the database)
    How and where to i trap these violations

    The toy store demo has two java classes called
    toystoreDBtransactionfactory & toystoreDBtransactionimpl.
    These are used to overide the default functionality of
    DBtransaction and DBtransactionimpl. The configuration
    manager (right click your bc4j application module) allows you to set the database transactionfactory class to the overriden classes. The toystore routines basically capture the databse constraints and reformat the messag einto something more meaningful.
    When i run the bc4j tester the changed routines function correctly for example when doing an insert.
    With a struts jsp program a similar insert doesn't trigger the changed routines so i just get the database error comiing back to the screen.

  • Weblogic 8 struts to portlet conversion

    Hello all,
    We are running Weblogic 8 (sp4) Portal. We have converted a struts prototype application into a portlet. We would like to continue to extend this converted prototype under Weblogic adding additional functionality.
    Can we do this? If we add in new pages and struts config mappings, will Weblogic pick this up?
    Or was this a one time conversion from Struts to Portlet and we can not extend?
    Thank you,
    Robert

    Yes,
    Its your stuts module part of the app and proper mofifications will work and you will know the problems during building in application in workshop.
    Thanks
    Vishnu

  • ADF/Toplink embedded OC4J

    G'Day,
    I have problems to deploy an ADF/Toplink application. I checked out the "EJB Based Application Development with Oracle ADF"-Demo which I found at the "Oracle JDeveloper Reviewer's Guide"-Page.
    Instead of "EJB 2.0 Entity Beans (OC4J Native persistence)" I used Toplink as persistence. When I run the dept.jsp I do get an OC4J Embedded Server Alert that tells me to use the standalone OC4J 10.0.3.
    Why ? I suggest it's just while Toplink is set up already in OC4J 10.0.3 ? If so, is there a way of how I'm able to use the embedded OC4J ?
    Cheers
    Norman

    JDeveloper 10g production release comes with OC4J 10g (9.0.4). This OC4J is used as embedded OC4J Server. TopLink is not integrated as CMP provider in the above release of OC4J (10g - 9.0.4). When you try to run a CMP which is mapped using TopLink persistence an alert is popped up.
    OC4J 10g (10.0.3) preview release (available on OTN) has TopLink integrated as CMP provider. You can deploy CMP with TopLink persistence from JDeveloper 10g to OC4J 10g (10.0.3) and test them out.
    raghu
    JDev Team

  • Netui tags to adf tags conversion mechanism

    If any one knows some way to convert netui tags to adf tags please reply to this question. If any ready code or tool is available for this conversion it would be really great.
    Please let me know any such way for this netui to adf tags conversion.
    Thanks
    Vinay MN

    We are working on a set of utilities to migrate from the old BC4J syntax to the ADF model syntax. We haven't determined yet if that conversion will be 100% automatic, but we hope to migrate as much as possible automatically

  • Getting ÿþ as saved conversations from Lync in Outlook in Office 2013

    Hi,
    I've been trying to get to the bottom of this and have found similar posts, but no one seems to have an answer.
    When I IM someone using Lync 2013, they get a pop up notification but instead of the message they see ÿþ<.  Once they open the chat window, they can see my typed text.  Occasionally, certain people can't see the first line of my chat, but as
    long as they keep the chat window open, they can see everything new I type.
    All my conversations that are saved in outlook show ÿþ< for the text and are unreadable.  I've disabled the saving of conversations because they have become worthless.
    I believe it has to do with BOM but have not been able to find a way to fix this.
    If I copy a conversation from the chat window and paste it into Microsoft Word it shows ÿþ<, but if I paste it into notepad the conversation appears.
    (I had inserted a screenshot here, but am unable to because I am unable to figure out how to get my account "verified")
    I've tried changing the preferred encoding for outgoing messages: to Unicode (UTF-8) in Outlook, but this had no effect and I can't find a similar option in Lync 2013.
    (I had inserted a screenshot here, but am unable to because I am unable to figure out how to get my account "verified")
    I enabled logging for Lync and the event IDs that come up are 1, 11 and 12, to which I cannot find any information for at the moment.
    Any help and or suggestions would be appreciated.

    Hi,
    Did the issue happen only for you or for multiple users?
    Please try to delete Lync User Profile and information on Registry, then repair Office 2013.
    The path of Lync User Profile: %UserProfile%\AppData\Local\Microsoft\Office\15.0\Lync
    The path for information on Registry: HKCU\Software\Microsoft\Office\15.0\Lync\[email protected]
    Then test the issue again.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Project Conversion from 11.03 to R12- need help

    Hi All,
    I need some information regarding conversion from 11.03 to R12 along with Capital Project's conversion, do we need to take care Asset Assignment and Assets information at the time of Project Conversion. Iam doing Project and Task conversion different. Is there any good mapping document or Conversion FD, if any body have please send my mail ID. [email protected]
    Thanks for your help.
    Thanks,
    Srini..

    Usually only Open Invoices and Unapplied Receipts are migrated from Old system to New Instance.
    Post Migration Reconciliation shall be tough in that scenario. Reconsider/Rediscuss with Client.
    Migration can be done using APIs or Custom Scripts using Standard Interfaces.
    Hope this is helpful
    Regards,
    Sridhar

Maybe you are looking for