You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Bob Harner (JIRA)" <ji...@apache.org> on 2016/04/03 00:30:25 UTC

[jira] [Assigned] (TAP5-1982) Additional @Symbol example for documentation

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

Bob Harner reassigned TAP5-1982:
--------------------------------

    Assignee: Bob Harner

> Additional @Symbol example for documentation
> --------------------------------------------
>
>                 Key: TAP5-1982
>                 URL: https://issues.apache.org/jira/browse/TAP5-1982
>             Project: Tapestry 5
>          Issue Type: Improvement
>            Reporter: Chris Mylonas
>            Assignee: Bob Harner
>            Priority: Trivial
>              Labels: documentation
>
> Taha replied to an email with a solution to a simple @Symbol that a noob could easily try out that is a more complete example than currently in docs.
> With @Symbol you must use @Inject too
> @Proeprty
> @Inject
> @Symbol(SymbolConstants.PRODUCTION_MODE)
> private boolean productionMode
> BTW you can also use :-
> <t:if test='symbol:tapestry.production-mode'>
>   ${symbol:tapestry.production-mode}
> </t:if>



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