Add a mechanism for testing wether a controller is executed within pre-execution
--------------------------------------------------------------------------------

                 Key: BLOSSOM-38
                 URL: http://jira.magnolia-cms.com/browse/BLOSSOM-38
             Project: Magnolia Blossom Module
          Issue Type: Improvement
            Reporter: Tobias Mattsson
            Assignee: Tobias Mattsson
             Fix For: 1.2.2


In controllers its often necessary to find out if the controller is being 
pre-executed or not. In order to take different actions. This can be done by 
testing if the http method is POST, but that might not be specific enough since 
a POST can happen to the page for other reasons. It's also possible to test for 
it by looking at the state kept by the pre-execution mechanism. But there 
should be a recommended and documented way of finding out.

Possibly also as an argument directly to controllers, for instance:

@RequestMapping("/contactform")
public String handleRequest(ExecutionStatus executionStatus) {...}

or

@RequestMapping("/contactform")
public String handleRequest(@PreExecutionStatus boolean preexecuting) {...}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


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

Reply via email to