Issue Type: Task Task
Assignee: Unassigned
Created: 22/Jul/13 9:13 AM
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:

class MyModel implements RenderingModel {
    
    private String someParameter;

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

    public String getSomeParameter() {
        return someParameter;
    }
}

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/rendering/renderers 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 property true/false, default is true
Project: Documentation
Priority: Neutral Neutral
Reporter: Roman Kovařík
Security Level: Public
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: <[email protected]>
----------------------------------------------------------------

Reply via email to