<form t:id="myform" ...>

and

@Component
private BeanEditForm myForm;


If you use <t:form> in the element, that implicitly defines the type there,
causing a conflict.  In you example, you likely used two different ids (one
specified in the template, on in your class), thus the error message.

On 9/2/07, Robin Helgelin <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a page which uses a BeanEditForm. On validation success I do
> another few validations that can't be done with current validation.
> However, I don't see an obvious way to report an error on a specific
> input field.
>
> I've tried
>     @Component(id = "BeanEditForm")
>     private BeanEditForm form;
> and
>     form.recordError("Passwords doesn't match.");
>
> which gives me an error, but on the same time tapestry gives me this:
> [ERROR] Register Embedded component(s) BeanEditForm are defined within
> component class nu.localhost.anopo.components.Register, but are not
> present in the component template.
>
> so this can't be the right way either, any ideas?
>
> --
>         regards,
>         Robin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Howard M. Lewis Ship
Partner and Senior Architect at Feature50

Creator Apache Tapestry and Apache HiveMind

Reply via email to