Yep, im using 5.4-alpha-24 and with bootstrap it looks a lot nicer. Now
I have a strange problem with my password repeat field. I always get the
error:
org.apache.tapestry5.ioc.internal.OperationException
Render queue error in BeginRender[user/Register:passwordrepeat]:
Parameter 'translate' of component user/Register:passwordrepeat is bound
to null. This parameter is not allowed to be null.
[controller snippet]
@InjectComponent
private PasswordField passwordRepeat;
@Component
private Form registerAccount;
public PasswordField getPasswordRepeat() {
return passwordRepeat;
}
void onValidateFromRegisterAccount() {
if (!user.password.equals(passwordRepeat)) {
registerAccount.recordError(passwordRepeat, "Please enter
the same password in both password fields.");
}
}
[/controller snippet]
and my tml:
<t:form class="form-horizontal" t:id="registerAccount">
<t:errors />
<t:beaneditor object="user"
reorder="firstName,lastName,email,phoneNumber,password">
<p:password>
<div class="form-group">
<t:label for="password" class="col-sm-2 control-label" />
<div class="col-sm-6">
<t:passwordfield t:id="password" value="user.password"
class="form-control" />
</div>
</div>
</p:password>
</t:beaneditor>
<div class="form-group">
<t:label for="passwordRepeat" class="col-sm-2 control-label" />
<div class="col-sm-6">
<t:passwordfield t:id="passwordRepeat" class="form-control" />
</div>
</div>
<div class="btn-toolbar">
<div class="btn-group">
<input class="btn btn-primary" type="submit" value="Create
Account" />
</div>
</div>
</t:form>
Well, it looks like that a 'translate' property of the password repeater
field is missing. But I have no idea why.
Thanks in advance
Matthias
ps.
It's a bit confusing when using @Component or @InjectComponent, also its
confusing when to add a "value" attribute to the t:* object an when not.
Maybe i will figure this out in future :)
On 11/06/13 23:00, Thiago H de Paula Figueiredo wrote:
On Wed, 06 Nov 2013 18:21:04 -0200, thegreatmewel
<thegreatme...@gmail.com> wrote:
Hi Thiago, im overwhelmed, it works like a charm :). I just had to
add 'class="form-horizontal"' to my form. Thanks a lot!
Are you using 5.4-alpha-24? Nice to know someone is using one of my
rare (so far!) commits and it's working as it should. :)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org