I had an idea for Orbeon that I'd like to present to you. I looked into
doing it myself, but ran into some setbacks, so possibly you could get to it before I could. Basically, what I would like to see is support for a @method attribute on <page> elements in the PFC. If a page element has a method attribute, then that element is selected only if the path matches and the method that generated the request is one of the comma-separated values in the attribute. Omitting the method attribute would cause the element to be selected for any method. (thus no need to change existing code) Having this capability would make it much easier to build fully RESTful applications using Orbeon Forms. Currently, my workaround to this is to handle flow over to an XPL that reads from the request-generator, which in turn calls another PFC processor based on the value of the method. With this in place, I would be able to collapse all of that into a single file. (not to mention the considerable performance benefits) Like I said, I'm still looking into ways to do this on my end, but I'm sure you would be able to implement it way faster than I would. (being /much/ more familiar with the code and all) In the mean time, how do I modify the validation of PFC files? Editing org/orbeon/oxf/xml/schemas/page-flow-controller.xsd didn't seem to do the trick. I tried re-starting the server, do I have to re-compile? Or am I just looking in the wrong spot? Daniel E. Renfer http://kronkltd.net/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws signature.asc (258 bytes) Download Attachment |
Administrator
|
Daniel,
This is a good suggestion. One may also want to match on request parameters, than just on the request path. I can't guarantee if or when we will do this, so if you manage to do it and contribute the changes that would be even better. After all, Orbeon Forms is open source ;-) It seems that we produce during build a file called: page-flow-controller-runtime.xsd This is the one used at runtime by the PFC. So you should either run the ant target "transform", or manually modify page-flow-controller-runtime.xsd instead of page-flow-controller.xsd. Hopefully this helps. -Erik Daniel E. Renfer wrote: > I had an idea for Orbeon that I'd like to present to you. I looked into > doing it myself, but ran into some setbacks, so possibly you could get > to it before I could. > > Basically, what I would like to see is support for a @method attribute > on <page> elements in the PFC. If a page element has a method attribute, > then that element is selected only if the path matches and the method > that generated the request is one of the comma-separated values in the > attribute. Omitting the method attribute would cause the element to be > selected for any method. (thus no need to change existing code) > > Having this capability would make it much easier to build fully RESTful > applications using Orbeon Forms. Currently, my workaround to this is to > handle flow over to an XPL that reads from the request-generator, which > in turn calls another PFC processor based on the value of the method. > With this in place, I would be able to collapse all of that into a > single file. (not to mention the considerable performance benefits) > > Like I said, I'm still looking into ways to do this on my end, but I'm > sure you would be able to implement it way faster than I would. (being > /much/ more familiar with the code and all) > > In the mean time, how do I modify the validation of PFC files? Editing > org/orbeon/oxf/xml/schemas/page-flow-controller.xsd didn't seem to do > the trick. I tried re-starting the server, do I have to re-compile? Or > am I just looking in the wrong spot? > > Daniel E. Renfer > http://kronkltd.net/ > > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |