2 Replies Latest reply: Nov 5, 2012 9:43 PM by nancy25 RSS

    OAMessageStyledText bean returns null  value

    nancy25
      Hi,


      I created a new field of type MessageStyledText using personalization in IcxPorChoRvwPG.

      This field is under the region OADefaultDoubleColumn.

      When i try to capture the id of this field using the OAMessageStyledTextBean, the bean returns null.

      I tried the following set of statements in the page CO.

      OADefaultDoubleColumnBean hbean=(OADefaultDoubleColumnBean)webBean.findIndexedChildRecursive("HeaderRN");
      OAMessageStyledTextBean RisknoTextBean9 =
      (OAMessageStyledTextBean)hbean.findChildRecursive("riskno");


      OAMessageStyledTextBean RisknoTextBean =
      (OAMessageStyledTextBean)webBean.findChildRecursive("riskno");

      OAMessageStyledTextBean RisknoTextBean2 =
      (OAMessageStyledTextBean)webBean.findIndexedChildRecursive("riskno");

      if(RisknoTextBean9!=null)
      {
      System.out.println("Inside RisknoTextBean");
      pageContext.writeDiagnostics(this, "GECM_DISP_RISK_ASSESSMENT_NO"+riskprofileValue,1);
      RisknoTextBean.setRendered(true);
      pageContext.writeDiagnostics(this, "inside RisknoTextBean",1);
      pageContext.writeDiagnostics(this, "after rendering true GECM_DISP_RISK_ASSESSMENT_NO"+riskprofileValue,1);
      }
      else if(RisknoTextBean!=null)
      {
      System.out.println("Inside RisknoTextBean1");
      pageContext.writeDiagnostics(this, "GECM_DISP_RISK_ASSESSMENT_NO"+riskprofileValue,1);
      RisknoTextBean1.setRendered(true);
      pageContext.writeDiagnostics(this, "inside RisknoTextBean1",1);
      pageContext.writeDiagnostics(this, "after rendering true GECM_DISP_RISK_ASSESSMENT_NO"+riskprofileValue,1);
      }
      else if(RisknoTextBean2!=null)
      {
      System.out.println("Inside RisknoTextBean2");
      pageContext.writeDiagnostics(this, "GECM_DISP_RISK_ASSESSMENT_NO"+riskprofileValue,1);
      RisknoTextBean2.setRendered(true);
      pageContext.writeDiagnostics(this, "inside RisknoTextBean2",1);
      pageContext.writeDiagnostics(this, "after rendering true GECM_DISP_RISK_ASSESSMENT_NO"+riskprofileValue,1);
      }
      else
      {
      System.out.println("RisknoTextBean is null");
      pageContext.writeDiagnostics(this, "RisknoTextBean is null",1);
      }


      None of the above statements seems to work.The beans returns the null value.


      Regards,
      Carine.