You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tiles.apache.org by "mck (JIRA)" <ji...@apache.org> on 2017/04/06 03:30:41 UTC

[jira] [Closed] (TILES-588) add NoLocaleDefinitionsFactory

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

mck closed TILES-588.
---------------------
    Resolution: Fixed

> add NoLocaleDefinitionsFactory
> ------------------------------
>
>                 Key: TILES-588
>                 URL: https://issues.apache.org/jira/browse/TILES-588
>             Project: Tiles
>          Issue Type: Improvement
>            Reporter: hurelhuyag
>
> In my case tiles definitions are has no relation with locale. Maybe this class useful for someone.
> {code:java}
> public class NoLocaleDefinitionsFactory extends UnresolvingLocaleDefinitionsFactory {
>     @Override
>     public Definition getDefinition(String name, Request tilesContext) {
>         return definitionDao.getDefinition(name, null);
>     }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)