Hello,
I am new to Orbeon and still learning the hole
fatures of this product. But at the moment I have a problem I can`t
solve.
Is there a way to get the XForms source code of an
Form builded in the FormBuilder? I mean the XForms runner needs the following
files:
page-view.xml
index.xhtml
and so on..
Is there a way to get these files from an Form
builded in the FormsDesigner? Because I can`t finde the save files of the
FormBuilder. Where all Forms I builed are saved?
Thanks for help.
Greetings
Jakob
-- 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 |
Yes, one of the controls towards the bottom in the Advanced says "Edit
Source" or "View Source", can't recall the exact name right now, but it's there. Ilya On Sun, Jul 5, 2009 at 8:29 AM, Jakob Mandalka<[hidden email]> wrote: > Hello, > > I am new to Orbeon and still learning the hole fatures of this product. But > at the moment I have a problem I can`t solve. > > Is there a way to get the XForms source code of an Form builded in the > FormBuilder? I mean the XForms runner needs the following files: > > page-view.xml > index.xhtml > and so on.. > > Is there a way to get these files from an Form builded in the FormsDesigner? > Because I can`t finde the save files of the FormBuilder. Where all Forms I > builed are saved? > > Thanks for help. > > Greetings > > Jakob > > > -- > 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 > > -- 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 |
Also, you won't be able to just take that and run it through the
Orbeon context in your webapp, because it requires quite a bit more. As of right now, you at least have to use a variety of xsl stylesheets to transform custom Orbeon components to xhtml, since the source you see in the formbuilder has a variety of orbeon xform extensions. Ilya On Sun, Jul 5, 2009 at 5:47 PM, Ilya Sterin<[hidden email]> wrote: > Yes, one of the controls towards the bottom in the Advanced says "Edit > Source" or "View Source", can't recall the exact name right now, but > it's there. > > Ilya > > On Sun, Jul 5, 2009 at 8:29 AM, Jakob > Mandalka<[hidden email]> wrote: >> Hello, >> >> I am new to Orbeon and still learning the hole fatures of this product. But >> at the moment I have a problem I can`t solve. >> >> Is there a way to get the XForms source code of an Form builded in the >> FormBuilder? I mean the XForms runner needs the following files: >> >> page-view.xml >> index.xhtml >> and so on.. >> >> Is there a way to get these files from an Form builded in the FormsDesigner? >> Because I can`t finde the save files of the FormBuilder. Where all Forms I >> builed are saved? >> >> Thanks for help. >> >> Greetings >> >> Jakob >> >> >> -- >> 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 >> >> > -- 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 |
Hello,
My background: I am quite new to Orbeon, Xforms, etc. However I have been using jsp & Java for years. Our company intranet has many custom Java libraries that I want to make use of. I have been playing with Orbeon for a few weeks and have found it excellent. However, I have to say: the learning curve is very steep. I am stuck: I want to connect to my Java libraries and make use of live lists, addresses, etc (from ERP, DB, etc). I have put together a very basic framework to make sure I can pass data from a custom Java processor to a webpage. However I have spent days doing this with no joy (tearing my hair out etc.) My request: Any chance someone could write some very basic code that demonstrates basic dataflow? I have been attempting to do it thus: testProcesor.java (outputs small test XML doc) \/ \/ \/ service-get.xpl (uses oxf:java to access testProcesor.java) (outputs the returned document) \/ \/ \/ view.xhtml (Uses event-"xforms-ready" to call a submission that retrieves data from Service-get.xpl) (the output is then displayed on the webpage) If someone could make a really simple working version of the above three files (plus page-flow.xml) and send it to me I would appreciate it a lot. I am sure I am missing something very simple. But since all the components are new to me, I don't know which part isn't working. Cheers Steven -- 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 |
In reply to this post by Ilya Sterin
Thanks for answer.
But I already saw this "Show-Sourecode-Feature" and this is not what I am searching for. I want to run this "XForms" after builed in the FormBuilder in the Orbeon Framework, so the extensions should not be the Problem. But I need something like an export funktionality which will generate me at least the following files: page-flow.xml view.xhtml and the xml File the changes, made in this Form, will be saved. I want to show my local builed XForm in the Forms Designer on an other System. So I planed to generate an folder, put in the Files an upload it to orbeon\WEB-INF\resources\apps. 2009/7/5 Ilya Sterin <[hidden email]> Also, you won't be able to just take that and run it through the -- 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 |
In reply to this post by Steven Kerr
Hello again,
Contrary to what I was trying to do below, would it make more sense for me to wrap up my existing Java libraries into web services, then access these from my Orbeon apps? Has anyone found this to be a nice simple solution? I am aiming to setup an architecture that can be used to slowly replace all of our existing company intranet. Currently all of our internal web applications are written in JSP, access Java libraries, and are hosted on Apache Tomcat. Cheers Steve -----Original Message----- From: Steven Kerr Sent: Monday, 6 July 2009 12:23 To: [hidden email] Subject: [ops-users] Basic data flow from java processor Hello, My background: I am quite new to Orbeon, Xforms, etc. However I have been using jsp & Java for years. Our company intranet has many custom Java libraries that I want to make use of. I have been playing with Orbeon for a few weeks and have found it excellent. However, I have to say: the learning curve is very steep. I am stuck: I want to connect to my Java libraries and make use of live lists, addresses, etc (from ERP, DB, etc). I have put together a very basic framework to make sure I can pass data from a custom Java processor to a webpage. However I have spent days doing this with no joy (tearing my hair out etc.) My request: Any chance someone could write some very basic code that demonstrates basic dataflow? I have been attempting to do it thus: testProcesor.java (outputs small test XML doc) \/ \/ \/ service-get.xpl (uses oxf:java to access testProcesor.java) (outputs the returned document) \/ \/ \/ view.xhtml (Uses event-"xforms-ready" to call a submission that retrieves data from Service-get.xpl) (the output is then displayed on the webpage) If someone could make a really simple working version of the above three files (plus page-flow.xml) and send it to me I would appreciate it a lot. I am sure I am missing something very simple. But since all the components are new to me, I don't know which part isn't working. Cheers Steven -- 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 |
Administrator
|
In reply to this post by Steven Kerr
Steven,
What you describe here makes sense. I am wondering what isn't working, and it is hard to tell without seeing your code. Can you hit the service-get.xpl service directly with your web browser, and get the XML back? If you can, then it must be a problem with the submission. If the submission fails, you will find more information about what went wrong in the orbeon.log. If there is still not enough information there, uncomment the category related to XFormsServer in log4j.xml, and restart Tomcat to get even more information in the logs. Alex |
Alex
Thanks for that. I didn't realise I could point the browser directly at .xpl files(using page-flow). Once I did I found the error right away. It now works! Cheers Steven -----Original Message----- From: Alessandro Vernet [mailto:[hidden email]] Sent: Tuesday, 7 July 2009 14:08 To: [hidden email] Subject: [ops-users] Re: Basic data flow from java processor Steven, Steven Kerr wrote: > > Any chance someone could write some very basic code that demonstrates > basic dataflow? I have been attempting to do it thus: > > testProcesor.java > (outputs small test XML doc) > > \/ \/ \/ > > service-get.xpl > (uses oxf:java to access testProcesor.java) (outputs the returned > document) > > \/ \/ \/ > > view.xhtml > (Uses event-"xforms-ready" to call a submission that retrieves data > from > Service-get.xpl) > (the output is then displayed on the webpage) > and it is hard to tell without seeing your code. Can you hit the service-get.xpl service directly with your web browser, and get the XML back? If you can, then it must be a problem with the submission. If the submission fails, you will find more information about what went wrong in the orbeon.log. If there is still not enough information there, uncomment the category related to XFormsServer in log4j.xml, and restart Tomcat to get even more information in the logs. Alex ----- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- View this message in context: http://www.nabble.com/FormBuilder-tp24342728p24366857.html Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.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 |
Administrator
|
In reply to this post by Steven Kerr
Steven,
This is also a good way to do it. Especially if you want your code to be accessible as a web service by other "components" (in addition to your XForms forms). Now, the simplest way is to expose the code you want to call with static methods, and call those methods directly from the XPath running in XForms. For instance, you would on xforms-model-construct-done do an xforms:insert where the "origin" calls a Java method that returns the XML. Also see: http://www.saxonica.com/documentation/extensibility/functions/staticmethods.html Alex |
Administrator
|
In reply to this post by Dog86
Jakob,
When you build and app with Form Builder, you don't get an app that gets "generated" for you, and that would put at the level of the other apps. Instead Form Runner works as an "interpreter" for your form; well... it runs your form. Said otherwise: it's not your form using Form Runner, but Form Runner running your form. After you published your form, it will be available from /fr/your-app/your-form/new. Note the "/fr" at the beginning of the URL which denotes that this is going through Form Runner. Alex |
In reply to this post by Alessandro Vernet
Thanks for confirming that, and the extra info. Cheers :)
-----Original Message----- From: Alessandro Vernet [mailto:[hidden email]] Sent: Tuesday, 7 July 2009 15:20 To: [hidden email] Subject: [ops-users] RE: Basic data flow from java processor Steven, Steven Kerr wrote: > > Contrary to what I was trying to do below, would it make more sense > for me to wrap up my existing Java libraries into web services, then > access these from my Orbeon apps? Has anyone found this to be a nice > simple solution? I am aiming to setup an architecture that can be > used to slowly replace all of our existing company intranet. > Currently all of our internal web applications are written in JSP, > access Java libraries, and are hosted on Apache Tomcat. > This is also a good way to do it. Especially if you want your code to be accessible as a web service by other "components" (in addition to your XForms forms). Now, the simplest way is to expose the code you want to call with static methods, and call those methods directly from the XPath running in XForms. For instance, you would on xforms-model-construct-done do an xforms:insert where the "origin" calls a Java method that returns the XML. Also see: http://www.saxonica.com/documentation/extensibility/functions/staticmeth ods.html Alex ----- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- View this message in context: http://www.nabble.com/FormBuilder-tp24342728p24367298.html Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.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 |
Administrator
|
In reply to this post by Steven Kerr
Steven,
Excellent; thanks for the update! Alex |
Free forum by Nabble | Edit this page |