orbeon Community:
I am a new user of Orbeon XForms, and I have been pretty excited with your neat approach for designing web forms. Thanks for your efforts. I was also glad to see an easy to follow, hands on tutorials as well as some documentation. The forum or mailing list also is a sign of good vitals, and all that so, overall, pretty excited. Here comes the problem. When you go in-depth in Orbeon, beyond the bookcast application, tutorials are not there or are quite incomplete. Sure there are plenty of examples, and hinted approaches to problem solutions, but in my opinion most of these materials fall short of a start-to-finish show. XPL and webservices are clear examples of this. Let me get into the details of webservices: The three theoretical explanations do not work for me. http://www.orbeon.com/ops/doc/integration-webservices This URL contains promising info, yet is incomplete: the "Consuming web services" explains half way how to invoke a web service that may not exist as of today (or may have had changes). Also, the examples show the instance of the delegation processor to execute the service. In my opinion, a thru and thru example should contain the page flow and a example of the XHTML client, that is, the Xform where, in this case, you input the road number (a plus: a google map mash up). Sure, I can see the source code of the "cart" example, and see how the calls are done. Also, I can see how to 'serialize' the output for display. But there is too many things that are loose here. http://www.orbeon.com/ops/doc/processors-delegation This URL is mentioned in the above URL, and has similar problems as the one before. You only show the XPL processors, which is just one side of the application. http://www.orbeon.com/ops/xforms-sandbox/sample/web-service-quote This does not work for me (wintel XP -all updates withe latest Firefox). Taking a peek at the source code is informative, but again, the thing just does not work. I think the ws.invesbot.com went ka-boom. I get nothing, If I want to see how procey google is these days, this is not the way. Last but not least, the forum has some inputs, but some are way over my head at this point and the two most relevants for me mention the (Alessandro Vernet) web-service-weather.xhtml which is neat to see, yet, it does not work for me. I ran it in the Xforms Sand box (local file) and get no answer, no forecast. In this case, the host seems to be OK, as if I use the web client (a GET op) answers me with an XML according to the site's WSDL. I can detail my frustrating details to get ANY instance working, (files, etc) and I can also, when I get ONE of them working make a start-to-finsih example for you. Cheers, Inigo |
Administrator
|
Inigo,
> I am a new user of Orbeon XForms, and I have been pretty excited > with your neat approach for designing web forms. Thanks for your > efforts. > > I was also glad to see an easy to follow, hands on tutorials as well > as some documentation. The forum or mailing list also is a sign of > good vitals, and all that so, overall, pretty excited. And thanks for your compliments! Sorry to hear about your frustrations. One question: are you using 3.5.1 or a nightly build of 3.6? You should use the latter as 3.5.1 is quite old now. > http://www.orbeon.com/ops/doc/integration-webservices > http://www.orbeon.com/ops/doc/processors-delegation It does seem that this part of the doc is a little out of date... I am adding a bug to track improvements in this area: http://forge.objectweb.org/tracker/index.php?func=detail&aid=307850&group_id=168&atid=350207 There are a few ways to call web services (with SOAP) in Orbeon Forms: * The oxf:delegation processor, called from pipelines (XPL). To call this from XForms, you need to use a submission. * Your own processor, written in Java, or using the oxf:java processor, which can call arbitrary code and therefore web services. Here again this is called from pipelines. * Directly from XForms (XForms 1.1 does have SOAP support). web-service-quote.xhtml is an example of this. We tend to favor the last method nowadays whenever possible because it doesn't require you to write XPL and additional page flow entries, so there is less to learn. In addition, we concentrate development on the XForms engine. Just as a simple example, we used this method recently to call Alfresco web services without any problem. > http://www.orbeon.com/ops/xforms-sandbox/sample/web-service-quote > This does not work for me (wintel XP -all updates withe latest > Firefox). Taking a peek at the source code is informative, but > again, the thing just does not work. I suspect that it doesn't work because the version of OF we have online is a quite old one now (it is dating back to April 1, 2007), except for the documentation which we regularly update. As 3.6 final is approaching fast, we will update this soon. > I ran it in the Xforms Sand box (local file) and get no answer, no > forecast. This seems to work for me with a recent build. This could simply be because you are using 3.5.1. -Erik -- 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 |
Hi Eric, Could you make that alfresco code available? My only issue with calling a Webservice from the Xform directly is the ability to chain calls and so on... So say I have a sign up form, I might want to call an open Id Server and then send an email to person trying to sign up... is this possible from the xForm itself? Regards Mark |
Administrator
|
Mark,
> Could you make that alfresco code available? We did that Alfresco code for a prototype for a customer. I will ask for permission. > My only issue with calling a Webservice from the Xform directly is the > ability to chain calls and so on... > > So say I have a sign up form, I might want to call an open Id Server > and > then send an email to person trying to sign up... is this possible > from the > xForm itself? Do you mean doing this by calling multiple web services in a row, using XForms submission? If so, yes, that is possible, as one submission can follow the other by responding to the xforms-submit- done event of the previous submission. -Erik -- 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 |
HI Eric and Everyone else,
I want to be able to implement a "workflow" which would start on the submit button on a form being pressed... For example a user registration form below are the workflow steps Step 1 - Submit button goes active when all required fields are entered Step 2 - [POTENTIALLY - if possible] Then I would like to validate their Captcha validation input against the service I am using for that Step 3 - Send user details to my Webservice to say we want a new user, Response would indicate if this person is already a user or if they have just been created or failure Step 4a1 - If user has been registerd with that email address... Send Email with their current registration details Step 4b1 - If user is new send Email with their new registration details Step 4b2 - Send Email to Administrator asking to verify new User Step 5 - Return Response based on if the process was Success OK... Would you say that the best approach is to do each step as submissions chained after each other in the xHTML file? Potentially having Step 4 be a submission into a XPL file with the response from Step 3 being passed in? Basically I am new to xForms and Orbeon, and I am trying to architect some simple forms, but then going forward if all goes well we plan to use Orbeon as our main presentation layer. The Workflows I am creating a small and simple and don't really require the use of Intalio as of yet... Any help would be appreciated Regards Mark On Thu, Feb 28, 2008 at 9:52 PM, Erik Bruchez <[hidden email]> wrote: Mark, -- 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 Mark.El
Mark,
If you are looking to do OpenID with Orbeon Forms, I wrote an OpenID processor using OpenID4Java. It's not 100% polished, and it is somewhat linked with my particular application, but if you want it, I'd be willing to share the code. Mark.El wrote: > > > Erik Bruchez wrote: >> >> * Directly from XForms (XForms 1.1 does have SOAP >> support). web-service-quote.xhtml is an example of this. >> >> We tend to favor the last method nowadays whenever possible because it >> doesn't require you to write XPL and additional page flow entries, so >> there is less to learn. In addition, we concentrate development on the >> XForms engine. >> >> Just as a simple example, we used this method recently to call >> Alfresco web services without any problem. >> >> > > Hi Eric, > > Could you make that alfresco code available? > > My only issue with calling a Webservice from the Xform directly is the > ability to chain calls and so on... > > So say I have a sign up form, I might want to call an open Id Server and > then send an email to person trying to sign up... is this possible from the > xForm itself? > > Regards > > Mark > -- 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 |
Hi Daniel,
I would appreciate that code... As going forward we want to use openId. My main issue at the moment is passing 2 Xml Instances into a XPL file.... I know it should be simple but I am pretty much a reformed .net developer and have changed jobs and now working with Orbeon, Ofbiz and Java in general... The java I can handle but the XForms/Ofbiz is totally new to me and I am having problems with the basics... I managed to call an Ofbiz service... and get a response in my xForms. I want to now take that response and the data from the original form and if the service passes a success response do one thing and if it fails do another thing... I thought the XPL language would be the correct way to do this... but it has alluded me on how to pass in 2 instances into a xpl file... Any help with that would be a push in the write direction... Regards Mark On Fri, Feb 29, 2008 at 10:12 PM, Daniel E. Renfer <[hidden email]> wrote: Mark, -- 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 |
Mark,
Attached is the code and relevant pipelines straight out of my project folder. Not included is the OpenId4java library, but that can easily be downloaded. This code will almost certainly not work for you out of the box. This was literally the first thing I had ever written in Java, and I haven't revisited it in a while. It also includes hooks to looking up a user's info from my exist database. It should at least get you started. If you have any questions about what a particular pipeline does, feel free to contact me off the list. (My Jabber ID is the same as my email) Again, I apologize for the state of the code, looking back on some of this, there is a lot of things I would do differently, but it should get you going. Share and Enjoy, Daniel E. Renfer http://kronkltd.net/ Mark Ellul wrote: > Hi Daniel, > > I would appreciate that code... > > As going forward we want to use openId. > > My main issue at the moment is passing 2 Xml Instances into a XPL > file.... I know it should be simple but I am pretty much a reformed .net > developer and have changed jobs and now working with Orbeon, Ofbiz and > Java in general... The java I can handle but the XForms/Ofbiz is totally > new to me and I am having problems with the basics... > > I managed to call an Ofbiz service... and get a response in my xForms. I > want to now take that response and the data from the original form and > if the service passes a success response do one thing and if it fails do > another thing... I thought the XPL language would be the correct way to > do this... but it has alluded me on how to pass in 2 instances into a > xpl file... > > Any help with that would be a push in the write direction... > > Regards > > Mark > > > > On Fri, Feb 29, 2008 at 10:12 PM, Daniel E. Renfer <[hidden email] > <mailto:[hidden email]>> wrote: > > Mark, > > If you are looking to do OpenID with Orbeon Forms, I wrote an OpenID > processor using OpenID4Java. It's not 100% polished, and it is somewhat > linked with my particular application, but if you want it, I'd be > willing to share the code. > > Mark.El wrote: > > > > > > Erik Bruchez wrote: > >> > >> * Directly from XForms (XForms 1.1 does have SOAP > >> support). web-service-quote.xhtml is an example of this. > >> > >> We tend to favor the last method nowadays whenever possible > because it > >> doesn't require you to write XPL and additional page flow > entries, so > >> there is less to learn. In addition, we concentrate development > on the > >> XForms engine. > >> > >> Just as a simple example, we used this method recently to call > >> Alfresco web services without any problem. > >> > >> > > > > Hi Eric, > > > > Could you make that alfresco code available? > > > > My only issue with calling a Webservice from the Xform directly > is the > > ability to chain calls and so on... > > > > So say I have a sign up form, I might want to call an open Id > Server and > > then send an email to person trying to sign up... is this > possible from the > > xForm itself? > > > > Regards > > > > Mark > > > > > > -- > You receive this message as a subscriber of the [hidden email] > <mailto:[hidden email]> mailing list. > To unsubscribe: mailto:[hidden email] > <mailto:[hidden email]> > For general help: mailto:[hidden email] > <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 |
Hi
Can anyone please tell me how can HOW TO MAKE AN INPUT FIELD TO ACCEPT ONLY NUMBERS(0-9) ALPHABETS(A-Z)(a-z) AND ONLY TWO SPECIAL CHARACTERS(/ AND -) as i cannot found in orebeon site directly any validation for special characters, Please help me its very urgent as iam looking for it from past one week iam unable to find. Thanks and Regards, K Gopikrishna Reddy -- 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 Daniel E. Renfer
Hi Daniel,
Thanks alot for the code... It has been useful I was wonder if you could add the xform submission xHTML or at least a fragment where you pass the parameters to your processors? Thats where I am stuck on... Regards Mark On Sun, Mar 2, 2008 at 7:17 PM, Daniel E. Renfer <[hidden email]> wrote: Mark, -- 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 Reddy, Gopikrishna
On Sun, Mar 2, 2008 at 8:50 PM, Reddy, Gopikrishna
<[hidden email]> wrote: > Can anyone please tell me how can HOW TO MAKE AN INPUT FIELD TO ACCEPT ONLY NUMBERS(0-9) ALPHABETS(A-Z)(a-z) AND ONLY TWO SPECIAL CHARACTERS(/ AND -) as i cannot found in orebeon site directly any validation for special characters, > Please help me its very urgent as iam looking for it from past one week iam unable to find. You can use an <xforms:bind nodeset="path to the node" constraint="matches(., '[0-9]*')"/>. This will make the field invalid if anything other than digits is typed in the field. You can of course modify the regular expression to match your requirements. More on matches() at: http://www.w3.org/TR/xpath-functions/#func-matches 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/ -- 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 Erik Bruchez
Hi,
Is there a way, to read the URL data in Orbeon X-forms? Suppose I have an URL like http://localhost:8080/c/portal/layout?p_l_id=PUB.1005.1?test=1234 How to read the parameter value "test" as 1234 in the X-forms? Please suggest. Thanks, Venkat.-- Erik Bruchez wrote : Mark, > Could you make that alfresco code available? We did that Alfresco code for a prototype for a customer. I will ask for permission. > My only issue with calling a Webservice from the Xform directly is the > ability to chain calls and so on... > > So say I have a sign up form, I might want to call an open Id Server > and > then send an email to person trying to sign up... is this possible > from the > xForm itself? Do you mean doing this by calling multiple web services in a row, using XForms submission? If so, yes, that is possible, as one submission can follow the other by responding to the xforms-submit- done event of the previous submission. -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- This message was sent on behalf of [hidden email] at openSubscriber.com http://www.opensubscriber.com/message/ops-users@.../8704545.html -- 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 |
Maybe Request Generator is what you are looking for:
http://www.orbeon.com/ops/doc/processors-generators-request A. On Mar 14, 2008, at 11:53 AM, [hidden email] wrote: > Hi, > > Is there a way, to read the URL data in Orbeon X-forms? > > Suppose I have an URL like > > http://localhost:8080/c/portal/layout?p_l_id=PUB.1005.1?test=1234 > > How to read the parameter value "test" as 1234 in the X-forms? > > Please suggest. > > Thanks, > Venkat.-- Erik Bruchez wrote : > Mark, > >> Could you make that alfresco code available? > > > We did that Alfresco code for a prototype for a customer. I will ask > for permission. > >> My only issue with calling a Webservice from the Xform directly is >> the >> ability to chain calls and so on... >> >> So say I have a sign up form, I might want to call an open Id Server >> and >> then send an email to person trying to sign up... is this possible >> from the >> xForm itself? > > > Do you mean doing this by calling multiple web services in a row, > using XForms submission? If so, yes, that is possible, as one > submission can follow the other by responding to the xforms-submit- > done event of the previous submission. > > -Erik > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.com/ > > -- > This message was sent on behalf of [hidden email] at > openSubscriber.com > http://www.opensubscriber.com/message/ops-users@.../8704545.html > > -- > 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 |
Administrator
|
In reply to this post by venkata.seshaiah
At the moment, one way is to use the Page Flow Controller to extract
request parameters: http://www.orbeon.com/ops/doc/reference-page-flow#url-extraction Then this can be made available to an XForms page with: <xforms:instance id="url-info" src="input:instance"/> Note that we would like to make this much easier to do through XPath functions: http://forge.objectweb.org/tracker/index.php?func=detail&aid=308618&group_id=168&atid=350207 Hopefully that will come soon. -Erik On Mar 14, 2008, at 3:53 AM, [hidden email] wrote: > Hi, > > Is there a way, to read the URL data in Orbeon X-forms? > > Suppose I have an URL like > > http://localhost:8080/c/portal/layout?p_l_id=PUB.1005.1?test=1234 > > How to read the parameter value "test" as 1234 in the X-forms? > > Please suggest. > > Thanks, > Venkat.-- Erik Bruchez wrote : > Mark, > >> Could you make that alfresco code available? > > > We did that Alfresco code for a prototype for a customer. I will ask > for permission. > >> My only issue with calling a Webservice from the Xform directly is >> the >> ability to chain calls and so on... >> >> So say I have a sign up form, I might want to call an open Id Server >> and >> then send an email to person trying to sign up... is this possible >> from the >> xForm itself? > > > Do you mean doing this by calling multiple web services in a row, > using XForms submission? If so, yes, that is possible, as one > submission can follow the other by responding to the xforms-submit- > done event of the previous submission. > > -Erik > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.com/ > > -- > This message was sent on behalf of [hidden email] at > openSubscriber.com > http://www.opensubscriber.com/message/ops-users@.../8704545.html > > -- > 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 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 |