Re: [WARNING] T5 validation

2007-03-02 Thread Terry

>  I could make this error noticable by requiring that
> all components have an explicit id in the template

I think that the approach of making the framework smart enough to provide
useful default behaviours is always a good one. If anything is lacking at
the moment, it is just documentation to show how to apply fine-grained
manual configuration when required. A perennial problem and not something
that could be expected at this point in the development in any case.

> Ah, that could be my catchphrase for Tapestry 5 Training!

Well, it was an open source comment, so feel free to take it and refactor to
fit you application...

;)

Terry
-- 
View this message in context: 
http://www.nabble.com/T5-validation-tf3323698.html#a9267798
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: [WARNING] T5 validation

2007-03-01 Thread Howard Lewis Ship

With the fresh start in T5 I've been able to make it smarter and more
adaptable, or at least, do better things by default.  But there's a
lot of limits.  I could make this error noticable by requiring that
all components have an explicit id in the template, but that would
inconvienience most users for most components, where an id really
isn't needed, or Tapestry can provide a good default id.

On 3/1/07, Terry <[EMAIL PROTECTED]> wrote:


D'oh! That's obvious now I look at it. Like most things in Tapestry, once you
have seen it once... :)


Ah, that could be my catchphrase for Tapestry 5 Training!



Thanks.


Howard Lewis Ship wrote:
>
>
> BeanEditForm is not a Form, but does own one; it includes a getForm()
> accessor.  So:
>
> @Component
> private BeanEditForm _beanEditForm;  // Case just doesn't matter to
> Tapestry!
>
>
>

--
View this message in context: 
http://www.nabble.com/T5-validation-tf3323698.html#a9252108
Sent from the Tapestry - User mailing list archive at Nabble.com.


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





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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



Re: [WARNING] T5 validation

2007-03-01 Thread Terry

D'oh! That's obvious now I look at it. Like most things in Tapestry, once you
have seen it once... :)

Thanks.


Howard Lewis Ship wrote:
> 
> 
> BeanEditForm is not a Form, but does own one; it includes a getForm()
> accessor.  So:
> 
> @Component
> private BeanEditForm _beanEditForm;  // Case just doesn't matter to
> Tapestry!
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5-validation-tf3323698.html#a9252108
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: [WARNING] T5 validation

2007-03-01 Thread Howard Lewis Ship

You didn't supply a component id, so Tapestry did; your id is
"beaneditform" (matching the type of the component, converted to lower
case).

BeanEditForm is not a Form, but does own one; it includes a getForm()
accessor.  So:

@Component
private BeanEditForm _beanEditForm;  // Case just doesn't matter to Tapestry!

_beanEditForm.getForm().recordError(" . . . ");

On 3/1/07, Terry <[EMAIL PROTECTED]> wrote:


That's what I thought, but when I tried it previously, I just got an
exception:

"Start does not contain an embedded component with id 'form'."

If I look at the source of the page that is generated without the
@Component, I see a form with id=form, so I don't know what is missing.

My page design was lifted directly from the screencast:

http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>

Start Page


Registration
Just one little form to fill in: 




(Between 4 and 8 characters)








[ refresh ]






Howard Lewis Ship wrote:
>
> @Component
> private Form _form;
>
>
> This defines the type of the component with an id of "form" as being
> an instance of the Form component. Further, you can access the form to
> record errors into it.
>
>

--
View this message in context: 
http://www.nabble.com/T5-validation-tf3323698.html#a9245715
Sent from the Tapestry - User mailing list archive at Nabble.com.


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





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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



Re: [WARNING] T5 validation

2007-03-01 Thread Terry

That's what I thought, but when I tried it previously, I just got an
exception:

"Start does not contain an embedded component with id 'form'."

If I look at the source of the page that is generated without the
@Component, I see a form with id=form, so I don't know what is missing.

My page design was lifted directly from the screencast:

http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>

Start Page


Registration
Just one little form to fill in: 




(Between 4 and 8 characters)








[ refresh ]






Howard Lewis Ship wrote:
> 
> @Component
> private Form _form;
> 
> 
> This defines the type of the component with an id of "form" as being
> an instance of the Form component. Further, you can access the form to
> record errors into it.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5-validation-tf3323698.html#a9245715
Sent from the Tapestry - User mailing list archive at Nabble.com.


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