Change By: Roman Kovařík (29/Jul/13 1:10 PM)
Description: When rendering, {{RenderingModel}} instances are populated with request parameters. That is, if the model has a {{setFoo(String)}} method, it will be called with the value of the {{foo}} request parameter:

{code}
class MyModel implements RenderingModel {
    
    private String someParameter;

    public void setSomeParameter(String someParameter) {
        this.someParameter = someParameter;
    }

    public String getSomeParameter() {
        return someParameter;
    }
}
{code}

{{request: /somePage.html?parameter=value}}
parameter is automatically set before rendering.

4.5.10 introduces enabling/disabling of this automatic populating of models:
* globally: {{Configuration/
modules server /rendering/ renderers engine }} add {{autoPopualateFromRequest}} property {{true/false}}, default is {{true}}
* on template definition level, overides global setting,  separatelly for every single definition: {{Templating Kit/Template Definitions/pages/stkHome}} add {{
autoPopualateFromRequest autoPopulateFromRequest }} property {{true/false}}, default is {{true}} 
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to