You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Martin DeMello <ma...@yahoo.com> on 2003/12/17 09:37:38 UTC

subclassing a templated component

Is there any way to subclass a component and somehow inherit its .jwc and .html
parts?  I'm trying to write a table with persistent checkboxes, like the Locale
example in the workbench (whose code I based it on), the problem being that the
Cayenne DataObjects I'm using to generate the rows don't hash cleanly (i.e. I
can't use them in a HashSet). So what I want to do is:

abstract class TableList extends BaseComponent
{
  abstract rowHashKey(Object currentRow);
}

and 

abstract class CayenneTableList extends TableList
{
   public rowHashKey {...}
}

and since I'm only subclassing to add a single method, I want to keep the jwc
and html with the TableList and inherit them in the subclass.

martin

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org