Jdev 11g, Passing data between pages using data control

Hi,
I'm fairly new to Jdev, J2EE, and ADF. I created a project using the tutorial "Build a Web Application with JDeveloper 11g Using EJB, JPA, and JavaServer Faces" (found here: http://www.oracle.com/technology/obe/obe11jdev/11/ejb/ejb.html).
Data model part seems to work fine. I am able to connect to the database and print out a record using the sample client.
Now I'm trying to build the web front end for it. I started using a data control and ADF to make the components. I built a search page by dragging and dropping my method from the data control onto a form. I set the action on the form to go to a detail page which I put a database node from my table product_group. My thinking was the user would put in the id and then be taken to the next page that has the detail on it.
When I ran the page though the search page seemed to execute fine but the detail page came up blank. There were no runtime errors. I think data is not being passed to the next page.
This is the code for the form on the search page:
<af:form>
<af:panelFormLayout>
<af:inputText value="#{bindings.p_id.inputValue}"
label="#{bindings.p_id.hints.label}"
required="#{bindings.p_id.hints.mandatory}"
columns="#{bindings.p_id.hints.displayWidth}"
maximumLength="#{bindings.p_id.hints.precision}"
shortDesc="#{bindings.p_id.hints.tooltip}">
<f:validator binding="#{bindings.p_id.validator}"/>
<af:convertNumber type="number"/>
</af:inputText>
<af:commandButton actionListener="#{bindings.queryProdGroupFindByID.execute}"
text="Search ID"
disabled="#{!bindings.queryProdGrouptestFindByID.enabled}"
action="search"/>
</af:panelFormLayout>
</af:form>
This is the detail page:
<af:form>
<af:panelFormLayout>
<af:panelLabelAndMessage label="#{bindings.description.hints.label}">
<af:outputText value="#{bindings.description.inputValue}"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="#{bindings.id.hints.label}">
<af:outputText value="#{bindings.id.inputValue}">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.id.format}"/>
</af:outputText>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="#{bindings.status.hints.label}">
<af:outputText value="#{bindings.status.inputValue}"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="#{bindings.storeId.hints.label}">
<af:outputText value="#{bindings.storeId.inputValue}"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="#{bindings.type.hints.label}">
<af:outputText value="#{bindings.type.inputValue}">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.type.format}"/>
</af:outputText>
</af:panelLabelAndMessage>
</af:panelFormLayout>
</af:form>
I guess what I'm asking is how does data get passed to the detail page using a data control? Also if anyone has an online book about data controls and how they work I'd appreciate that too. Too much magic going on.
Thanks in advance.
Edited by: user2936931 on May 3, 2009 5:15 PM

I went to the bindings tab for my search.jspx page and found in the 'executables' table queryProdGroupFindByIDIterator. I looked in the properties for that and 'CacheResults' is set to '<default>true'. Next page still looks blank. I changed it to straight up 'true' and that didn't work either.
If I'm in the right place I guess it must be something else?

Similar Messages

  • Pass parametrs between pages

    Hi,
    how can I pass parameters between pages, WITHOUT using a Session bean?
    I mean: I need to use a Link Action component to pass control to another page (using the page navigation feature) and, along with the request, also pass the Id of the clicked image.
    Can I do this using a JSF/Creator feature?
    (without using a link like "NextPage.jsp?id=234")
    thanks a lot

    Runak,
    I have a question about this. On the faqs link you supplied there is a document:
    How can I pass data between pages without creating SessionBean variables in Creator?
    I have this problem a lot:
    Now if a variable is passed to Page2 from Page1 that is fine but as soon as you press a button or other. That variable is gone when the constructor is loaded again.
    What work around would you suggest?, passing a varable from Page2 to Page2 dosen't seem to work.
    I use Hidden Fields, but surely theres a better way.
    Regards
    Jonathan

  • How to pass values between pages?

    Hi
    Anybody know how you pass values like ids between pages using buttons?
    Cheers
    dan
    Message was edited by:
    user551484

    Hi
    Why do you want to do this? You can access values from other pages so if you are on page 2 and there is an item on page 1 called P1_ID you can simply assign it to an item on page 2 by typing in P1_ID in the source value for your page 2 item.
    Or you could reference it direct in your pl/sql process by typing &P1_ID. (note the fullstop)
    If you did want to pass a value using a button you can do so by clicking on the button name in then scroll down to the section called optional URL redirect.
    set target is a - to page in this application
    then select the page you want the button to send you to
    then click the flashlight icon next to set these items
    you can then select the page item you want to send the value to and the page item you are getting the value from.
    Danny
    Message was edited by:
    Danny Roach

  • Use context to pass value between JPF and Java Control

    hi,
    Can we use context to pass value between JPF and Java Control? It works if i m using InitialContext in the same machine but i dun think it will works if i put Web server and application server in different machine. Anyone have an idea how to do it?
    I also want to get the method name in the onAcquire callback method. Anyone knows how to do this?
    thks
    ?:|

    Hi.
    Yoy can the next options for make this:
    1. Pass your values in http request.
    example: http://localhost/index.jsp?var1=value1&var2=value2&var3....
    2. You can use a no visible frame (of height or width 0) and keep your variables and values there using Javascript, but of this form, single you will be able to check the values in the part client, not in the server. Of this form, the values of vars are not visible from the user in the navigation bar.
    Greeting.

  • Indesign cs6 menu and tool bar disappear between windows using mission control in mountain lion

    heres 2  screen grabs before and after. while navigating between 'spaces' using mission control in mountain lion. issue -  the menu and tools bars disappear - not all of them just parts of them. to get back i hit 'tab' button twice which hides and shows tools. very annoying - does anyone know of a fix or is this another bug which i have to live with. im using a macpro june 2012/running 10.8.4 and 2 screens - left for artboard - right for all tool windows.

    thanks steve - yes that works as does using the tab key - all well....until i move to another 'space' and then come back again.
    for example: my setup is like this - no2 space has indesign project. no3 space has photoshop. so im working on a page within indesign and i need to edit an image- i double click the pic and it opens in photoshop on the other 'space' save the file and go back to indesign to update pic and find menu/tools all over the place - so hit tab twice back to normal -  until i 'move' out of that space into another - photoshop/ mail/ whatever - as i toggle between spaces the indesign menu will always be 'corrupt' for a better word. hope that makes sense.

  • Pass aprameters between pages

    Hi,
    I have HTML DB form calling a complicated report (in Oracle reports).
    Oracle reports takes in about 50 parameters.
    Each parameter is represented in the form by a list manager or a select list.
    I want to design the form in such a way that the items are spread among different tabs/pages on the form and finally call Oracle report for all these parameters passed through different pages.
    Could any one help me figure this out? Thanks,

    &gt; I have multiple select as one of the item in page 1. In which case,
    &gt; these values are stored in the database.
    Well, if they are on an HTML DB page, as a result from a DML or SELECT operation, then you can reference their value in HTML DB.
    &gt; Then, I can't pass these parameters directly between pages,
    &gt; right? Is querying directly from the database the only option?
    I'm a little confused here, as I think you may be overcomplicating how HTML DB works a bit.. An HTML DB item can have a number of different sources - one of which is from a database column. If you are intending on updating previously committed data, then you would need some sort of process to fetch the data into the HTML DB items.
    If you are using this as a "wizard", and want the user to select 100 different options then commit, you don't need to directly commit your transaction until the user clicks on the "save" button. Every item's value is automatically stored in session state by HTML DB; that's what you can reference from any other page.
    Hope this helps,
    - Scott -

  • Pass values between pages

    Hello experts!
    I am trying to pass value between two pages without page submit.
    I set item value from first page to session state by dynamic action. Then I am trying to pass this value to second page, I use button which redirects to second page and sets item value on second page with value from first page.
    But approach this does not woks as I expected. The value from the first page is not passed to the second page when I click on button. Value is passed to the second page only if I:
    1. set some value to item on first page (e.g. XX);
    2. click on button which redirects to the second page;
    3. get back to first page;
    4. set some new value to the item (e.g. YY);
    5. click on button;
    6. then the first value from session state is passed to sthe econd page (value XX)
    Could anybody tell me where I make a mistake, or what is wrong in my solution?
    Test appl.
    www.apex.oracle.com
    http://apex.oracle.com/pls/apex/f?p=9027:LOGIN_DESKTOP:6946284921064
    workspace: kurintest
    username: [email protected]
    passwd: kurintest
    appl: 9027 pass_value
    Thanks in advance!
    Jiri

    Jiri N. wrote:
    Hello experts!
    I am trying to pass value between two pages without page submit.
    I set item value from first page to session state by dynamic action. Then I am trying to pass this value to second page, I use button which redirects to second page and sets item value on second page with value from first page.
    But approach this does not woks as I expected. The value from the first page is not passed to the second page when I click on button. Value is passed to the second page only if I:
    1. set some value to item on first page (e.g. XX);
    2. click on button which redirects to the second page;
    3. get back to first page;
    4. set some new value to the item (e.g. YY);
    5. click on button;
    6. then the first value from session state is passed to sthe econd page (value XX)
    Could anybody tell me where I make a mistake, or what is wrong in my solution?A redirect button and it's target URL&mdash;including items to be set and their values&mdash;are rendered on page show, in this case before <tt>P2_ITEM1</tt> has a value. Look at the page source when the page is first rendered:
    <input type="button" value="Button1"onclick="apex.navigation.redirect(&#x27;f?p=9027:3:11397156385140::NO:RP,3:P3_ITEM1:&#x27;);" id="P2_BUTTON1"  />No value substituted for <tt>&P2_ITEM1.</tt> in the URL.
    Why do you want to navigate between these pages without a page submit? As APEX has to render page 3 anyway, why not submit and branch?

  • The function javascript:doSubmit not passing variables between pages

    Hi,
    I have an report that has a link to another page, and I'm trying to pass 2 variables. If I use a target URL as such the variables do not get passed, but if I use a page target and explicitly add the item name and values it works fine. Here is the call I'm using to javascript:doSubmit:
    javascript:doSubmit('f?p=&APP_ID.:32:&SESSION.::&DEBUG.:32, CIR:P32_PROJ_ID,P32_DID:#AWARD_NUMBER#,#ID_PROVIDED#');
    Does anyone have any insights?
    Thanks,
    Joe

    You can't use doSubmit to pass variables; it will only submit your page with the request you passed in.  All normal page processing and branching will be followed..  Why are you using doSubmit?  Just put the URL in the URL field.
    f?p=&APP_ID.:32:&SESSION.::&DEBUG.:32, CIR:P32_PROJ_ID,P32_DID:#AWARD_NUMBER#,#ID_PROVIDED#

  • Changing  between pages using jsr286 events.

    Hello,
    I am trying to implement inter portlet communication between 2 portlets which reside on 2 different pages using JSR 286 implementation.
    I added supported-publishing-event and supported-processing-event in portlet.xml and able to fire the event from portlet A and able to handle the event in portlet B. However I am unable to navigate to page where portlet b resides. After handling the event, portal still displays the portlet A page.
    How do I tell portal container to switch page while processing event?
    Any help appreciated.

    Hello,
    There is no "standard" mechanism for doing this from JSR286 portlets-- the JSR286 specification doesn't deal with the concept of portlets on other pages, or how to switch pages.
    However, WebLogic Portal has a mechanism for doing exactly what you want to do. You'll need to create a file in your webapp with a ".portlet" extension, which looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <portal:root xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0" xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
        <netuix:javaPortlet definitionLabel="portletNameFromPortletXml" title="sample portlet">
            <netuix:handleCustomEvent qname="{event.namespace}eventLocalPart">
                <netuix:activatePage/>
            </netuix:handleCustomEvent>
        </netuix:javaPortlet>
    </portal:root>The "portletNameFromPortletXml" is the portlet-name as declared in your WEB-INF/portlet.xml file, and is used to tie this .portlet file to the particular portlet in portlet.xml that you want to extend.
    The "{event.namespace}eventLocalPart" is the fully-qualified JSR286 event name, expressed in Java QName notation (with the namespace in {}, followed by the local part).
    The "activatePage" XML tag is used to tell WLP that when this portlet receives this event, automatically make the page that the (receiving) portlet is on the visible page. You don't have to have any code in the portlet to even handle this event-- any time it is sent, the page the portlet is on will automatically be made visible.
    Kevin

  • Pass parameters between forms using a menu

    I use a menu to switch forms. However, I have problems to pass paramenters between the froms.
    Any suggestions ? Thanks.

    There are 2 means:
    1. The most simple to code is to use global vars. Still, you may get into some trouble managing them (erasing them when you no longer need them).
    2. Use parameter lists. RTM about that. It's a bit complicated, but feisable, allowing to pass params whe using open_form or run_product (run_report).
    One more thing: when referencing forms items from menu code you have to use name_in(), and for assigning values to form-items using menu code you have to use copy().
    null

  • How do I transition between pages using something other than a white screen

    When the site first pulls up (I see this in Safari intermittently but not Firefox) the background is white (outside the page). After switching between pages it goes back to black. Can I have it use any other color besides white? How do I do this?
    Also, when trying to pull up in Internet Explorer, there are numerous problems loading. How do I optimize for this browser?
    dancingdogtreasures.com

    Roddy has some tips at his iWeb for Musicians site: How to get your iWeb Site to load in Internet Explorer.
    Using an optimizing application like Web Site Maestro can greatly reduce the "weight" of a site's pages to facilitate faster loading. I use it event thought my sites are geared for Mac users and it greatly reduces the size of the files in the site.

  • Moving Between Apps Using Mission Control

    Hello,
    Does anyone know of way that I can quickly move between apps using the arrow keys and Mission Control?  For example, in Snow Leopard if I use Mission Control (F3) I could easily move between all of my apps and/or multiple instances of an app by using the arrow keys. 
    In Lion if use Mission Control the apps come up but I have to actually click on the one the app that I want to bring up.
    Thanks,
    Brian

    I use the three finger swipe:
    The three finger swipe works in Mission Control too. There are lots of ways to accomplish this.
    ⌘ Tab works for all open apps, including those that are "minimized".

  • Passing parameter between pages

    Hi all,
    I have a project which has two pages, and those pages act like master-detail. The master-like page is a read-only form with navigation buttons. The user navigates the records and when the user finds the record, s/he clicks the submit button, which opens a dialog window with an editable form displaying the record.
    I wonder how I can set cursor on the record and display it on the opening page.
    Thanks in advance.

    Hi,
    when you open a separate dialog then - in ADF Faces you use the dialog framework. Ypu can use the launch listener on the button that you use to launch the dialog to pass information to the dialog
    See "19.3.1.5 Passing a Value into a Dialog" of http://download-uk.oracle.com/docs/html/B25947_01/web_complex003.htm#CEGDHIGB
    Frank

  • Browsing short cut between pages using the digital clock at top of screen?

    Hi,
    Has anyone seen this new tip that's come out. Apparantly, if you want to look at a previous page during browsing in Safari, you can just touch the clock at the top of the screen and it moves to the previous page.
    I've tried this and it doesn't seem to work,
    Any ideas anyone?
    Thanks
    adam

    I have never heard of that tip or read about it.
    The only thing about the top of the screen (status bar) is that you can tap it to scroll back to the TOP of the page. Works in many apps (but not all 3rd party ones).

  • Can't drag folders or files between apps using mission control

    I've been using Lion without any incident so far, but now that I've downloaded the lastest update (10.7.2) I can't drag a file or folder using mouse click (or my wacom tablet) between apps or folders - gestures simply will not work.
    Once I click on a file, the multi-touchpad stop responding - if this is for real, Mac just lost it's allure... the nimble feature of exposé and/or mission control was this sole ability to navigate through apps and draggin files.
    What's the status, anyone got this issue already?

    I've been encountering the exact same problem! that was my favourite multi-touch gesture of all, which improved the productivity greatly. The only workaround for me is to assign hot-corners to mission control and drag files i want to the corners, but I really hope there's an explanation for this because i would really like that feature to be back

Maybe you are looking for

  • How do I change my apple id associated with my ipod

    my son just got an ipod, trying to set it up.

  • Is there a blu-ray writer that works for the mac

    Is there a blu-ray writer that works for the iMac?

  • Great start.

    Thanks for the great work. As a long time user of Quark, InDesign, Photoshop, Illustrator and Acrobat; here are a few notes and comments on Catalyst after using it for about a week. Don't forget that many if not most of the communication media "publi

  • I can't update to iOS 7.0.2 on my iPhone 4S.

    I really don't know what's up with my phone. When I updated to iOS 7 I didn't get all of the new ringtones (and perhaps I'm missing other features as well). Coinsidentally, I don't have the passlock problem with my phone that was all over the news an

  • Adobe X (10.0) Scan/Print Issue (Possible OCR Issue?)

    Hello all, After the Marine Corps mandated upgrading from 8.x to 10.0, we've had some issue with scan documents not printing correctly. Documents appears to scan normally, just as before, however when we print them- they print with all the text block