You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shale.apache.org by Gary VanMatre <gv...@comcast.net> on 2007/04/09 02:24:11 UTC
RE: Clay - how to set locale Parameter for f:view in html/xml views?
>Hi again - did not create the issue yet ( yeah should really do this ),
>but saw the file AssignViewRootCommand.java, which mentioned the locale.
>Is it already possible yet, to support the locale UIViewRoot attribute?
>
>If yes, how to to so in clay templates?
>
It is possible and I think it was your idea :-) [1]. You probably lost track. I believe it took a while to get around to it. There are a few examples in the clay testcases [2-4].
However, let us know if you find something that doesn't look right. You have a good record for finding clay bugs :-)
>kind regards
>
>Torsten
>
Gary
[1] https://issues.apache.org/struts/browse/SHALE-331
[2] http://svn.apache.org/viewvc/shale/framework/trunk/shale-clay/src/test/resources/org/apache/shale/clay/config/viewroot1.html?view=markup
[3] http://svn.apache.org/viewvc/shale/framework/trunk/shale-clay/src/test/resources/org/apache/shale/clay/config/viewroot2.html?view=markup
[4] http://svn.apache.org/viewvc/shale/framework/trunk/shale-clay/src/test/resources/org/apache/shale/clay/config/viewroot3.html?view=markup
RE: Clay - how to set locale Parameter for f:view in html/xml
views?
Posted by Torsten Krah <tk...@fachschaft.imn.htwk-leipzig.de>.
Opened an issue to track this
https://issues.apache.org/struts/browse/SHALE-437
Added a comment to the improvement (can't modify this issue, so created
a new one)
https://issues.apache.org/struts/browse/SHALE-331
Torsten
RE: Clay - how to set locale Parameter for f:view in html/xml
views?
Posted by Torsten Krah <tk...@fachschaft.imn.htwk-leipzig.de>.
Yeah might be, really lost track of this issue a little bit, although it
was my question in 11/06.
And i hope i am wrong now with my question:
Is a EL Expression supported at:
<span id="view" jsfid="f:view" locale="en" />
works
but
<span id="view" jsfid="f:view" locale="#{index.myLocale}" />
which points to a session bean named index for the user which got an
english locale, although the view is still german, as its the "default"
browser and webapp language.
It should be supported as its allowed to do it,so my question is - my
error or not supported yet? ( I guess not because all tests you
mentioned use a static coded locale value, but i might be wrong.)
kind regards
Torsten
PS: I really wonder if i should do such mysterious thing to keep my
record high ;-), but as long as you don't ban my from the list, i'll
keep up the work, finding those ugly bugs. :-)
Am Montag, den 09.04.2007, 00:24 +0000 schrieb Gary VanMatre:
> >Hi again - did not create the issue yet ( yeah should really do this ),
> >but saw the file AssignViewRootCommand.java, which mentioned the locale.
> >Is it already possible yet, to support the locale UIViewRoot attribute?
> >
> >If yes, how to to so in clay templates?
> >
>
> It is possible and I think it was your idea :-) [1]. You probably lost track. I believe it took a while to get around to it. There are a few examples in the clay testcases [2-4].
>
> However, let us know if you find something that doesn't look right. You have a good record for finding clay bugs :-)
>
> >kind regards
> >
> >Torsten
> >
>
> Gary
>
> [1] https://issues.apache.org/struts/browse/SHALE-331
> [2] http://svn.apache.org/viewvc/shale/framework/trunk/shale-clay/src/test/resources/org/apache/shale/clay/config/viewroot1.html?view=markup
> [3] http://svn.apache.org/viewvc/shale/framework/trunk/shale-clay/src/test/resources/org/apache/shale/clay/config/viewroot2.html?view=markup
> [4] http://svn.apache.org/viewvc/shale/framework/trunk/shale-clay/src/test/resources/org/apache/shale/clay/config/viewroot3.html?view=markup