DWR Object in Object Scenario

View: New views
1 Messages — Rating Filter:   Alert me  

DWR Object in Object Scenario

by npratyush :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi:

We have an object A which contains attributes B,C,D, Object E. I have declared a Creator for class A and a converter to class E.

Class A
  {
     String B,
     Long  C,
     String D,
     Class E
     {
          String F,
          String G
     }
   }

I am not able to get to any of the methods of the object E. This looks to me like a generic scenario which many might have experienced in their projects. I just want to display the entire object information in the JSP.

<dwr>
        <allow>
           
            <convert converter="bean" match="common.valueobjects.E">
           
            </convert>

                 <convert converter="bean" match="equip.valueobjects.A">
                   
      </convert>
       
            <create creator="new" javascript="miscAjaxAction">
             
              <include method="getInfoID"/>
              <include method="getInfoDetails"/>
            </create>
        </allow>
</dwr>

Please do help me in resolving this issue. I am able to get the values of B and C in the javascript calling the get methods on those attributes.

Thanks.
Prat