struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-4685) Allow directly accessing I18N keys from Tiles defintions
Date Tue, 06 Sep 2016 19:26:22 GMT

     [ https://issues.apache.org/jira/browse/WW-4685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lukasz Lenart updated WW-4685:
------------------------------
    Description: 
It'd be better to allow directly fetching I18N keys from Struts properties instead of using
multiple {{tiles.xml}} definitions. The latest version of Tiles supports expression languages
so it can be possible to add support for Struts' internals.

{code:xml}
<definition name="home" extends="logged-in">
  <put-attribute name="title" expression="S2:home.title"/>
  <put-attribute name="body" value="/WEB-INF/tiles/home.jsp"/>
</definition>
{code}

and {{home.title}} should be first evaluated as a key in resource bundle and then as a value
from ValueStack.

  was:
It'd be better to allow directly fetching I18N keys from Struts properties instead of using
multiple {{tiles.xml}} definitions. The latest version of Tiles supports expression languages
so it can be possible to add support for Struts' internals.

{code:xml}
<definition name="home" extends="logged-in">
  <put-attribute name="title" expression="S2:home.title"/>
  <put-attribute name="body" value="/WEB-INF/tiles/home.jsp"/>
</definition>
{code}

and {{home.title}} should be first evaluated as a key in resource bundle
and then as a value from ValueStack.


> Allow directly accessing I18N keys from Tiles defintions
> --------------------------------------------------------
>
>                 Key: WW-4685
>                 URL: https://issues.apache.org/jira/browse/WW-4685
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - Tiles
>            Reporter: Lukasz Lenart
>            Assignee: Lukasz Lenart
>            Priority: Minor
>             Fix For: 2.5.3
>
>
> It'd be better to allow directly fetching I18N keys from Struts properties instead of
using multiple {{tiles.xml}} definitions. The latest version of Tiles supports expression
languages so it can be possible to add support for Struts' internals.
> {code:xml}
> <definition name="home" extends="logged-in">
>   <put-attribute name="title" expression="S2:home.title"/>
>   <put-attribute name="body" value="/WEB-INF/tiles/home.jsp"/>
> </definition>
> {code}
> and {{home.title}} should be first evaluated as a key in resource bundle and then as
a value from ValueStack.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message