3 Replies Latest reply: Apr 11, 2012 12:11 PM by Shay Shmeltzer-Oracle RSS

    pass a value managed bean to the jspx page

    854927
      Hi All,

      I'm working on adf 11g.I'm using Jdevelper 11.1.1.5 version.I'm want to pass the value from managed bean to jspx page.I have one attribute MessagePayloadId.I have need to get that corresponding attribute value of selected row and i want to pass it to jspx page.I implemented the code like this for getting the MessagePayloadId of current row.
      public class PassValueToJsp {

      public BindingContainer getBindings() {
      return BindingContext.getCurrent().getCurrentBindingsEntry();
      }

      public String PassValue() {
      BindingContainer bindings = getBindings();
      DCBindingContainer DCB = (DCBindingContainer)bindings;
      DCIteratorBinding DCI =
      DCB.findIteratorBinding("AuditLogView1Iterator");
      ViewObject voTableData = DCI.getViewObject();
      Row r = voTableData.getCurrentRow();
      Object MSGID = r.getAttribute("MessagePayloadId");
      return null;
      }
      }

      How can i pass this value to jspx page.Please helpme or if possible please give me a simple example code for this.I'm very new to adf.

      Thanks in advance!