maybe it is a little late, but here is a "legal" way
to put a label on s:submit:
With btn.search defined in .properties file.
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h
I think your tag has a leak of attribute "method"
Your code:
will generate HTML likes:
When you click this button, there will be a http request parameter
like "btn.search=Search".
Struts2 will accept this parameter, and try to save it to your action property.
So, there will be a property sett
There is an easy trick:
Define all your buttons in your global.properties starting with word ‘*dojo*’
like this:
dojo.btn.eliminar=Borrar
dojo.btn.editar=Editar
dojo.btn.inscripcion=Inscribirse
dojo.btn.buscar=Buscar
That way you avoid ParametersInterceptor to search for unimplemented
It doesn’t work…
Neither putting ‘btn.search=Search’ in: my-global-messages.properties,
package.properties, my-action.properties
¿?¿?
2010/11/29 M. Rakowski
>
> i have exactly the same problem:
>
>
>
> with event.name set in the package.properties file: works ok.
>
>
>
> with button.creat
i have exactly the same problem:
with event.name set in the package.properties file: works ok.
with button.create set in the same .properties-file
causes exception.
Suggestion:
It works only if you use ActionClassName.properties file
instead of package.properties?
You shouldn't need a setSearch method inside your action:
the bEst way to make it work is to verify that your
ActionClassName.properties contains a btn.search entry.
2010/11/29 webmeiker :
> Hi all,
>
> Could somebody help me with the next issue?
>
>
>
> In a submit button I want to use a customiz
Hi all,
Could somebody help me with the next issue?
In a submit button I want to use a customized label (which is extracted from
a .properties file).
The problem is that I get the next exception:
Error setting expression 'btn.search' with value
'[Ljava.lang.String;@1ed56e2'
*ognl.OgnlExcep
7 matches
Mail list logo