Most likely what happened is that you never declared that component
'form' was of type Form.

This may change in the future, but Tapestry doesn't have a mapping
from "<form>" to Form.  I may add this.

Since you never specified a type, but you did specify a t:id, Tapestry
assumed that you wanted an Any component.  But Any component doesn't
provide the necessary FormSupport service to the TextFields & etc.
contained within.

The only problem with the error message is it doesn't explain why
FormSupport is necessary or who would provide it (it's the generic
message for this case). A more specific message, as in, "You need to
enclose this in a Form component" would be nice.

T4 would have died with a "you didn't specify a type for component
'form'" type of error. This is the problem with being more lenient,
sometimes you don't quite get what you expect (when Tapestry "makes a
guess").

On 2/14/07, Dave Kallstrom <[EMAIL PROTECTED]> wrote:
I hope this user list is ready for tap5 questions if not please disregard.
I am working on my first tap5 hello world page and am having a little
trouble with form submission.
I copied the code right of the tap5 page and I am getting the following
error.

"No object of type org.apache.tapestry.services.FormSupport is available
from the Environment. Available types are org.apache.tapestry.MarkupWriter,
org.apache.tapestry.ValidationDecorator, org.apache.tapestry.dom.Document,
org.apache.tapestry.services.Heartbeat,
org.apache.tapestry.services.PageRenderSupport."

I am assuming I need to provide PageRenderSupport but could not find
documentation on how to do so.

Any help would be appreciated.

--
Dave Kallstrom



--
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]

Reply via email to