I'm trying to change the BeanEditForms submitLabel with a mixin like this
@BindParameter
private String submitLabel;
void setupRender() {
submitLabel = "New";
}
but that results in this
Render queue error in SetupRender[user/New:user]: Failure writing parameter
'submitLabel' of component user/New:user: Binding LiteralBinding[default
submitLabel: Create/Update] is read-only.
I'm guessing that's because the parameter is declared like this
@Parameter(value = "message:submit-label", defaultPrefix =
BindingConstants.LITERAL)
@Property
private String submitLabel;
which means the value is connected to a message by default and messages are
read only.
Is there a workaround for this or is it just impossible to override
Parameters declared this way?
Thanks,
Barry
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Can-t-change-BeanEditForm-submitLabel-with-a-mixin-tp5716012.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]