It's been some time but I'm pretty sure I was able to access the ValueStack
from within tiles definitions using the OGNL prefix. I didn't do any I18N
stuff from it...
Taking a look at WW-4685, the request makes sense but it does not entirely
remove the need to tiles internationalization. In the case of right to left
languages it isn't just a matter of replacing bits of text but there could
be good reason to use a different layout entirely. Anyways with WW-4685
implemented it would be better all round.
I have a feeling that the use-case in WW-4685 could be made to work along
the lines of: "OGNL:magicAccessor(''home.title)"
This is from memory and it was quite some time ago, if the current
struts2-tiles plugin does not allow for the OGNL EL prefix in tiles then
this is really a must.
If the resource bundles are searched first, there could be name collisions?
Perhaps each prefix should just do one thing? "OGNL:" for value stack and
"I18N:" for the resource bundles?
On Tue, Sep 6, 2016 at 1:25 PM, Lukasz Lenart <[email protected]>
wrote:
> https://issues.apache.org/jira/browse/WW-4685
>
> 2016-09-06 20:59 GMT+02:00 Lukasz Lenart <[email protected]>:
> > 2016-09-06 20:20 GMT+02:00 Ken McWilliams <[email protected]>:
> >> It makes sense. Is there a way to currently access the i18n values using
> >> the OGNL prefix?
> >
> > Nope, with OGNL prefix you can only access Tiles related attributes
> > (as far I understand)
> >
> >
> > Regards
> > --
> > Ćukasz
> > + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
Sent from my C64 using a 300 baud modem