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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]