List -- detail page problem (object passing)

I have a problem in making the following work:
I have an application with spring, hibernate and JSF and want to make a simple
list with an edit link in every line. The edit link gets you to a editDetails.jsp where you can change and save details. (Simplest CRUD - app)
My list looks something like this:
<h:dataTable id="table" value="#{consoleService.participants}" var="participant">
<h:column>
  <h:outputText value="#{participant.lastName}" />
</h:column>
<h:column>
<h:commandLink action="editParticipant">
  <h:outputText value="edit" />
  <f:param name="participant" value="#{participant}" />
</h:commandLink>
</h:column>this works fine so far
In my details page I use
value="#{participant.id}"
value="#{participant.email}"and so on to acces the properties of the participant but the properties are empty
I desparately searched the the web for the last 4 hours and could not find the proper to pass objects to the next page. What is the recommended way? I have tried all different combinations without success
I have a list and want to see the details of a specific item on the next page?
Can this be done without any further java coding (I already have a consoleService.getParticipant method).
Can I pass a java object in a f:param tag?
Pleeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeease help!

<h:dataTable id="table"
value="#{consoleService.participants}"
var="participant">
<h:column>
<h:outputText value="#{participant.lastName}" />
</h:column>
<h:column>
<h:commandLink action="editParticipant">
<h:outputText value="edit" />
<f:param name="participant" value="#{participant}"
}" />
</h:commandLink>
</h:column>You cannot pass an Custom Object as a parameter.
<f:param name="participant" value="#{participant}" is not possible. Instead, pass "id" or any other key as param and access the data from the from the DataBase or whereever with the param passed.

Similar Messages

  • No Price List Line Item in Price List detail page

    Hi
    I just started with Oracle ON Demand so my question my look silly but I couldn't find solution myself and I have to ask.
    When I created Price List and Product now it is time to connect one to another. But, when I went into Price List list page, click a price list name on the Price List detail page and try to click Add in the Price List Line Item section there simply is no such thing on my page. I tried on Product Edit page but wit the same effect. Do I do something wrong or for example there have to be specific field marked or unmarked somewhere? I still work in Staging Environment maybe it is a problem?
    Please help.
    Thanks

    At this time the price list functionality is only available for partner relationship management (PRM). It is on the roadmap to provide this functionality. However, I do not have a release date at this time.

  • Master details page problem

    Dear all,
    I have problem with Master details page:
    If I change the catID after login, to other ID for other user its show me the content?!How can I restrict user to see only he’s content?!
    Please your help ASAP.
    Thanks and regards,
    FAIZ ALI

    It solved
    This is what i did:
    <%
    Dim WebsiteName
    Dim WebsiteName_cmd
    Dim WebsiteName_numRows
    Set WebsiteName_cmd = Server.CreateObject ("ADODB.Command")
    WebsiteName_cmd.ActiveConnection = MM_mybag_STRING
    WebsiteName_cmd.CommandText = "SELECT * FROM WebName WHERE WebGroupID = ? and UserID = ? ORDER BY WebNamID DESC"
    WebsiteName_cmd.Prepared = true
    WebsiteName_cmd.Parameters.Append WebsiteName_cmd.CreateParameter("param1", 5, 1, -1, WebsiteName__MMColParam1) ' adDouble
    WebsiteName_cmd.Parameters.Append WebsiteName_cmd.CreateParameter("param2", 5, 1, -1, WebsiteName__MMColParam) ' adDouble
    Set WebsiteName = WebsiteName_cmd.Execute
    WebsiteName_numRows = 0
    %>
    Thank  you

  • Master detail page problem

    hi all:
    i'm using jdeveloper10.1.2 i developed a master detail page but i need to put a button when the user click this button it will display the the detail table and by default the master table is loaded when the page is browsed and the detail table is hided how can i do it using jsp?????
    Best Regards

    Look at the 10.1.2 Help.
    Search on index for master-detail, with search title Creating a single JSP Page mast working with....

  • Passing two variables in the body of the URL using the go to detail page SB in ASP

    Hi all,
    Would appreciate your assistance with the following, I'm
    trying to set up a go to detail page sb that passes two variable in
    the body of the URL rather than the standard one.
    The code i've tried is -
    <td><A HREF="gggggggtest.asp?<%=
    Server.HTMLEncode(MM_keepNone) + ((MM_keepNone!="")?"&":"") +
    "PCL2ID=" + othermenutwo.Fields.Item("PCL2ID").Value
    %>&amp;"PCL1ID=" +
    othermenutwo.Fields.Item("PCL2PC1ID").Value
    %><%=(othermenutwo.Fields.Item("PCL2Description").Value)%></A></td>
    Where the PCL1ID and the PCL2ID are the variables
    The normal code generated by the go to detail page sb with
    one variable is -
    <td><a href="ggggggtest.asp?<%=
    Server.HTMLEncode(MM_keepNone) + ((MM_keepNone!="")?"&":"") +
    "PCL2ID=" + othermenutwo.Fields.Item("PCL2ID").Value
    %>"><%=(othermenutwo.Fields.Item("PCL2Description").Value)%></a></td>
    Unfortunatley my code tweaking isn't working as the second
    variable isn't being sent, any help would be gratefully appreciated
    Thanks

    Instead of using DW's 'go to detail page' option, simply set
    up the link the manual way in DW using the Link browser. Select the
    file you want to link to and then use the parameters button at the
    bottom of the 'Select File' dialogue to set the parameters to be
    passed with the link. You can then manually set the name of the
    parameter to be passed and then select its value from a recordset.
    The key thing is that you can set as many parameters as you like,
    so you can set both the parameters you want.
    On the detail page you then filter by the parameter name you
    chose (or both).
    Personally I always code links this way rather than using the
    go to detail page option as you get much better control of what is
    going on.

  • Timeout problem - record is not shown properly in detail page after timeout

    Hi,
    I am using JDeveloper 10.1.3.1.0.3984
    and JHeadstart 10.1.3.1 Release 10.1.3.1.26
    I have a Master View Object where there is a field ID (for example M_VO).
    There is a page associated with M_VO (Page_M_VO.jspx)
    There is a Detail View Object (for example D_VO)
    There is a page associated with D_VO (Page_D_VO.jspx)
    There is a link from M_VO to D_VO using the field ID.
    When I open the page Page_M_VO.jspx and select an ID and go to the detail page Page_D_VO.jspx, it goes to the detail page Page_D_VO.jspx. It works fine.
    But the problem is:
    If for example I have three ID (111, 222, 333), in master page if I select 222 and go to detail page it shows the appropriate records for 222 as I selected 222 in master page. If I keep the detail page open for more than the timeout minutes specified in web.xml and then try to access the detail page again it ask for userid and password (which is fine). If I put userid and password, then it shows the detail page with the first record which is the record associated with the ID 111. But before timeout I was working with the ID 222, so it should show the record associated with ID 222 as I was working with ID 222 before timeout.
    Can anybody help me to solve this problem?
    Thanks
    Syed Jabbar
    University of Windsor
    Windsor, ON, Canada

    I would put my money on the fact that since your application is timing out, it is dropping any state that your View Objects otherwise had before the application timeout.
    So upon reauthorizing and reaccessing the application (and going directly to the detail page) the View Object is reinstantiated and only knows to go to its default data set which is 111.
    If my assumption is correct, I don't think you could really implement this without a lot of trouble.

  • Refresh problem by combination of programmatic view and master-detail page

    I am using the latest versions of both ADF (10.1.3.2.0.4066) and JHeadstart (10.1.3.1.26) and I have an application with 1 page in which I have as root page a programmatic view (table-form) which I fill with request parameters.
    Under that programmatic view I have a master (table) with 3 detail pages (table).
    The programmatic view is populated with always 1 row, which goes always correct.
    The problem is occuring when iterating through the first entity based master table which contains lots of rows. Then the problem is that when you navigate through the master table the detail pages are refreshed correctly, but when you navigate back to the first row that row won't get updated.
    The next thing I tried is create a new jheadstart application with only the master-detail pages (entity based), so without the programmatic view, and then the iterating through the master table and the refresh of the child tables is working correct.
    What can be the problem here.

    Have you tested this in the ADF Business Components Browser? That's the tester that you can find by right-clicking your ADF BC Application Module and choosing Test. If you go to the View Object instance for the programmatic view, and using the ViewLinks to its children, do you get the same behavior as in the JHeadstart application?
    kind regards,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

  • How to pass mysql query id through url parameter to a detail page

    Hi there,
    I am a newbie to JSP and I am trying to pass a url parameter to a detail page so that it will query a mysql data query to show the details of that query. How can I write the query on the details page so that it will display the query results on the page. eg select * From data Where = "passed_url parameter_ value". Please i need urgent help on this please.

    <Acknowledged>
    which should be strongly cautioned against even for "newbies".
    </Acknowledged>
    Right, but the code you posted will "work" in a very harmful wayNot always, I used normal Statements last year and I had no problems.
    Even with pretty capible code brakers trying to cause $h!t with my application.
    Just check for invalid datatypes, and for SQL Injections remove stuff like ' or replace with `
    But yes PStat... are the better way.

  • Is it possible to view all record of child object in parent detail page.

    Hi All,
    Could someone please tell me how to view all records of child object in any associated parent detail page.
    For example, In opportunity detail page I want to see all lead associated with particular opportunity. As per standard setting I can be able to see only five lead records in opportunity detail page. Is it possible to view all lead on the same opportunity detail page instead of clicking on "show full list"
    Thanks in advance.
    Manish

    There is my code in labVIEW for the moment
    See attachments
    Dany
    Dany Allard
    Attachments:
    Exemple code SET.JPG ‏47 KB

  • APEX 4.0.2 Error on Master Detail Pages - 'length' is null or not an object

    Greetings,
    We just upgraded to APEX 4.0.2.00.07 this past weekend. Now a JavaScript error occurs when Master Detail pages are opened in IE 8. The error is - 'length' is null or not an object. I do not have a page item named length on any of these pages.
    The error does not occur in Chrome or Firefox, but the Add button on the detail portion of the page simply doesn't work.
    The page works when creating the master portion of the page. After the master row is created the region to add detail rows appears and the error occurs. So, the error appears to be with that part of the page.
    We use an Inactive Date column to soft delete rows in the detail portion of the page, so the detail regions have a date column, just in case this column is the problem.
    Does anyone have an idea what the problem might be?
    Thanks, Tony

    I too had this same problem and determined that the problem was due to a missing underscore character between the literal "report" and the report Id in the report template.
    I guess some themes include this underscore and some don't.
    I had to debug the apex_4.0.js to determine this - not easy as it's not nicely formatted.
    It only seems to stop Pagination working in an Updatable Tabular Form Report.
    Edit the Report Template. Go to the "Before Rows" region and edit the Before Rows text box. Locate where it defines the report id and insert an underscore between report#REGION_ID#
    Previous
    &lt;div id="report#REGION_ID#"&gt;
    Fixed
    &lt;div id="report_#REGION_ID#"&gt;

  • Hide inactive contacts related list under Account detail page

    Hi
    We have inactive contacts related list under Account detail page. User want to hide inactive contacts and display only Active contacts under account detail page. Is there anyway we can hide these contacts.
    Sundar

    Sundar, you could create two web applets under the account object and create a report active contacts and another report for inactive contacts. If you do this then hide the standard contacts related section.

  • Best way to make a object details page

    I have a dataTable, built with a sessionBean List. We have to make a link "show detail" in each row, and redirect to a new jsp showing selected row object details.
    Whats the best way to retrive the object selected?
    a commandLink with param (haschcode value) and search in list isn`t possible because is a sessionBean..
    I have some ideas but not with JSF....
    thanks

    1) Bind h:dataTable to an UIData property in main backing bean.
    2) Add a h:commandButton or h:commandLink to a column and bind it with an action method in main backing bean.
    3) In the main backing bean action method simply retrieve the row object byRowObject selectedRowObject = (RowObject) uiDataProperty.getRowData();and navigate to some display details page.
    4) In the display details page just access the data by #{mainManagedBean.selectedRowObject.someProperty} and so on.
    Detailed examples can be found here: [http://balusc.blogspot.com/2006/06/using-datatables.html].

  • Problem when passing non English text to another amx page

    Hi,
    I'm using JDeveloper version 11.1.2.3.0 under windows 7, to deployed ADF Mobile application into android device,
    when i used the application to pass 3 input text value to another page (or object)
    i note that if passed the 3 text without any English character (means just Arabic,Urdo,Farsi ...)
    the next page will received only the last text and the others will be null
    that means the other texts Value Change Listener dose not work, they will work just in one case if i used English
    or any other special Character (Space bar, Back Space ...) in order to invoke that action
    Any help plz
    Note:- when i deploy it to iPhone device it is work fine
    Edited by: user2397713 on Jun 5, 2013 3:11 PM

    Hi,
    do you have a test case and instructions for me to try and run. Just create a simple page-to-page use case and send it in a ZIP file (renamed to ZIP) for me to test on 11.1.2.4 and file a bug if required. If you have a support contract, you can file a service request with support. My mail addres sis in my OTN profile, just click my name link.
    Frank

  • How & where to use Java script to create new button in object detail page

    Hi All,
    I want to create "New/Add button" in object detail page. If i am not wrong i need to use java script for that but could you please let me know how & where to use Java script to create new button in object detail page in CRMOD.
    Thanks in advance.
    Regards,
    Manish

    Any related object on the detail page should have an "Add" or "New" or both buttons by default - This is vanilla functionality and will do the required action.
    If you want to modify this behaviour and do something tricky you will potentially have to go for javascript. You should add the javascript on a custom web tab on that Object.
    Admin --> Application Customization --> Contact -->Contact Web Applet
    Now, add your javascript in the code area, after you select the type = HTML for this web applet, expose this web applet on the Contact detail layout and your javascript will be invoked whenever this page is loaded.
    Check this online document to see how javascript can be embedded in CRM on Demand http://helponmyproject.com/TTOCOD/
    Cheers!
    Royston

  • Memory leak problem while passing Object to stored procedure from C++ code

    Hi,
    I am facing memory leak problem while passing object to oracle stored procedure from C++ code.Here I am writing brief description of the code :
    1) created objects in oracle with the help of "create or replace type as objects"
    2) generated C++ classes corresponding to oracle objects with the help of OTT utility.
    3) Instantiating classes in C++ code and assigning values.
    4) calling oracle stored procedure and setting object in statement with the help of setObject function.
    5) deleted objects.
    this is all I am doing ,and getting memory leak , if you need the sample code then please write your e-mail id , so that I can attach files in reply.
    TIA
    Jagendra

    just to correct my previous reply , adding delete statement
    Hi,
    I am using oracle 10.2.0.1 and compiling the code with Sun Studio 11, following is the brief dicription of my code :
    1) create oracle object :
    create or replace type TEST_OBJECT as object
    ( field1 number(10),
    field2 number(10),
    field3 number(10) )
    2) create table :
    create table TEST_TABLE (
    f1 number(10),f2 number (10),f3 number (10))
    3) create procedure :
    CREATE OR REPLACE PROCEDURE testProc
    data IN test_object)
    IS
    BEGIN
    insert into TEST_TABLE( f1,f2,f3) values ( data.field1,data.field2,data.field3);
    commit;
    end;
    4) generate C++ classes along with map file for database object TEST_OBJECT by using Oracle OTT Utility
    5) C++ code :
    // include OTT generate files here and other required header files
    int main()
    int x = 0;
    int y = 0;
    int z =0;
    Environment *env = Environment::createEnvironment(Environment::DEFAULT);
    Connection* const pConn =
    env->createConnection"stmprf","stmprf","spwtrgt3nms");
    const string sqlStmt("BEGIN testProc(:1) END;");
    Statement * pStmt = pConn->createStatement(sqlStmt);
    while(1)
    TEST_OBJECT* pObj = new TEST_OBJECT();
    pObj->field1 = x++;
    pObj->field2 = y++;
    pObj->field3 = z++;
    pStmt->setObject(1,pObj);
    pStmt->executeUpdate();
    pConn->commit();
    delete pObj;
    }

Maybe you are looking for

  • Crippled software or malfunctioning hardware...ipod mystery still unsolved

    My last post was removed so here is the recap: I have a 15gb "older" ipod that since the latest round of software updates no longer mounts or is recognized by my mac (or anyone elses for that matter). In trying to determine whether the problem is har

  • Can't connect my camera to computer

    Hi! I try to capture video from my old SONY DCR-PC100E camera to my Mac with Adope Premiere, wich recognize this model, but there's no connexion between the camera and the computer. Both devices are connected with a miniFirewire - Firewire 800 cable.

  • GUI in Java

    I ever learn Java before JDK 1.4, but to make application GUI in Java is so complicated. So i never learn Java to make application GUI again. Now There is JDK 1.6, is it more easy to make GUI in Java now ? I hope i can make GUI in Java likes VB6 or V

  • System Crash after updating Boot Camp beta 1.3 to 1.4

    After dowloading the latest BootCamp version 1.4, I double clicked on the icon and the Installation started. I have an option to upgrade the BootCamp currently installed in my system which is version 1.3. And so I clicked on the "Upgrade" button, I w

  • Click to Call not showing in Chrome Extensions

    Hi Guys I have downloaded and installed skype but the extension is not showing in chrome. I uninstalled and reinstalled and still not working. I have windows 8.1 but am not using the metro tiles, just skype for desktop. James JAMES MATHERS LICENCED P