Orbeon Forms Builder custom persistence API: Why does it call /crud/.../data/data.xml? -


i implementing own persistence layer orbeon forms. far have understood virtual hierachy of data, creating form form builder in application "myapp" name "myform" should cause form builder call

/crud/myapp/myform/form/form.xhtml, passing newly created form http-put data. created spring method annotated with:

@requestmapping(method = requestmethod.put, value = "/crud/{applicationname}/{formname}/form/form.xhtml") public void saveform(@pathvariable string formname, @requestbody string putdata) 

i expected method called form. method not called. instead method

@requestmapping(method = requestmethod.put, value = "/crud/{applicationname}/{formname}/data/{uuid}/data.xml") public void saveinstance(@pathvariable string uuid, @requestbody string putdata) 

gets called. putdata contains full xhtml form. why happening? thought second url called saving instance, more <xforms:instance id="fr-form-instance"> part of form, once fill in values form.

the answer form definition can in 2 places:

  1. when edit form builder, form definition form data far builder concerned. it's stored data.xml orbeon/builder.

  2. when publish it, copied (http put) form.xhtml myapp/myform. read there (http get) when form definition needed view/edit/search data associated form.

you can verify publishing form.

the news need 1 above anyway handle form data published forms.

note form definitions , form data can both have attachments well.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -