Hi,
i'm from germany, but i try to do my best in english. I have 2 Problems at the moment. I build an own application based on OPS3.5 and the "Government Forms - Example". I have to save some different forms in a xml-DB and used an external eXist-DB. Also i save each document by its own id, validated by an own scheme. So here are my problems: (I) To reproduce the first error message do the following: Message: <b> XForms error: Can't find bundle for base name org.orbeon.oxf.processor.xforms.Messages, locale de_DE <b> I could reproduce the same failure when change some details in the government example. 1. Include the following lines into the G-325A Forms scheme C:\ProgramFiles\Tomcat5.5\webapps\ops35\WEB-INF\resources\apps\forms\forms\G-325A\schema.xsd <xs:element name="form"> <xs:complexType> <xs:sequence> <xs:element name="personal-information" type="personal-information"/> <xs:element name="parents-information" type="parents-information"/> <xs:element name="marriages"/> <xs:element name="residence-information" type="residence-information"/> <xs:element name="employment-information" type="employment-information"/> <xs:element name="connection" type="connection"/> </xs:sequence> </xs:complexType> <!-- This lines have to be included to reproduse the error --> <xs:unique name="SynGruppe"> <xs:selector xpath="employment-information/last-five-years/employment"/> <xs:field xpath="name"/> <xs:field xpath="address"/> </xs:unique> <!-- End of example to include --> </xs:element> When you now "edit" an importet G-325A Form and type in the following inforamtion under "Applicant's employment last five years": 2 times the same!!! Details for "Employer Name" and "Employer Address" the named error message will be displayed on top. And also the Informations in the documents-instance of the g-325a-model won't be updated to the last state, because of the error interruption, even if the details are displayed in the form, they won't be saved. And the "Save document" option already can be used, even the form isn't valid to the given scheme, cause the instance wasn't updated to the last state! My Questions: Can i use the "unique, key and keyref" options in the schemes or are they not supported by Orbeon-XForms? What about the Error-Message and how i can i resolve this problem? Using the "XML Scheme-Sandbox" with the same documents instance and the scheme including the added "unique" constraints, the Errors leading to the invalid instance are display correctly. No other "XForm error"-Message My second Question - only important if the first problem could be solved: The documents will be saved into an collection, but each form by itself. How about "unique"-constraints an such a collection? I need to test, that each form is unique on certain details. Hope you understand my problem. There must not be two different forms inside the same collection, including the same information. But how i can test such a constraint on the saved forms inside the collection, when traying to save a new instance into this collection? Hope to recieve soon answers, cause resolving this problems is very urgent for me. Thanxs for your support! Best wishes, Marcus -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Anyone out there have an idea for my problem?
I need urgent help and hope someone has a tip for me, working around that problem!? Thanxs, Marcus -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Marcus-2
Hallo Marcus,
I found the issue that was causing the exception and fixed it. The fix should make it in the next nightly build soon: http://forge.objectweb.org/nightlybuilds/ops/ops/ I hope this helps, -Erik [hidden email] wrote: > Hi, > i'm from germany, but i try to do my best in english. > > I have 2 Problems at the moment. I build an own application based on OPS3.5 and the "Government Forms - Example". I have to save some different forms in a xml-DB and used an external eXist-DB. Also i save each document by its own id, validated by an own scheme. > > So here are my problems: > (I) To reproduce the first error message do the following: > Message: <b> XForms error: Can't find bundle for base name org.orbeon.oxf.processor.xforms.Messages, locale de_DE <b> > I could reproduce the same failure when change some details in the government example. > 1. Include the following lines into the G-325A Forms scheme > C:\ProgramFiles\Tomcat5.5\webapps\ops35\WEB-INF\resources\apps\forms\forms\G-325A\schema.xsd > > <xs:element name="form"> > <xs:complexType> > <xs:sequence> > <xs:element name="personal-information" type="personal-information"/> > <xs:element name="parents-information" type="parents-information"/> > <xs:element name="marriages"/> > <xs:element name="residence-information" type="residence-information"/> > <xs:element name="employment-information" type="employment-information"/> > <xs:element name="connection" type="connection"/> > </xs:sequence> > </xs:complexType> > > <!-- This lines have to be included to reproduse the error --> > <xs:unique name="SynGruppe"> > <xs:selector xpath="employment-information/last-five-years/employment"/> > <xs:field xpath="name"/> > <xs:field xpath="address"/> > </xs:unique> > <!-- End of example to include --> > > </xs:element> > > When you now "edit" an importet G-325A Form and type in the following inforamtion under "Applicant's employment last five years": 2 times the same!!! Details for "Employer Name" and "Employer Address" the named error message will be displayed on top. And also the Informations in the documents-instance of the g-325a-model won't be updated to the last state, because of the error interruption, even if the details are displayed in the form, they won't be saved. And the "Save document" option already can be used, even the form isn't valid to the given scheme, cause the instance wasn't updated to the last state! > > My Questions: > Can i use the "unique, key and keyref" options in the schemes or are they not supported by Orbeon-XForms? What about the Error-Message and how i can i resolve this problem? > > Using the "XML Scheme-Sandbox" with the same documents instance and the scheme including the added "unique" constraints, the Errors leading to the invalid instance are display correctly. No other "XForm error"-Message > > > My second Question - only important if the first problem could be solved: > > The documents will be saved into an collection, but each form by itself. How about "unique"-constraints an such a collection? I need to test, that each form is unique on certain details. Hope you understand my problem. There must not be two different forms inside the same collection, including the same information. But how i can test such a constraint on the saved forms inside the collection, when traying to save a new instance into this collection? > > > Hope to recieve soon answers, cause resolving this problems is very urgent for me. Thanxs for your support! > Best wishes, Marcus > > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Hi Erik,
thanks for that. Do i have to rebuild my hole application or is it possible just to exchange some single jar-file or somthing like that? And perhaps you have also a tip for my second problem? Thanks for the fast help :-) Marcus ----- Original Message ----- From: "Erik Bruchez" <[hidden email]> To: <[hidden email]> Sent: Wednesday, March 28, 2007 8:56 PM Subject: Re: [ops-users] XML Scheme Constraints Problem -> XForms error: Can't find bundle for base name org.orbeon.oxf.processor.xforms.Messages, locale de_DE > Hallo Marcus, > > I found the issue that was causing the exception and fixed it. The fix > should make it in the next nightly build soon: > > http://forge.objectweb.org/nightlybuilds/ops/ops/ > > I hope this helps, > > -Erik > > [hidden email] wrote: >> Hi, >> i'm from germany, but i try to do my best in english. >> >> I have 2 Problems at the moment. I build an own application based on >> OPS3.5 and the "Government Forms - Example". I have to save some >> different forms in a xml-DB and used an external eXist-DB. Also i save >> each document by its own id, validated by an own scheme. >> >> So here are my problems: >> (I) To reproduce the first error message do the following: >> Message: <b> XForms error: Can't find bundle for base name >> org.orbeon.oxf.processor.xforms.Messages, locale de_DE <b> >> I could reproduce the same failure when change some details in the >> government example. >> 1. Include the following lines into the G-325A Forms scheme >> C:\ProgramFiles\Tomcat5.5\webapps\ops35\WEB-INF\resources\apps\forms\forms\G-325A\schema.xsd >> >> <xs:element name="form"> >> <xs:complexType> >> <xs:sequence> >> <xs:element name="personal-information" type="personal-information"/> >> <xs:element name="parents-information" type="parents-information"/> >> <xs:element name="marriages"/> >> <xs:element name="residence-information" >> type="residence-information"/> >> <xs:element name="employment-information" >> type="employment-information"/> >> <xs:element name="connection" type="connection"/> >> </xs:sequence> >> </xs:complexType> >> >> <!-- This lines have to be included to reproduse the error --> >> <xs:unique name="SynGruppe"> >> <xs:selector >> xpath="employment-information/last-five-years/employment"/> >> <xs:field xpath="name"/> >> <xs:field xpath="address"/> >> </xs:unique> >> <!-- End of example to include --> >> >> </xs:element> >> >> When you now "edit" an importet G-325A Form and type in the following >> inforamtion under "Applicant's employment last five years": 2 times the >> same!!! Details for "Employer Name" and "Employer Address" the named >> error message will be displayed on top. And also the Informations in the >> documents-instance of the g-325a-model won't be updated to the last >> state, because of the error interruption, even if the details are >> displayed in the form, they won't be saved. And the "Save document" >> option already can be used, even the form isn't valid to the given >> scheme, cause the instance wasn't updated to the last state! >> >> My Questions: >> Can i use the "unique, key and keyref" options in the schemes or are they >> not supported by Orbeon-XForms? What about the Error-Message and how i >> can i resolve this problem? >> >> Using the "XML Scheme-Sandbox" with the same documents instance and the >> scheme including the added "unique" constraints, the Errors leading to >> the invalid instance are display correctly. No other "XForm >> error"-Message >> >> >> My second Question - only important if the first problem could be solved: >> >> The documents will be saved into an collection, but each form by itself. >> How about "unique"-constraints an such a collection? I need to test, that >> each form is unique on certain details. Hope you understand my problem. >> There must not be two different forms inside the same collection, >> including the same information. But how i can test such a constraint on >> the saved forms inside the collection, when traying to save a new >> instance into this collection? >> >> >> Hope to recieve soon answers, cause resolving this problems is very >> urgent for me. Thanxs for your support! >> Best wishes, Marcus >> >> > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Marcus,
If you have 3.5 installed, you should be ok just replacing: ops.jar ops-resources-private.jar ops-resources-public.jar saxon-8_8_orbeon.jar Regarding the other question: XQuery in eXist will allow you to check on those constraints. I.e. you can run XQuery that spans multiple documents. The following test for example should allow you to test whether the values of my-item are all unique: count(distinct-values(collection('/db/my-collection')//my-item)) = count(collection('/db/my-collection')//my-item) -Erik Marcus wrote: > Hi Erik, > thanks for that. Do i have to rebuild my hole application or is it > possible just to exchange some single jar-file or somthing like that? > > And perhaps you have also a tip for my second problem? > Thanks for the fast help :-) > > Marcus > > ----- Original Message ----- From: "Erik Bruchez" <[hidden email]> > To: <[hidden email]> > Sent: Wednesday, March 28, 2007 8:56 PM > Subject: Re: [ops-users] XML Scheme Constraints Problem -> XForms error: > Can't find bundle for base name > org.orbeon.oxf.processor.xforms.Messages, locale de_DE > > >> Hallo Marcus, >> >> I found the issue that was causing the exception and fixed it. The fix >> should make it in the next nightly build soon: >> >> http://forge.objectweb.org/nightlybuilds/ops/ops/ >> >> I hope this helps, >> >> -Erik >> >> [hidden email] wrote: >>> Hi, >>> i'm from germany, but i try to do my best in english. >>> >>> I have 2 Problems at the moment. I build an own application based on >>> OPS3.5 and the "Government Forms - Example". I have to save some >>> different forms in a xml-DB and used an external eXist-DB. Also i >>> save each document by its own id, validated by an own scheme. >>> >>> So here are my problems: >>> (I) To reproduce the first error message do the following: >>> Message: <b> XForms error: Can't find bundle for base name >>> org.orbeon.oxf.processor.xforms.Messages, locale de_DE <b> >>> I could reproduce the same failure when change some details in the >>> government example. >>> 1. Include the following lines into the G-325A Forms scheme >>> C:\ProgramFiles\Tomcat5.5\webapps\ops35\WEB-INF\resources\apps\forms\forms\G-325A\schema.xsd >>> >>> >>> <xs:element name="form"> >>> <xs:complexType> >>> <xs:sequence> >>> <xs:element name="personal-information" type="personal-information"/> >>> <xs:element name="parents-information" type="parents-information"/> >>> <xs:element name="marriages"/> >>> <xs:element name="residence-information" >>> type="residence-information"/> >>> <xs:element name="employment-information" >>> type="employment-information"/> >>> <xs:element name="connection" type="connection"/> >>> </xs:sequence> >>> </xs:complexType> >>> >>> <!-- This lines have to be included to reproduse the error --> >>> <xs:unique name="SynGruppe"> >>> <xs:selector >>> xpath="employment-information/last-five-years/employment"/> >>> <xs:field xpath="name"/> >>> <xs:field xpath="address"/> >>> </xs:unique> >>> <!-- End of example to include --> >>> >>> </xs:element> >>> >>> When you now "edit" an importet G-325A Form and type in the following >>> inforamtion under "Applicant's employment last five years": 2 times >>> the same!!! Details for "Employer Name" and "Employer Address" the >>> named error message will be displayed on top. And also the >>> Informations in the documents-instance of the g-325a-model won't be >>> updated to the last state, because of the error interruption, even if >>> the details are displayed in the form, they won't be saved. And the >>> "Save document" option already can be used, even the form isn't valid >>> to the given scheme, cause the instance wasn't updated to the last >>> state! >>> >>> My Questions: >>> Can i use the "unique, key and keyref" options in the schemes or are >>> they not supported by Orbeon-XForms? What about the Error-Message and >>> how i can i resolve this problem? >>> >>> Using the "XML Scheme-Sandbox" with the same documents instance and >>> the scheme including the added "unique" constraints, the Errors >>> leading to the invalid instance are display correctly. No other >>> "XForm error"-Message >>> >>> >>> My second Question - only important if the first problem could be >>> solved: >>> >>> The documents will be saved into an collection, but each form by >>> itself. How about "unique"-constraints an such a collection? I need >>> to test, that each form is unique on certain details. Hope you >>> understand my problem. There must not be two different forms inside >>> the same collection, including the same information. But how i can >>> test such a constraint on the saved forms inside the collection, when >>> traying to save a new instance into this collection? >>> >>> >>> Hope to recieve soon answers, cause resolving this problems is very >>> urgent for me. Thanxs for your support! >>> Best wishes, Marcus 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Hi,
testing the forms already stored in the DB shouldn't be the problem. I need this validation by a schema or anything else before saving a new form violating the constraint. Your example tests a given collection, but i need such a validation during entering the data into the new form. So, just like my unique-constraint, but testing on the hole collection. For example, collecting infos in a blog, sorted by the headlines. When entering a new theme, the saving should not be possible, if he current headline was allready used for another theme, already saved inside the collection. Understand? Or do I missed something? At the moment my workaround would be initating an extra instance before loading the new form and search for all "headlines" and then try to test the new headline against that instance. I just haven't done that, so i don't know if it will work and how to manage that, so my question is: Is there a way to define a schema for the hole collection and validate the new form with it against the rest of the collection? Just like Ordbeon does that for me with the singel form? I don't want to save all data in one big singel document, than it would be no problem, but with singel stored files in a collection i need another way to do this validation on the constraints. Thanks a lot for the moment. The possibilty of using the constraints for new forms helps me a lot. But the other point would be the next problem. Not only for the "unique"-case, but also when using "key"- and "keyref"-constraints with different collections. In the first collection i save base data and in another i saved additional data referenced by the first one. So i.e. i have also test a referenced field, if the additional data in the second collection already exists cause in other case the reference would be invalid and end in a "dead link" There should be another way of implement such a "primary-foreign-key-case" than storing all inforamtion in only one big xml-file, or isn't there any? I already implement a similar workaround by searching the key-values from the second collection and store them into an extra instance, but without defining that constraints in the schemes, but this should be done for good database implementation. And XML Scheme seems to have such possibilities, but i haven't found any information on such a case yet :-(( Thanxs a lot for your help!!! Marcus ----- Original Message ----- From: "Erik Bruchez" <[hidden email]> To: <[hidden email]> Sent: Wednesday, March 28, 2007 11:35 PM Subject: Re: [ops-users] XML Scheme Constraints Problem -> XForms error: Can't find bundle for base name org.orbeon.oxf.processor.xforms.Messages, locale de_DE > Marcus, > > If you have 3.5 installed, you should be ok just replacing: > > ops.jar > ops-resources-private.jar > ops-resources-public.jar > saxon-8_8_orbeon.jar > > Regarding the other question: XQuery in eXist will allow you to check on > those constraints. I.e. you can run XQuery that spans multiple > documents. The following test for example should allow you to test > whether the values of my-item are all unique: > > count(distinct-values(collection('/db/my-collection')//my-item)) = > count(collection('/db/my-collection')//my-item) > > -Erik > > Marcus wrote: >> Hi Erik, >> thanks for that. Do i have to rebuild my hole application or is it >> possible just to exchange some single jar-file or somthing like that? >> >> And perhaps you have also a tip for my second problem? >> Thanks for the fast help :-) >> >> Marcus -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Marcus,
> testing the forms already stored in the DB shouldn't be the problem. > I need this validation by a schema or anything else before saving a > new form violating the constraint. Your example tests a given > collection, but i need such a validation during entering the data > into the new form. So, just like my unique-constraint, but testing > on the hole collection. You can achieve that, although you will have to write some code to achieve this external validation. You can't just run a single schema across multiple eXist documents, and anyway the XForms engine doesn't know anything about eXist, although it can communicate with it through xforms:submission. > For example, collecting infos in a blog, sorted by the headlines. > When entering a new theme, the saving should not be possible, if he > current headline was allready used for another theme, already saved > inside the collection. Understand? Or do I missed something? That's a reasonable use-case. But you don't have to use a schema to do this. When the user wants to save, you run a submission asking eXist whether the title already exists (no pun intended), and don't allows the submission in this case. > At the moment my workaround would be initating an extra instance > before loading the new form and search for all "headlines" and then > try to test the new headline against that instance. Yes, that's another solution, although it won't scale once you get lots of entries. Better talk to eXist when needed. > I just haven't done that, so i don't know if it will work and how to > manage that, so my question is: Is there a way to define a schema > for the hole collection and validate the new form with it against > the rest of the collection? Just like Ordbeon does that for me with > the singel form? Nope, as said above. But you can try asking this on the eXist mailing-list. > I don't want to save all data in one big singel document, than it > would be no problem, but with singel stored files in a collection i > need another way to do this validation on the constraints. You are right, it makes perfect sense to have one document per entry. > Thanks a lot for the moment. The possibilty of using the constraints > for new forms helps me a lot. But the other point would be the next > problem. Not only for the "unique"-case, but also when using "key"- > and "keyref"-constraints with different collections. In the first > collection i save base data and in another i saved additional data > referenced by the first one. So i.e. i have also test a referenced > field, if the additional data in the second collection already > exists cause in other case the reference would be invalid and end in > a "dead link" There should be another way of implement such a > "primary-foreign-key-case" than storing all inforamtion in only one > big xml-file, or isn't there any? I already implement a similar > workaround by searching the key-values from the second collection > and store them into an extra instance, but without defining that > constraints in the schemes, but this should be done for good > database implementation. And XML Scheme seems to have such > possibilities, but i haven't found any information on such a case > yet :-(( I think you'll just have to give up XML Schemas to test for this particular kind of constraints. -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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Hi again,
i've got some new problem! Integrating my own application into the new Nigthly Build you send me, it doesn't work! When loading the application, i got a new error message: XForms error: oxf:/ops/xforms/xforms-server.xpl, line 55, column 103, description reading processor output: null null But i don't know why! I had to test it with the new ops, cause at my old ops, after replacing the 4 files you mentioned, some of the forms also doesn't worked as well. I often got the error page, but without any error displayed :-(( I've tried to figure out what happend. I tested my app with 3.5.0 and there it works, except of the validation on the "unique"-constraints as i wrote before. Someone has an idea what happend or what that error-message above means? Thanxs for your support, Marcus -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |