Use the For and the If components. Pseudo code:

<span jwcid="@For" source="ognl:arrayOfPersons" value="ognl:person">
   <span jwcid="@If" condition="ognl:person instanceof Worker">
      <span jwcid="@Worker" ... />
   </span>
   <span jwcid="@If" condition="ognl:person instanceof NonWorker">
      <span jwcid="@NonWorker" ... />
   </span>
</span>

I hope I understood your problem well...

Regards,
Norbi

Skorpien126 wrote:
Hi Guys..
I?m let?s say a Newbie. I have a Project and i want to realize the
following:

I have a abstract class called Person extending from BaseComponent owning
some properties. Furthermore I have class Worker and Non-Worker extending
from Person and owning some properties each. I read an array from Database
including Worker and Non-Workers Objects.

I have made a new component for Workers and one for non-Worker.

In another Component I read the array. This one should entry a the
Non-worker component or the Worker-Component for each object depending on
which object i want to visualize. Is there a way realize that?!?!


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to