Hello everybody,
 
I have now migrated my Tapestry 5.3 application to Tapestry 5.5, which is now 
final. Thanks a lot, it makes me feel much more confident about the future 
applicability of Tapestry.
 
One remaining issue: it seems to me like the <t:errors> component does not work 
anymore. 
 
I can record anything I want by means of form.recordError(), but it does not 
get displayed anymore. At first I thought it could be a client side validation 
or CSS/bootstrap issue, but now I think, there must be server side cause?
 
<html ...>
    <t:form t:id="loginForm" validate="this">
>>>        <t:errors/>
                <div class="table">
                    <div class="tr">
                        <div class="td">Benutzername:</div>
                        <div class="td"><t:textfield t:id="username"/></div>
                    </div>
                    <div class="tr">
                        <div class="td">Kennwort:</div>
                        <div class="td"><t:passwordfield t:id="password"/></div>
                    </div>
                </div>
        <p/>
        <t:submit t:id="login" t:event="login" value="Anmelden" class="button"/>
    </t:form>
</html>
 

public class Index extends BasePage {
 
    @Property
    @NotNull
    private String username;
    @Property
    @NotNull
    private String password;
    @Inject
    private LocalLoginService loginService;
    @InjectPage
    private Menu indexPage;
    @SessionState
    private UserData user;
    @Component
    private Form loginForm;
    Object onLogin() {
        Session session = loginService.login(username, password);
        if (session == null) { // authentication failed
>>>            loginForm.recordError("Die verwendeten Anmeldedaten sind 
>>>ungültig.");
            return this;
        }
        user.setPrincipal(session.getPrincipal());
        user.setRealname(session.getRealname());
        return indexPage;
    }
}
 
This worked perfectly in T5.3, but not in T5.5.
 
Any ideas?
Lothar

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to