Hi Pat,

I think you've got me confused here. I'm not actually trying to extend Form, 
I'm trying to make a component that needs to be embedded within a form.

The problem is that BaseComponent extends AbstractComponent, and adds the 
facility to parse html templates. AbstractFormComponent extends 
AbstractComponent, and adds the facility for a component to be embedded 
within a form (ie. sets form and name properties). But there is no 
BaseFormComponent extending AbstractFormComponent and adding the facility to 
parse html templates.

So if I want to create a complex component that needs to be embedded within a 
form, I either have to write all the html out manually from within 
renderComponent (in AbstractFormComponent), OR add the html parsing 
capabilities manually, OR add the FormComponent implementation to 
BaseComponent. I have actually done the latter, but it seems to beg the 
question why the framework doesn't more easily support form components with 
html templates.

regards,
Scott

>Correct me if I'm wrong, but couldn't you do: 
>
> public class PersistableEditForm extends 
>org.apache.tapestry.html.BasePage implements 
> Persistable, PageRenderListener {} 
> 
> Public class GenericEditForm extends PersistableEditForm {} 
> 
> Public class UserEditForm extends GenericEditForm {} 
> 
> ? 
> 
> I'm doing that now with my page hierarchy and it works fine for what 
> I'm doing. What problem are you running into that you aren't able to inherit 
> page classes? 
 

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

Reply via email to