1 Reply Latest reply: Dec 3, 2012 2:28 AM by Frank Nimphius-Oracle RSS

    List of POJO returned from ApplModuleImpl does not seem to work

    JeroenDirks
      JDev 11.1.1.5.0

      I have a simple POJO Bean SolveInfo that contains some public getters for properties.

      Then I have a method in the application module that returns a list of SolveInfo objects:

      public class AppModuleImpl extends ApplicationModuleImpl implements AppModule {
      ...

      public List<SolveInfo> viewSolves() {
      ...
      }

      ...
      }

      in AppModule.xml

      <ClientInterface>
      <Method
      Name="viewSolves">
      <Return
      Type="java.util.List"
      IsGeneric="true">
      <Element
      Type="test.SolveInfo"/>
      </Return>
      </Method>
      </ClientInterface>

      Now in the 'Data Controls' window I see this method as:
      viewSolves()
      - return
      - element
      + Operations

      It only sees this as a generic element.
      If I try to drag this 'element' to a jsf page I can only make a table with 'element' as columns not the POJO attributes.

      The strange thing is that if I click on AppModuleImpl.java and do "Create Data Control" if will create a data control that does have a viewSolves method that returns a list of SovleInfo objects that is usable, but when I use that it is not running from the real application module and it does not have a valid DB connection.

      Are there some other restrictions on what can be returned from a method specified in AppModule.xml?