Hi Frank,

Frank Hamilton schrieb:
Thanks Andreas, but I need use a list in usecase parameter, to not destroy
it when I call advance().

<component-instance name="modprueba" logger="lenya.usecase.modPrueba"
      class="org.apache.lenya.cms.modPrueba.ModPrueba">
<view uri="modules/modPrueba/usecases/modPrueba.jx" menu="true"/>
      <parameter name="usecaseParam" value=""/> ---> this I need a list.

</component-instance>

In this case I'd recommend you to extend the configure() method in your usecase handler class. There you can read arbitrary markup from the configuration, e.g.

<component-instance name="modprueba" logger="lenya.usecase.modPrueba"
      class="org.apache.lenya.cms.modPrueba.ModPrueba">

  <view uri="modules/modPrueba/usecases/modPrueba.jx" menu="true"/>
  <parameter name="usecaseParam" value=""/> ---> this I need a list.
  <myListName>
    <entry>foo</entry>
    <entry>bar</entry>
    …
  </myListName>
</component-instance>


HTH,

-- Andreas



--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to