You can also subclass your portlet and make the "type" static for each
subclass.  Then name each portlet accordingly.  E.g.:

Portlet Name
PersonListedByFather
PersonListedByMother
PersonListedByFamilyName
...

Instead of
Person (type="byFather")
Person (type="byMother")
Person (type="byFamilyName")
...

If you encapsulated your code well, taking that approach would be fairly
trivial as a overloaded "getType()" call could be one of the only
methods in each of the subclasses.  In this case, this approach seems
more favorable to me than trying to create some clever way of storing
your own parameters.

HTH.

Dave

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.4/66 - Release Date: 8/9/2005
 


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

Reply via email to