This discussion is archived
2 Replies Latest reply: Feb 1, 2013 4:44 AM by nbyrne76 RSS

RichShowDetailItem setID not working

nbyrne76 Newbie
Currently Being Moderated
Hi I have a problem with the following code in my backing_bean. Groups is a result set. The problem I am having is that the setId line does not update the property on the dynamic RichShowDetailItem(newDetailItem). I have created other dynamic components in this way and the setID method works for all except the RichShowDetailItem. can anyone see anything wrong? Thanks

while (groups.next()){
newDetailItem = new RichShowDetailItem();
newDetailItem.setText(groups.getString(2));
String myString = groups.getString(1);
newDetailItem.setId("sdi"+groups.getString(1));
myString=groups.getString(1);
newDetailItem.setStretchChildren("first");
paProgramsReports.getChildren().add(newDetailItem);
newPanel = new RichPanelGroupLayout();
newPanel.setLayout("scroll");
newPanel.setId("pnl"+groups.getString(1));
newDetailItem.getChildren().add(newPanel);
AdfFacesContext.getCurrentInstance().addPartialTarget(newDetailItem);
AdfFacesContext.getCurrentInstance().addPartialTarget(paProgramsReports);
AdfFacesContext.getCurrentInstance().addPartialTarget(newPanel);
}

Edited by: user1074734 on Feb 1, 2013 3:57 AM
  • 1. Re: RichShowDetailItem setID not working
    Timo Hahn Oracle ACE
    Currently Being Moderated
    Which jdev version do you use?
    What exactly do you mean by 'do not work'?

    Timo
  • 2. Re: RichShowDetailItem setID not working
    nbyrne76 Newbie
    Currently Being Moderated
    Hi

    Using JDEV 11.1.2.3.0

    What I am doing is checking the id value of the object before and after the setID method and finding that it does not change from null. Using the intelisense popup when hovering the mouse over the newDetailItem object


    I have also looked at showdetailitems that have been placed on the page through the designer - when i check these objects at runtime the _id is null also even though the id is set on the jsf source

    <af:showDetailItem text="showDetailItem 1" id="sdi1"
    binding="#{backingBeanScope.backing_main.sdi1}"/>

    thanks

    Edited by: user1074734 on Feb 1, 2013 4:42 AM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points