| Automation RIO: prefilling creation dialog [message #1016955] |
Fri, 08 March 2013 05:39  |
Martin Pain Messages: 1 Registered: March 2013 |
Junior Member |
|
|
The AutomationRequest creation dialog method (org.eclipse.lyo.oslc4j.automation.resources.AutomationRequestResource.autoRequestCreator(...)) takes a query parameter to specify the automation plan identifier to use to pre-fill the creation dialog.
The specification-defined way of prefilling the creation dialog is to perform a POST on the dialog URL with the values to use to prefill it. In this case, where only prefilling the autoPlan is supported, I would expect that the response to that POST would be a redirect (with a "201 created" status) to the dialog URL with the autoPlan query parameter set.
I cannot see a method that responds to that POST request. Is it not there, or have I just not found it?
Thanks in advance,
Martin
|
|
|
| Re: Automation RIO: prefilling creation dialog [message #1017072 is a reply to message #1016955] |
Fri, 08 March 2013 15:36  |
Michael Fiedler Messages: 12 Registered: September 2012 |
Junior Member |
|
|
Hi Martin - the Automation sample might not be following the specs perfectly. The way it works right now is
- client does a GET on /creator (AutomationRequest.autoRequestCreator() ) which creates a list of plans and passes it to the client in /web/autorequest_creator.jsp for user plan selection
- when the user selects a plan autorequest_creator.jsp does another GET on AutomationRequest.autoRequestCreator(), this time providing the planId as a request param - this drives pre-fill of the request parameters
- once the user provides the parameters autorequest_creator.jsp and clicks Submit, index.jsp's create() method is called to POST the creation data to AutomationRequest.createHtmlAutoRequest()
I'll open a Bugzilla to have the pre-fill behavior follow the core spec better. Hope this helps - let me know if additional clarification is needed.
Regards,
Mike
|
|
|
Powered by
FUDForum. Page generated in 0.01656 seconds