Orbeon 4.1 custom REST persistence -
i have been struggling on week trying setup custom orbeon rest persistence.
i using struts 2 mvc framework following configuration:
<action name="/crud/{appname}/{formname}/form/form.xhtml" class="com.example.crudcontroller" method="executeform" /> <action name="/crud/{appname}/{formname}/data/{uuid}/data.xml" class="com.example.crudcontroller" method="executedata" /> <action name="/search/{appname}/{formname}" class="com.example.searchcontroller" />
the problem first action being called.
from form builder, when click on form record (say "foo"), called:
get http://localhost:8080/mycontext/app/crud/myapp/library/form/form.xhtml
notice that, myapp correct application name library not correct form name (which should "foo").
from form runner, when try "foo" summary or new pages, called:
get http://localhost:8080/mycontext/app/crud/myapp/foo/form/form.xhtml
this time form name correct, expected /search/... call instead. nevertheless tried responding either xform xml or query result no success.
the call /crud/myapp/library/form/form.xhtml
normal: isn't done form runner load form, load app-specific section templates library, stored in reserved library
form name. implementation of persistence api should return 404, since doesn't have form myapp/library
.
as query /crud/myapp/foo/form/form.xhtml
when access new page myapp/foo
, form runner loading form definition myapp/foo
. query search api done summary page, list data specific form.
Comments
Post a Comment