[ERROR] Login Embedded component(s) form are defined within component class
edu.usc.k12.cpanel.pages.Login, but are not present in the component
template.

Yeah, there is a small bug in the template error reporting.

<t:form> is a component of type "Form" that is assigned a default id,
and that's the same as the type name "form". This matches Form _form.

To get rid of the error use:
<t:form t:id="form">

You could use a better name than form though, like loginForm. ;-)
<t:form t:id="loginForm">

(Sorry I didn't post that earlier - I've been busy, and sick.)

if(!userExists) return new Login();

From what I gather this is the correct way to send a class? Anyhow, it
doesn't work so instead I put

if(!userExists) return "Login";

The valid return types are described here, though examples would be better:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html

new Login() is a POJO which Tapestry doesn't know what to do with.
Login.class is what you are looking for to allow safe refactoring.

Which seems to work fine, except it won't work on the Start page. For some
reason that page just serves up an empty page. However, it could be
something else I haven't figured out yet, like this problem with the other
items. If you have any thoughts on these weird inconsistencies it'd be
helpful. Thanks.

Yes, there is also a bug in redirection from the root URL.
You've done well to find these 2 bugs in such a short time. ;-)

If you really need to, you can patch bug #2 at runtime until it's fixed:
http://wiki.apache.org/tapestry/Tapestry5RootPathEmptyResponse
(A simple introduction to the power of tapestry-ioc.)

Cheers,
Nick.

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

Reply via email to