You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Tomasz Dziurko <td...@gmail.com> on 2008/04/13 14:48:07 UTC
[T 5.0.11] Problem with localizing error message in bean edit form
I am trying to localize message saying, that there are errors in the
form. In normal form everything works as expected. I have:
//file app.properties
error-occured=Popraw następujące błędy
// in page file
<t:form t:id="userInputForm">
<t:errors banner="${message:error-occured}"/>
...
</:t:form>
and it works. But when I try to do the same in beanEditForm:
// in page file
<t:beaneditform t:id="userProfileEdit" object="userProfile"
t:submitLabel="${message:save-changes}
exclude="id, isRM, isAdmin"
reorder="login,password,name,surname,nick,room"
disabled="login,name,surname,room"
>
<t:errors banner="${message:error-occured}"/>
</t:beaneditform>
I still get default "You must correct the following errors before you
may continue."
Anyone have idea how to fix this?
--
Tomasz Dziurko
Re: [T 5.0.11] Problem with localizing error message in bean edit form
Posted by Tomasz Dziurko <td...@gmail.com>.
It's rather brute-force solution, but it works :)
--
Tomasz Dziurko
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T 5.0.11] Problem with localizing error message in bean edit
form
Posted by "Filip S. Adamsen" <fs...@fsadev.com>.
Hi Tomasz,
You can localize the banner by putting an Errors.properties file in
org.apache.tapestry.corelib.components containing the key
default-banner. Saves you the hassle of doing it everytime and I believe
this will work with BeanEditForm as well.
-Filip
On 2008-04-13 14:48, Tomasz Dziurko wrote:
> I am trying to localize message saying, that there are errors in the
> form. In normal form everything works as expected. I have:
>
> //file app.properties
> error-occured=Popraw następujące błędy
>
> // in page file
> <t:form t:id="userInputForm">
> <t:errors banner="${message:error-occured}"/>
> ...
> </:t:form>
>
> and it works. But when I try to do the same in beanEditForm:
>
> // in page file
> <t:beaneditform t:id="userProfileEdit" object="userProfile"
> t:submitLabel="${message:save-changes}
> exclude="id, isRM, isAdmin"
> reorder="login,password,name,surname,nick,room"
> disabled="login,name,surname,room"
> >
> <t:errors banner="${message:error-occured}"/>
> </t:beaneditform>
>
> I still get default "You must correct the following errors before you
> may continue."
>
> Anyone have idea how to fix this?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org