tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Harner (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (TAP5-1982) Additional @Symbol example for documentation
Date Sat, 02 Apr 2016 22:31:25 GMT

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

Bob Harner resolved TAP5-1982.
------------------------------
    Resolution: Fixed

Added the example to the http://tapestry.apache.org/symbols.html page (once the publishing
system catches up)

> 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)

Mime
View raw message