For jdeveloper team

I'm hoping I can get some feedback on a couple of issues regarding the usage of bc4j framework in a web-application. I've found some other posts asking some of the same questions, but have not been able to find any posts with answers. I apologize in advance if I've missed them:
1) post vs. get: Within the OC4J container (when run from inside Jdeveloper), using the post method on forms seems broken. Specifically, I have a page which posts with the form's action set to a controller servlet. Using debug mode, I can see that as the controller servlet receives the request, the parameters do exist. However, the controller then forwards to a view page which, when debugged, shows that the request's parameters are empty. On a side note, doing the very same thing under tomcat (this very same application) works fine (i.e., the 'view' jsp receives the parameters from the original request. According to my reading of the spec, a forward should preserve the request parameters. Finally, using the 'get' method does preserve the request parameters under oc4j.
2) JSP-centric development: While digging through the web-application samples and various HOWTO documents, it appears that the recommended way of building web-applications is to make use of the bc4j datatags. This is not necessarily the way many folks want to develop non-trivial web-apps these days. Keeping with the philosophy that JSP code should be related to the 'view' only, and that all 'controller' code should be separate, what (if any) plans do the jdeveloper/bc4j teams have to open the functionality available in the jsp datatags for servlet development? I certainly understand that pretty anything I can do using datatags are possible to do from a servlet by using the given bc4j API; however, even just getting the application module from the pool ends up being significantly more work than using the <jbo:ApplicationModule> tag. Additionally, when I've looked into using pieces of code in the datatag implementations, and I then check the javadocs, I see an awful lot of "Internal: Applications should not use this method", or worse yet, no explanation of what the method is supposed to do. So at this point, I've got much more "code" in my JSP's that I'd like, and my controller-servlet and related modules are really not doing as much as I'd like them to do.
Thanks in advance for any input!

John,
For the first question, the only thing I can related to this problem is a bug in OC4J which has been fix in the 9.0.2 release. I do not know which version of OC4J you are using but that might be the problem. More specifically, it had to do with the use of the JAZN request handler no processing the request parameters correctly after a forward or an include. May be you should post a message on the oc4j message list.
As for the second question, your are identifying correctly some problems associated the 9.0.2 BC4J JSP application wizards. The Controller written into View problem is actually not because of the BC4J datatags themself but more because of the missing controller part.
The BC4J datatags provides a great way to retrieve the model information and display it in the view. But infortunately we had to build the controlling part using JSP and that become very messy (even if we tried very hard to put of controlling code in one file called DataHandlerComponent.jsp and use as many tags as possible).
In our next release (9.0.3) we are extending our model by integrating with the Struts Controller.
Here is a list of current problems that Struts will help us fix:
* The execution of the business logic and the event handling is done in the JSP page itself forcing you to write a lot of java code in scriptlet not easily portable.
* Missing page flow control.
* No Runtime NLS support.
* The application pool management is error prone because of the requirement of the ApplicationModel and ReleasePageResource tag in specific place in the JSP file.
* Tricky error handling.
So using the servlet controller is the right thing to do, would it be your own or Struts. We can help you with the code to manage the ApplicationModules with the pool or you can wait for 9.0.3 where this will be handle with Struts.
Charles.

Similar Messages

  • Question for JDEVELOPER TEAM

    Hi
    Oracle for each product has .pdf manuals
    but nothing for jdeveloper, In releases 1.0,2.0,3.0, ...
    Why?
    null

    The organization of the docs we deliver--around narrow tasks, heavily cross-linked--does not translate well into PDF or book format.
    If you want a print guide to JDeveloper, there are two options:
    A) There is a third-party book, by Paul Dorsey, coming out in a month or so.
    B) If you are using HTML help (which is likely if you have Internet Explorer on your machine), you can print out a large section of the current help system at once using the following procedure:
    1) Choose Help | Help topics
    2) In the left-hand pane, right-click the folder that interests you and choose Print.
    3) In the dialog that opens, select "Print the selected heading and all subtopics."
    This will print the entire contents of the folder.
    null

  • Right tool for Configuration Management (version control) for Jdeveloper

    All
    Please share your idea and exepeience about right tool for Configuration Management (version control) for Jdeveloper Development. I used CVS in the past. Now In new company we are planning to use Oracle SCM. Is anybody used it before for Jdev Developmet ( BC4J/ADF and Struts project). Is SCM also intergrated with Jdev just like CVS.??
    Jdev Team please guide us.
    Thanks

    Before you go with SCM you should read these two papers:
    http://otn.oracle.com/products/designer/Schedule_2004.htm
    http://otn.oracle.com/products/designer/FAQ_Schedule_2004.htm

  • Frustrated with DATA TAGS (JDEVELOPER TEAM)

    I have been trying to delete a record from an HTML form using data tags and unfortunately I am unable to make any progress.
    It keeps telling me that I got to use either
    "rowkey" or "rowkeyparam" and when I try to use it, it gives me a jsp exception.
    This is the same case with me when I try to locate a record using the "Find" action.
    So how am I to delete or update a record which is displayed in an HTML form?
    I saw the "howto" on using the "rowkeyparam" but it simply doesn't work as advertised.
    I always end up getting a JSP exception and the end result being I am unable to "UPDATE" OR "DELETE" any record from an HTML form.
    JDeveloper Team, Please advice. Do you have any sample examples of "UPDATING" and "DELETING" a record from an HTML form?
    I am really frustrated!!!!
    null

    To see a quick example of a working UPDATE example simply use the "DataPage" Wizard.
    When you choose the Edit Form generation option from the wizard, it will generate a working example of an "Edit Form"
    JSP app using the Data Tags and a RowKey parameter.
    For more info on the DataPage Wizard see: http://otn.oracle.com/products/jdev/info/jdev/datapage/s000.html
    As for deleting a record, this is also done with the Row tag.
    Instead of
    <jbo:Row id="myrow" datasource="ds" rowkeyparam="MyRowKey" action="Update">
    <jbo:SetAttribute dataitem="*"/>
    </jbo:Row>
    You can use:
    <jbo:Row id="myrow" datasource="ds" rowkeyparam="MyRowKey" action="Delete"></jbo:Row>
    Providing you pass the rowkey value as the Html parameter "MyRowKey"..
    null

  • Any date for jdeveloper 10.1.3 beta with adf features

    Hi Jdeveloper team,
    Is there any date we can expect the next jdeveloper 10.1.3 beta with more complete adf features ? I'm currently evaluating the technology stack+tool to use for our next project ( preferably jsf based ), the lack of an adf faces release with adf databinding and adf bc features means I can't do a complete evaluation of 10.1.3 now.
    Regards,
    Low

    Low,
    we don't have a date for a preview release of Oracle JDeveloper 10.1.3 with ADF. Our intention is to release a preview version on OTN as soon as possible and if possible.
    Frank

  • OTPC Teams and SVN Repo -- cannot use the same SVN repo for different teams

    Can one Subversion repository be used as the versioning repository for two teams?
    I recently installed OTPC Server and client.
    As the administrator, I created a Rally connection, and a Task connection, and a Subversion connection.
    I created a team, and attached the three connections.
    All worked fine.
    Next I created a second team, attaching the three connections.
    In the JDeveloper OTPC client, the Rally and Task connectors work for BOTH teams that I am on.
    The subversion connection will not.
    In the Team Navigator Panel, under the "Versioning" accordion subpanel, for one team it has a SVN connection, for the other team it says "Create Connection."
    When I double-click on it, enter the repository information, and test read access, it says "Access granted."
    When I press Okay to close the dialog it says:
    "A repository connection with the supplied URL already exists."
    Is this an intentional feature that one subversion repository cannot be used on both teams? Or is it a bug? Or is it my error?
    Thanks,
    Arie

    the proxy env is ok in superuser env
    ➜  ~ git:(master) ✗ export | grep proxy
    ftp_proxy=http://proxy.zte.com.cn:80
    http_proxy=http://proxy.zte.com.cn:80
    https_proxy=http://proxy.zte.com.cn:80
    rvm_proxy=''
    ➜  ~ git:(master) ✗ su   
    Password:
    [root@myhost jinleileiking]# export | grep proxy
    declare -x ftp_proxy="http://proxy.zte.com.cn:80"
    declare -x http_proxy="http://proxy.zte.com.cn:80"
    declare -x https_proxy="http://proxy.zte.com.cn:80"

  • JDeveloper Team: How Do I minimize the number of Oracle Sessions using Data Tags?

    I am trying to create a stateful application thru my JSP pages. Everytime there is a reference to the application module using the data tag, it looks like it creates a new Oracle Session. But thats not what I want to do.
    I have a module in which my first JSP page allows viewing of the data and in subsequent pages I allow insert, update, delete, commit etc.
    My Questions:
    1) The problem that I am encountering is that every new page that I go to creates a new Oracle session even though I specify the "Stateful" release mode.
    How do I avoid this?
    It looks like , if one browser user can potentially create 10-20 oracle sessions thru one module, imagine what the impact will be when we have hundreds of users.
    2) The sample JSP pages I saw has the username and password hard coded in it every time. Why? For a stateful application can I not specify the username and password just once and have the other JSP pages use the same userid and password.
    What are the pros and cons? I thought if I don't use the username and password in all the JSP pages then it probably will not create additional Oracle sessions but that is not true!!
    3) If it creates several Oracle sessions , will it not cause locking problems? If so, How do I minimize locking problems in a stateful application.
    JDeveloper Team Please advise!!
    AM I missing something? I would appreciate if someone can help me out!
    null

    Thanks a lot for the information. That thread was indeed very helpful. But it still didn't answer all my questions:
    1) In the thread you mentioned, it mostly talks about Web beans. In a jsp page (using Web bean) we need to first invoke setReleaseApplicationResources(true) and then invoke releaseApplicationResources().
    Does this apply to data tags? I mean I have a tag <jbo:ReleasePageResources releasemode="Stateful" />. Is this enough to release the application module back to the pool or do I have to have something equivalent of setReleaseApplicationResources(true)?
    2. In a stateful application, the state of an application is maintained between requests via a browser cookie. For each browser, you can have one state per application module class. I was attempting to run "several browser sessions from the same machine" and the end result was that I got errors and unpredictable results ie it returned me far fewer rows then I saw originally. Should I be actually be running the browser session from different machines?
    3. In JDeveloper Documentation (section About Application Module pooling) there is a note section : "If the application module is not recycled the data stays the same. However if the application module was recycled and then activated through a failover, the activation logic re-executes the view objects, so it may bring in more or less rows then originally seen by the clients due to any database updates that have occured."
    This is exactly what is happening to me? How do I get rid of this problem? I want to be able to see all the original rows + any new rows That have been committed. Please advise!
    4. Are the JDBC connections tied to application module instances? Is it one JDBC connection per application module instance? So, in a stateful JSP, if I end up using a different application I also get a different JDBC connection. IS this true?
    5. Does the no of application module instances depend on the no of available JDBC connections? Because it looks like if you set the max no of connections to "5" and set the max no of application module instances to "10", It will be able to instantiate only "5" application module instances due to the limitation set by connection pool.
    6. At times I get errors which indicates that the row in view object does not exist. Is this something familiar? Or is it the same problem that John discussed in his thread.
    Thanks in advance!

  • Classroom Courses for JDeveloper 10g

    I'd like you all to know that the first teaching events for our JDeveloper 10g production courses are now scheduled. You can register for the new "Java Programming" course (May 17-21 in Mississauga, Canada) and the "Build Applications with ADF" course (May 24-28 in Reston, VA).
    These first production teaches are "proving" events; a regular schedule at various global locations will follow, after these events are completed. But the above events are an early chance to grab a full week of training.
    You can find details (and register) for JDeveloper 10g classes through this link:
    http://education.oracle.com/web_prod-plq-dad/plsql/show_desc.redirect?redir_type=13&group_id=1128&p_org_id=1001&lang=US&media=1&source_call=
    Regards,
    Glenn. JDeveloper team.

    Hi there,
    I have tried to created a Java Portlet using the Wizard with jdev10G and it did not work. I am welling to try 903 but I cannot find the PDK for it. Yes I have looked all over PortalStudio.oracle.com. Is anyone have the link to download the PDK for jdev903?
    Also I have tried for two days to make the Java Portlet Wizard work with 10G with no luck. Why are they posting somehting that doesn't work? This is really frustrating.

  • New Portal add-in for JDeveloper

    Hi,
    I just installed the new Portal add-in for JDeveloper 9.0.3 which additionnally to the existing JPDK portlets supports now the new standard JSR168 portlets generation.
    When trying to generate standard portlets, the wizard starts OK and all the screen are there, but when clicking on the finish button to generate the code, nothing seems to happen and no error message or anything is displayed !!
    Any suggestion ??
    My operating system is W2K workstation using JDeveloper 9.0.3.2.
    Thanks,
    P.S. I have followed the installation instruction (copying the required files into the jdev/lib/ext directory and the jdev/lib/patches directory).

    George,
    It sounds like you haven't followed the download and install instructions for the portlet container (called 'PDK Standards Preview' on portal studio).
    Although the jdev addin can build portlets suitable for **any** jsr 168 compliant container, part of the install depends on jar files in the JWSDP 1.2 distribution which you download as part of the container install.
    Check the jdev addin install doc again, specifically pre-requisite number 2.
    If you don't want to use the Oracle JSR 168 container, then just download JWSDP 1.2 from java.sun.com and grab the same jar files from that. Although, note that in this case the deployment instructions in the tutorial article will not apply - as they are oc4j/jdev specific. You'll have to figure out how to deploy into your chosen container yourself.
    Regards,
    Gareth
    (PDK team)

  • Visual Source Safe AddIn for JDeveloper

    Hi All,
    Is there an addin available for JDeveloper
    somewhere for Visual Source Safe ? I know there's one available for JBuilder 4 ...
    Thanks.

    See the following discussion group post for information on the custom addins:
    http://technet.oracle.com:89/ubb/Forum86/HTML/000174.html
    You could also use Oracle's own source control system (Oracle Repository) rather than Visual Source Safe. This has a much tighter level of integration with JDeveloper. See
    http://otn.oracle.com/products/repository/demos/jdevviewlets_viewlet.html
    for a demo.
    Thanks,
    Brian
    JDeveloper Team (SCM Integration)

  • Project Jedi for Jdeveloper and ADF

    We are evaluating certain features of JEDI and have couple of questions regarding the packaging and feature support
    1.     Is JEDI part of the Jdeveloper/ADF license or is there a separate license cost for it
    2.     Are there development groups using JEDI framework and is it currently deployed in Production?
    Here is brief for our current requirement
    1.     Flexibility to leverage existing table columns in the schema for an instance [Table Product has columns like Product_id, Product Name and support additional columns like Attr_1… Attr_x]
    2.     Flexibility to leverage predefine database table which has an existing columns in the schema for an instance [Table Product_Ext has custom columns like Ext_Attr_1… Ext_Attr_x]
    3.     Flexibility to leverage existing table columns in the schema based on certain metadata, i.e. Context Sensitivity. For an instance Product_Attribute or its extension table Product_Attribute_Ext will not be able to manage multiple attributes as Products supported will be huge. So for Product A we may have Attr_1 representing “Scent” and Attr_2 representing “Flavor”. I din’t see any detailed around on this on the Wiki.

    I'm assuming that you are an Oracle employee since JEDI is not exposed to the general public right now.
    Please contact the JDeveloper team internally or use the internal Oracle forums to get answers to your questions.

  • SCM Linus Torvalds on git Is there integration for Jdeveloper?

    http://youtube.com/watch?v=4XpnKHJAok8
    Linus Torvalds visits Google to share his thoughts on git, the source control management system he created two years ago. Git is the open source revision control software that Linus Torvalds developed to help manage Linux kernel development. You can download it yourself and use it for your own kernel hacking -- or for software development projects of your own. This article shows you how to get started hacking Linux with the Git tools. Basically for a distributed group development, it's a better environment than CVS or SVN.
    Is there an integration for Jdeveloper on this topic?
    Has anybody tried writing their own SCM integration, how much work is this?
    http://git.or.cz/
    I can't find anybody either Eclipse or otherwise that is using this?

    Thanks for posting this - that was a very interesting talk. I was completely in agreement with a lot of the points Linus made about branching (we branch and merge a huge amount within the JDeveloper team), although I'm less sold on the distributed nature of git. I also think that other SCM systems out there are capable of making branching really easy without necessarily being distributed.
    AFAIK, there are no Git extensions for JDeveloper. There is a version control API you can use to integrate support for version control systems, although you'll probably need some kind of Java binding to Git (or else, invoke its commands from JDeveloper which is usually slower, but supported via part of the version control API).
    Thanks,
    Brian

  • Queation for JDEV team : BC4J Next Release Date?

    JDEVELOPER TEAM
    When will be your next BC4J release date ( about fixing bugs)?
    null

    I presume you are talking about post JDev 3.2...
    The next release will be JDeveloper 9i
    and we do not have a firm date as yet.
    We are expecting production to be roughly
    mid 2001 with a Beta available a few
    months beforehand.
    As mentioned by Juan, we'd be interested to
    know what you are looking for. As we are in
    the thick of 9i development, perhaps you
    can help us focus in certain areas by giving
    us input.

  • Oracle Fusion Order Demo Application For JDeveloper error

    HI,
    i try to run the (Oracle Fusion Order Demo Application For JDeveloper) Fusion Order Demo (FOD) is an end-to-end application sample :
    when i try to : Right click build.xml and choose Run Ant Target > buildAll . error coming
    Buildfile: C:\JDeveloper\FusionOrderDemo_R2_1_revised\Infrastructure\Ant\build.xml
    init:
    [javac] Compiling 1 source file to C:\JDeveloper\FusionOrderDemo_R2_1_revised\Infrastructure\Ant\classes
    setProperties:
    createDatabase:
    refreshSchema:
    BUILD FAILED
    C:\JDeveloper\FusionOrderDemo_R2_1_revised\Infrastructure\Ant\build.xml:51: The following error occurred while executing this line:
    C:\JDeveloper\FusionOrderDemo_R2_1_revised\Infrastructure\DBSchema\build.xml:100: The following error occurred while executing this line:
    C:\JDeveloper\FusionOrderDemo_R2_1_revised\Infrastructure\DBSchema\build.xml:63: The following error occurred while executing this line:
    C:\JDeveloper\FusionOrderDemo_R2_1_revised\Infrastructure\DBSchema\build.xml:28: C:\Oracle\Middleware\jdeveloper\wlserver_10.3\server\lib not found.
    Total time: 6 seconds
    how i can run the build.xml

    Hi,
    not quite sure the question is clear. The add cart command is a link defined in the JSPX file
    <af:commandLink partialSubmit="true"
    actionListener="#{shoppingCartBean.addItemToCart}"
    id="cl3">
    that points to
    public void addItemToCart(ActionEvent evt) {
    Map attributes = evt.getComponent().getAttributes();
    invokeUpdateOp(new Integer(attributes.get( PRODUCT_ID_COL )+ ""));
    in StoreFrontModule\StorefrontUI\src\oracle\fodemo\storefront\cart\view\managed\ShoppingCartBean.java . This is where you follow up then.
    +"how i can make Repetition for the items in home.jspx"+
    I can only assume you mean how to create the catalog items. Here I suggest you look at the demo source as this is what the demo is for. If you are new to ADF, I recommend that you first run a tutorial from here
    If you are on 11g R1: http://www.oracle.com/technetwork/developer-tools/jdev/overview/index-100269.html
    If you are on 11g R2: http://docs.oracle.com/cd/E18941_01/tutorials/toc.htm
    No demo can replace proper learning, to be honest
    Frank

  • How to use mapviewer extension for jdevelop?

    I am working on the mapviewer. But my problem is that I can not connect mapviewer, or I can not start mapviewer using the embedded oc4j by jdeveloper. In mapviewer faq I read that:
    "How do I view the mapping metadata through JDeveloper's Connections Navigator?
    We have developed an Oracle JDeveloper extension that lets you browse the available list of styles, themes and basemaps defined in a datasource through JDeveloper's Connections Navigator. To do this, you will first need to download the mvconnection.jar file from OTN's MapViewer site. This jar contains the code that defines a MapViewer connection type for JDeveloper. To install, simply drop this jar file to the JDeveloper extension directory, normally $JDEV_HOME/jdev/lib/ext. Then restart JDeveloper, and you are all set.
    But when I restart jdeveloper, I got the message:
    "H:\Programme\jdev\jdev\lib\ext\mvpalette.jar!\META-INF\jdev-ext.xml
    Error: jar:file:/H:/Programme/jdev/jdev/lib/ext/mvpalette.jar!/META-INF/jdev-ext.xml<Line 105, Column 18>: XSD-2021: (Error) Element not completed: 'jsplibrary'
    H:\Programme\jdev\jdev\lib\ext\mvconnection.jar!\META-INF\jdev-ext.xml
    Error: jar:file:/H:/Programme/jdev/jdev/lib/ext/mvconnection.jar!/META-INF/jdev-ext.xml<Line 25, Column 20>: XSD-2034: (Error) Element 'description' not expected.
    Error: jar:file:/H:/Programme/jdev/jdev/lib/ext/mvconnection.jar!/META-INF/jdev-ext.xml<Line 26, Column 13>: XSD-2034: (Error) Element 'help' not expected.
    I use Jdeveloper 10g. Have you ever met the same problem?
    Thanks in advance

    The Map Viewer extension is still not available for JDeveloper 10g. It works with JDeveloper 9.
    The Mapping group is currently working on an upgrade.

Maybe you are looking for