The premature end of file error is present in the url generator that
load the instance data from a single file xml. In attach to this mail there is the folder where my application is stored... if you decompress the rar file in /resource/apps this file and run the presentation server ... on this url : /xforms-quixBizApp/activities-list you can reproduce the error. Thank you very much Leonardo Erik Bruchez ha scritto: > Leonardo, > > I think that if you want to maximize the chances to solve your > problem, you will have to send us (or upload somewhere) a WAR file > that reproduces the problem and that we can run locally. > > -Erik > > Leonardo Reale wrote: >> Hi, now my servlet is called by my searchActivities.xpl, the ops >> stack trace return this error: >> >> The servlet create the xml by a StringBuffer.toString(); ... in the >> response thre is an XML String with the contentType document/xml. >> The error is the follow... >> >> Fatal error: Premature end of file. >> >> My xml is well formed... and i don't undesrtand which is the problem. >> >> AnyOne have any idea about this? >> >> >> >> >> Ryan Puddephatt ha scritto: >>> Here is a quickstart in sax, >>> http://www.saxproject.org/quickstart.html or >>> try looking at the OPS source code >>> >>> Ryan >>> >>> Ryan Puddephatt >>> Software Engineer >>> >>> Teleflex Group - IT UK >>> 1 Michaelson Square >>> Livingston >>> West Lothian >>> Scotland >>> EH54 7DP >>> >>> e> [hidden email] >>> t> +44(0)1506 407 110 >>> f> +44(0)1506 407 108 >>> >>> >>> >>> >>>> -----Original Message----- >>>> From: Leonardo Reale [mailto:[hidden email]] Sent: 18 >>>> December 2006 16:17 >>>> To: [hidden email] >>>> Subject: Re: [ops-users] New user xpl problems >>>> >>>> Hi, i want to produce the XML in my servlet as Sax stream, anyone >>>> have an example that works in this way? >>>> >>>> My problem is: in which way i return this stream from my servlet? >>>> >>>> Best reguards >>>> Leonardo >>>> >>>> Ryan Puddephatt ha scritto: >>>> >>>>> Leonardo, >>>>> The way you are doing it is fine, I seem to remember >>>> there being a >>>>> problem with caching of a SAX stream response. >>>>> >>>>> Try putting <use-local-cache>false</use-local-cache> in your >>>>> url-generator config >>>>> >>>>> And putting a null-serializer on the output of the url-generator >>>>> something like >>>>> >>>>> <p:processor name="oxf:null-serializer"> >>>>> <p:input name="data" href="#url-gen-out"/> </p:processor> >>>>> >>>>> <p:processor name="oxf:identity"> >>>>> <p:input name="data" href="#url-gen-out"/> >>>>> <p:output name="data" ref="data"/> <!-- this is the >>>> output of your XPL >>>> >>>>> </p:processor> >>>>> >>>>> Hope this helps >>>>> >>>>> Ryan Puddephatt >>>>> Software Engineer >>>>> >>>>> Teleflex Group - IT UK >>>>> 1 Michaelson Square >>>>> Livingston >>>>> West Lothian >>>>> Scotland >>>>> EH54 7DP >>>>> >>>>> e> [hidden email] >>>>> t> +44(0)1506 407 110 >>>>> f> +44(0)1506 407 108 >>>>> >>>>> >>>>> >>>>> >>>>>> -----Original Message----- >>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>> Sent: 18 December 2006 15:54 >>>>>> To: [hidden email] >>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>> >>>>>> No, i produce an xml as String and write this on stream of the >>>>>> response. >>>>>> >>>>>> If use a SAX stream to produce the XML how can i return this >>>>>> stream from my servlet? >>>>>> >>>>>> >>>>>> Ryan Puddephatt ha scritto: >>>>>> >>>>>>> So why is it your not doing that way? Why are you using >>>>>>> >>>>>> another XPL to >>>>>> >>>>>>> get this? >>>>>>> >>>>>>> Does you servlet use SAX stream to produce the XML? >>>>>>> >>>>>>> Ryan >>>>>>> >>>>>>> Ryan Puddephatt >>>>>>> Software Engineer >>>>>>> >>>>>>> Teleflex Group - IT UK >>>>>>> 1 Michaelson Square >>>>>>> Livingston >>>>>>> West Lothian >>>>>>> Scotland >>>>>>> EH54 7DP >>>>>>> >>>>>>> e> [hidden email] >>>>>>> t> +44(0)1506 407 110 >>>>>>> f> +44(0)1506 407 108 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> -----Original Message----- >>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>> Sent: 18 December 2006 15:42 >>>>>>>> To: [hidden email] >>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>> >>>>>>>> This is the xml produced by my servlet: >>>>>>>> >>>>>>>> <activities> >>>>>>>> <activity> >>>>>>>> <id>1</id> >>>>>>>> <projectName>Integrazione xform</projectName> >>>>>>>> <date>2006-11-15</date> <description>Integrazione >>>>>>>> xform</description> <location>HQ</location> >>>>>>>> <length>8</length> <activityType>Leo</activityType> >>>>>>>> <companyCode>Leo</companyCode> </activity> </activities> >>>>>>>> >>>>>>>> it's well formed, I'm sure, in fact if I load the >>>> instance directly >>>>>>>> by servlet it works fine >>>>>>>> >>>>>>>> <xforms:instance id="activitiesList" >>>>>>>> src="http://localhost:8080/ActivityList" /> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Ryan Puddephatt ha scritto: >>>>>>>> >>>>>>>>> Then either the result of activitylist, or either of the >>>>>>>>> >>>>>>>> XPLs are not >>>>>>>> >>>>>>>>> well formed! >>>>>>>>> >>>>>>>>> Ryan Puddephatt >>>>>>>>> Software Engineer >>>>>>>>> >>>>>>>>> Teleflex Group - IT UK >>>>>>>>> 1 Michaelson Square >>>>>>>>> Livingston >>>>>>>>> West Lothian >>>>>>>>> Scotland >>>>>>>>> EH54 7DP >>>>>>>>> >>>>>>>>> e> [hidden email] >>>>>>>>> t> +44(0)1506 407 110 >>>>>>>>> f> +44(0)1506 407 108 >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> -----Original Message----- >>>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>>> Sent: 18 December 2006 15:29 >>>>>>>>>> To: [hidden email] >>>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>>> >>>>>>>>>> Ryan Puddephatt ha scritto: >>>>>>>>>> >>>>>>>>>>> So hitting http://localhost:8080/ops/ActivityList in >>>>>>>>>>> >>>>>> your browser >>>>>> >>>>>>>>>>> produces the XML you expect, but >>>>>>>>>>> http://localhost:8080/ops/ActivityList in the >>>>>>>>>>> >>>>>>>> url-generator does not? >>>>>>>> >>>>>>>>>>> Ryan >>>>>>>>>>> >>>>>>>>>>> Ryan Puddephatt >>>>>>>>>>> Software Engineer >>>>>>>>>>> >>>>>>>>>>> Teleflex Group - IT UK >>>>>>>>>>> 1 Michaelson Square >>>>>>>>>>> Livingston >>>>>>>>>>> West Lothian >>>>>>>>>>> Scotland >>>>>>>>>>> EH54 7DP >>>>>>>>>>> >>>>>>>>>>> e> [hidden email] >>>>>>>>>>> t> +44(0)1506 407 110 >>>>>>>>>>> f> +44(0)1506 407 108 >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> -----Original Message----- >>>>>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>>>>> Sent: 18 December 2006 10:26 >>>>>>>>>>>> To: [hidden email] >>>>>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>>>>> >>>>>>>>>>>> If i call my servlet directly by url i see the produded >>>>>>>>>>>> xml. It works correctly. >>>>>>>>>>>> >>>>>>>>>>>> I call thi servlet by an xpl. This xpl is the follow: >>>>>>>>>>>> >>>>>>>>>>>> <p:param name="data" type="output" /> >>>>>>>>>>>> >>>>>>>>>>>> <p:processor name="oxf:url-generator"> >>>>>>>>>>>> <p:input name="config"> >>>>>>>>>>>> <config> >>>>>>>>>>>> <url>http://localhost:8080/ops/ActivityList</url> >>>>>>>>>>>> </config> </p:input> >>>>>>>>>>>> <p:output name="data" id="xml" ref="data"/> </p:processor> >>>>>>>>>>>> >>>>>>>>>>>> In the page-flow i configured the navigation in thi s way: >>>>>>>>>>>> >>>>>>>>>>>> <!-- Views --> >>>>>>>>>>>> <page path-info="/xforms-quixBizApp/activity/list-view" >>>>>>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>>>>>> <!-- Models --> <page >>>>>>>>>>>> path-info="/xforms-quixBizApp/activity/list-model" >>>>>>>>>>>> model="searchActivities.xpl" /> >>>>>>>>>>>> <epilogue url="oxf:/config/epilogue.xpl"/> >>>>>>>>>>>> >>>>>>>>>>>> My XHTML page load the datamodel through the xpl >>>>>>>>>>>> >>>> url-generator >>>>>>>>>>>> processor. >>>>>>>>>>>> >>>>>>>>>>>> THK >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> Ryan Puddephatt ha scritto: >>>>>>>>>>>> >>>>>>>>>>>>> Ok, is it an XPL? Being called through the page-flow, or >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>> some custom >>>>>>>>>> >>>>>>>>>>>>> servler setup through the web.xml? >>>>>>>>>>>>> >>>>>>>>>>>>> Ryan >>>>>>>>>>>>> >>>>>>>>>>>>> Ryan Puddephatt >>>>>>>>>>>>> Software Engineer >>>>>>>>>>>>> >>>>>>>>>>>>> Teleflex Group - IT UK >>>>>>>>>>>>> 1 Michaelson Square >>>>>>>>>>>>> Livingston >>>>>>>>>>>>> West Lothian >>>>>>>>>>>>> Scotland >>>>>>>>>>>>> EH54 7DP >>>>>>>>>>>>> >>>>>>>>>>>>> e> [hidden email] >>>>>>>>>>>>> t> +44(0)1506 407 110 >>>>>>>>>>>>> f> +44(0)1506 407 108 >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>> -----Original Message----- >>>>>>>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>>>>>>> Sent: 18 December 2006 10:12 >>>>>>>>>>>>>> To: [hidden email] >>>>>>>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>>>>>>> >>>>>>>>>>>>>> The servlet is under the same context of >>>>>>>>>>>>>> >>>> presentation server. >>>> >>>>>>>>>>>>>> Ryan Puddephatt ha scritto: >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>>> Leonardo, >>>>>>>>>>>>>>> By servlet do you mean a URL under your OPS application >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> with the >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>>> path-info of /activityList or do you mean a URL within >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> another context >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>>> on the same server? >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Ryan >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Ryan Puddephatt >>>>>>>>>>>>>>> Software Engineer >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Teleflex Group - IT UK >>>>>>>>>>>>>>> 1 Michaelson Square >>>>>>>>>>>>>>> Livingston >>>>>>>>>>>>>>> West Lothian >>>>>>>>>>>>>>> Scotland >>>>>>>>>>>>>>> EH54 7DP >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> e> [hidden email] >>>>>>>>>>>>>>> t> +44(0)1506 407 110 >>>>>>>>>>>>>>> f> +44(0)1506 407 108 >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> -----Original Message----- >>>>>>>>>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>>>>>>>>> Sent: 18 December 2006 08:48 >>>>>>>>>>>>>>>> To: [hidden email] >>>>>>>>>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> hi, my goal is create new application with a list >>>>>>>>>>>>>>>> >>>> _page and >>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>> edit_page. >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>>>> When i call my link: >>>>>>>>>>>>>>>> "/xforms-quixBizApp/list/searchActivities" i want to >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>> load my list >>>>>>>>>> >>>>>>>>>>>>>>>> page using as model "searchActivities.xpl". >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> <page >>>> path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>>>>>>>>>>> model="searchActivities.xpl" >>>>>>>>>>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> The data loading is a Servlet called ActivityList. The >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>> servlet load >>>>>>>>>>>> >>>>>>>>>>>>>>>> from database my data and create an xml on the response >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>> Stream. The >>>>>>>>>>>> >>>>>>>>>>>>>>>> xpl file is: >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> <p:processor name="oxf:redirect"> >>>>>>>>>>>>>>>> <p:input name="data"> >>>>>>>>>>>>>>>> <redirect-url> >>>>>>>>>>>>>>>> <path-info>/activityList</path-info> >>>>>>>>>>>>>>>> </redirect-url> >>>>>>>>>>>>>>>> </p:input> >>>>>>>>>>>>>>>> </p:config> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> The problem is: the servlet is not called by the >>>>>>>>>>>>>>>> >>>> processor. >>>> >>>>>>>>>>>>>>>> Have you any idea to realize my goal? >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Erik Bruchez ha scritto: >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> Leonardo, >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> i'm new ops user i'm trying to create a simple >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>> XForms based >>>>>> >>>>>>>>>>>>>>>>>> web-application. >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> This web application shows a list of activity >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> (activityList.xhtml). >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> In this page there is an XForm, this form is a search >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>>>>>>>> form. The >>>>>>>>>>>> >>>>>>>>>>>>>>>>>> submission tag is the following: >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> <xforms:submission id="searchActivities" method="post" >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>>>>>> action="/xforms-quixBizApp/list/searchActivities" >>>>>>>>>> >>>>>>>>>>>>>>>>>> instance="searchParams"/> >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> The page-flow.xml entry: >>>>>>>>>>>>>>>>>> <page >>>> path-info="/xforms-quixBizApp/list/searchActivities" >>>> >>>>>>>>>>>>>>>>>> model="searchActivities.xpl" >>>>>>>>>>>>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> The xpl file: >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> c >>>>>>>>>>>>>>>>>> This processor (as documentation says) should call >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>>>> my servlet >>>>>>>> >>>>>>>>>>>>>>>>>> /activityList but this not append. >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> I would try to avoid the oxf:redirect processor if >>>>>>>>>>>>>>>>> >>>>>> possible. >>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> The questions are >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> 1) Can i call a servlet from xpl ? >>>>>>>>>>>>>>>>>> 2) How call the servlet? >>>>>>>>>>>>>>>>>> 3) There is an example in this direction? >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> "Calling a servlet" is a little vague to me. >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> First, can you describe what you are really trying to >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>> achieve? You >>>>>>>>>>>> >>>>>>>>>>>>>>>>> propose a solution above but it is not clear to me what >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>> problem it >>>>>>>>>>>> >>>>>>>>>>>>>>>>> solves. >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> If you are just trying to go to "/activityList", why >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>> don't you >>>>>>>> >>>>>>>>>>>>>>>>> directly submit your instance to >>>>>>>>>>>>>>>>> >>>> "/activityList", or do an >>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> xforms:load >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> to that same URL? >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> -Erik >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>> --------------------------------------------------------------------- >>>> >>>>>> >>>>>>>> >>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>>>> - >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>>>> 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 >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>>> Ing. Leonardo Reale >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> QUIX S.r.l. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>>>>>>>>> 41019 - Soliera (MO) >>>>>>>>>>>>>>>> Loc.Appalto - ITALY >>>>>>>>>>>>>>>> Tel. 0039 059 565388 >>>>>>>>>>>>>>>> Fax. 0039 059 565322 >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> [hidden email] >>>>>>>>>>>>>>>> [hidden email] >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>> --------------------------------------------------------------------- >>>> >>>>>> >>>>>>>> >>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>>> - >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>> 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 >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> Ing. Leonardo Reale >>>>>>>>>>>>>> >>>>>>>>>>>>>> QUIX S.r.l. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>>>>>>> 41019 - Soliera (MO) >>>>>>>>>>>>>> Loc.Appalto - ITALY >>>>>>>>>>>>>> Tel. 0039 059 565388 >>>>>>>>>>>>>> Fax. 0039 059 565322 >>>>>>>>>>>>>> >>>>>>>>>>>>>> [hidden email] >>>>>>>>>>>>>> [hidden email] >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>> --------------------------------------------------------------------- >>>> >>>>>> >>>>>>>> >>>>>>>>>> >>>>>>>>>>>> - >>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> 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 >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> Ing. Leonardo Reale >>>>>>>>>>>> >>>>>>>>>>>> QUIX S.r.l. >>>>>>>>>>>> >>>>>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>>>>> 41019 - Soliera (MO) >>>>>>>>>>>> Loc.Appalto - ITALY >>>>>>>>>>>> Tel. 0039 059 565388 >>>>>>>>>>>> Fax. 0039 059 565322 >>>>>>>>>>>> >>>>>>>>>>>> [hidden email] >>>>>>>>>>>> [hidden email] >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>> --------------------------------------------------------------------- >>>> >>>>>> >>>>>>>> >>>>>>>>>> - >>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> 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 >>>>>>>>>>> >>>>>>>>>> Yes..., the error is "premature-end of file". >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Ing. Leonardo Reale >>>>>>>>>> >>>>>>>>>> QUIX S.r.l. >>>>>>>>>> >>>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>>> 41019 - Soliera (MO) >>>>>>>>>> Loc.Appalto - ITALY >>>>>>>>>> Tel. 0039 059 565388 >>>>>>>>>> Fax. 0039 059 565322 >>>>>>>>>> >>>>>>>>>> [hidden email] >>>>>>>>>> [hidden email] >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>> --------------------------------------------------------------------- >>>> >>>>>> >>>>>>>> - >>>>>>>> >>>>>>>>> -- >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> 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 >>>>>>>>> >>>>>>>> -- >>>>>>>> Ing. Leonardo Reale >>>>>>>> >>>>>>>> QUIX S.r.l. >>>>>>>> >>>>>>>> Strada Statale 413, 160/162 >>>>>>>> 41019 - Soliera (MO) >>>>>>>> Loc.Appalto - ITALY >>>>>>>> Tel. 0039 059 565388 >>>>>>>> Fax. 0039 059 565322 >>>>>>>> >>>>>>>> [hidden email] >>>>>>>> [hidden email] >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>> --------------------------------------------------------------------- >>>> >>>>>> - >>>>>> >>>>>>> -- >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> 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 >>>>>>> >>>>>> -- >>>>>> Ing. Leonardo Reale >>>>>> >>>>>> QUIX S.r.l. >>>>>> >>>>>> Strada Statale 413, 160/162 >>>>>> 41019 - Soliera (MO) >>>>>> Loc.Appalto - ITALY >>>>>> Tel. 0039 059 565388 >>>>>> Fax. 0039 059 565322 >>>>>> >>>>>> [hidden email] >>>>>> [hidden email] >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> ---------------------------------------------------------------------- >>>> >>>>> -- >>>>> >>>>> >>>>> -- >>>>> 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 >>>>> >>>> -- >>>> Ing. Leonardo Reale >>>> >>>> QUIX S.r.l. >>>> >>>> Strada Statale 413, 160/162 >>>> 41019 - Soliera (MO) >>>> Loc.Appalto - ITALY >>>> Tel. 0039 059 565388 >>>> Fax. 0039 059 565322 >>>> >>>> [hidden email] >>>> [hidden email] >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> ------------------------------------------------------------------------ >>> >>> >>> >>> -- >>> 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 > > > ------------------------------------------------------------------------ > > > -- > 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 > -- Ing. Leonardo Reale QUIX S.r.l. Strada Statale 413, 160/162 41019 - Soliera (MO) Loc.Appalto - ITALY Tel. 0039 059 565388 Fax. 0039 059 565322 [hidden email] [hidden email] -- 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 xforms-quixBizApp.rar (4K) Download Attachment |
In reply to this post by Ryan Puddephatt
Hi, i'm trying your solution for my problem of "premature end of line"
but the solution seems not working. Have you any new idea about how to resolve this problem? Ryan Puddephatt ha scritto: > Leonardo, > The way you are doing it is fine, I seem to remember there being a > problem with caching of a SAX stream response. > > Try putting <use-local-cache>false</use-local-cache> in your url-generator > config > > And putting a null-serializer on the output of the url-generator something > like > > <p:processor name="oxf:null-serializer"> > <p:input name="data" href="#url-gen-out"/> > </p:processor> > > <p:processor name="oxf:identity"> > <p:input name="data" href="#url-gen-out"/> > <p:output name="data" ref="data"/> <!-- this is the output of your XPL > </p:processor> > > Hope this helps > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > > > > >> -----Original Message----- >> From: Leonardo Reale [mailto:[hidden email]] >> Sent: 18 December 2006 15:54 >> To: [hidden email] >> Subject: Re: [ops-users] New user xpl problems >> >> No, i produce an xml as String and write this on stream of the >> response. >> >> If use a SAX stream to produce the XML how can i return this >> stream from my servlet? >> >> >> Ryan Puddephatt ha scritto: >> >>> So why is it your not doing that way? Why are you using >>> >> another XPL to >> >>> get this? >>> >>> Does you servlet use SAX stream to produce the XML? >>> >>> Ryan >>> >>> Ryan Puddephatt >>> Software Engineer >>> >>> Teleflex Group - IT UK >>> 1 Michaelson Square >>> Livingston >>> West Lothian >>> Scotland >>> EH54 7DP >>> >>> e> [hidden email] >>> t> +44(0)1506 407 110 >>> f> +44(0)1506 407 108 >>> >>> >>> >>> >>> >>>> -----Original Message----- >>>> From: Leonardo Reale [mailto:[hidden email]] >>>> Sent: 18 December 2006 15:42 >>>> To: [hidden email] >>>> Subject: Re: [ops-users] New user xpl problems >>>> >>>> This is the xml produced by my servlet: >>>> >>>> <activities> >>>> <activity> >>>> <id>1</id> >>>> <projectName>Integrazione xform</projectName> >>>> <date>2006-11-15</date> <description>Integrazione >>>> xform</description> <location>HQ</location> <length>8</length> >>>> <activityType>Leo</activityType> <companyCode>Leo</companyCode> >>>> </activity> </activities> >>>> >>>> it's well formed, I'm sure, in fact if I load the instance directly >>>> by servlet it works fine >>>> >>>> <xforms:instance id="activitiesList" >>>> src="http://localhost:8080/ActivityList" /> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> Ryan Puddephatt ha scritto: >>>> >>>> >>>>> Then either the result of activitylist, or either of the >>>>> >>>>> >>>> XPLs are not >>>> >>>> >>>>> well formed! >>>>> >>>>> Ryan Puddephatt >>>>> Software Engineer >>>>> >>>>> Teleflex Group - IT UK >>>>> 1 Michaelson Square >>>>> Livingston >>>>> West Lothian >>>>> Scotland >>>>> EH54 7DP >>>>> >>>>> e> [hidden email] >>>>> t> +44(0)1506 407 110 >>>>> f> +44(0)1506 407 108 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> -----Original Message----- >>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>> Sent: 18 December 2006 15:29 >>>>>> To: [hidden email] >>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>> >>>>>> Ryan Puddephatt ha scritto: >>>>>> >>>>>> >>>>>> >>>>>>> So hitting http://localhost:8080/ops/ActivityList in >>>>>>> >> your browser >> >>>>>>> produces the XML you expect, but >>>>>>> http://localhost:8080/ops/ActivityList in the >>>>>>> >>>>>>> >>>> url-generator does not? >>>> >>>> >>>>>>> Ryan >>>>>>> >>>>>>> Ryan Puddephatt >>>>>>> Software Engineer >>>>>>> >>>>>>> Teleflex Group - IT UK >>>>>>> 1 Michaelson Square >>>>>>> Livingston >>>>>>> West Lothian >>>>>>> Scotland >>>>>>> EH54 7DP >>>>>>> >>>>>>> e> [hidden email] >>>>>>> t> +44(0)1506 407 110 >>>>>>> f> +44(0)1506 407 108 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> -----Original Message----- >>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>> Sent: 18 December 2006 10:26 >>>>>>>> To: [hidden email] >>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>> >>>>>>>> If i call my servlet directly by url i see the produded xml. >>>>>>>> It works correctly. >>>>>>>> >>>>>>>> I call thi servlet by an xpl. This xpl is the follow: >>>>>>>> >>>>>>>> <p:param name="data" type="output" /> >>>>>>>> >>>>>>>> <p:processor name="oxf:url-generator"> >>>>>>>> <p:input name="config"> >>>>>>>> <config> >>>>>>>> <url>http://localhost:8080/ops/ActivityList</url> >>>>>>>> </config> >>>>>>>> </p:input> >>>>>>>> <p:output name="data" id="xml" ref="data"/> </p:processor> >>>>>>>> >>>>>>>> In the page-flow i configured the navigation in thi s way: >>>>>>>> >>>>>>>> <!-- Views --> >>>>>>>> <page path-info="/xforms-quixBizApp/activity/list-view" >>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>> >>>>>>>> <!-- Models --> >>>>>>>> <page path-info="/xforms-quixBizApp/activity/list-model" >>>>>>>> model="searchActivities.xpl" /> >>>>>>>> <epilogue url="oxf:/config/epilogue.xpl"/> >>>>>>>> >>>>>>>> My XHTML page load the datamodel through the xpl url-generator >>>>>>>> processor. >>>>>>>> >>>>>>>> THK >>>>>>>> >>>>>>>> >>>>>>>> Ryan Puddephatt ha scritto: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> Ok, is it an XPL? Being called through the page-flow, or >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>> some custom >>>>>> >>>>>> >>>>>> >>>>>>>>> servler setup through the web.xml? >>>>>>>>> >>>>>>>>> Ryan >>>>>>>>> >>>>>>>>> Ryan Puddephatt >>>>>>>>> Software Engineer >>>>>>>>> >>>>>>>>> Teleflex Group - IT UK >>>>>>>>> 1 Michaelson Square >>>>>>>>> Livingston >>>>>>>>> West Lothian >>>>>>>>> Scotland >>>>>>>>> EH54 7DP >>>>>>>>> >>>>>>>>> e> [hidden email] >>>>>>>>> t> +44(0)1506 407 110 >>>>>>>>> f> +44(0)1506 407 108 >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> -----Original Message----- >>>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>>> Sent: 18 December 2006 10:12 >>>>>>>>>> To: [hidden email] >>>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>>> >>>>>>>>>> The servlet is under the same context of presentation server. >>>>>>>>>> >>>>>>>>>> Ryan Puddephatt ha scritto: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> Leonardo, >>>>>>>>>>> By servlet do you mean a URL under your OPS application >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> with the >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> path-info of /activityList or do you mean a URL within >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> another context >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> on the same server? >>>>>>>>>>> >>>>>>>>>>> Ryan >>>>>>>>>>> >>>>>>>>>>> Ryan Puddephatt >>>>>>>>>>> Software Engineer >>>>>>>>>>> >>>>>>>>>>> Teleflex Group - IT UK >>>>>>>>>>> 1 Michaelson Square >>>>>>>>>>> Livingston >>>>>>>>>>> West Lothian >>>>>>>>>>> Scotland >>>>>>>>>>> EH54 7DP >>>>>>>>>>> >>>>>>>>>>> e> [hidden email] >>>>>>>>>>> t> +44(0)1506 407 110 >>>>>>>>>>> f> +44(0)1506 407 108 >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> -----Original Message----- >>>>>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>>>>> Sent: 18 December 2006 08:48 >>>>>>>>>>>> To: [hidden email] >>>>>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>>>>> >>>>>>>>>>>> hi, my goal is create new application with a list _page and >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>> edit_page. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>>> When i call my link: >>>>>>>>>>>> "/xforms-quixBizApp/list/searchActivities" i want to >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>> load my list >>>>>> >>>>>> >>>>>> >>>>>>>>>>>> page using as model "searchActivities.xpl". >>>>>>>>>>>> >>>>>>>>>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>>>>>>> model="searchActivities.xpl" >>>>>>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>>>>>> >>>>>>>>>>>> The data loading is a Servlet called ActivityList. The >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>> servlet load >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>>>> from database my data and create an xml on the response >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>> Stream. The >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>>>> xpl file is: >>>>>>>>>>>> >>>>>>>>>>>> <p:processor name="oxf:redirect"> >>>>>>>>>>>> <p:input name="data"> >>>>>>>>>>>> <redirect-url> >>>>>>>>>>>> <path-info>/activityList</path-info> >>>>>>>>>>>> </redirect-url> >>>>>>>>>>>> </p:input> >>>>>>>>>>>> </p:config> >>>>>>>>>>>> >>>>>>>>>>>> The problem is: the servlet is not called by the processor. >>>>>>>>>>>> >>>>>>>>>>>> Have you any idea to realize my goal? >>>>>>>>>>>> >>>>>>>>>>>> Erik Bruchez ha scritto: >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> Leonardo, >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>> i'm new ops user i'm trying to create a simple >>>>>>>>>>>>>> >> XForms based >> >>>>>>>>>>>>>> web-application. >>>>>>>>>>>>>> >>>>>>>>>>>>>> This web application shows a list of activity >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>> (activityList.xhtml). >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>>> In this page there is an XForm, this form is a search >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>> form. The >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>>>>>> submission tag is the following: >>>>>>>>>>>>>> >>>>>>>>>>>>>> <xforms:submission id="searchActivities" method="post" >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>> action="/xforms-quixBizApp/list/searchActivities" >>>>>> >>>>>> >>>>>> >>>>>>>>>>>>>> instance="searchParams"/> >>>>>>>>>>>>>> >>>>>>>>>>>>>> The page-flow.xml entry: >>>>>>>>>>>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>>>>>>>>> model="searchActivities.xpl" >>>>>>>>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>>>>>>>> >>>>>>>>>>>>>> The xpl file: >>>>>>>>>>>>>> >>>>>>>>>>>>>> c >>>>>>>>>>>>>> This processor (as documentation says) should call >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>> my servlet >>>> >>>> >>>>>>>>>>>>>> /activityList but this not append. >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> I would try to avoid the oxf:redirect processor if >>>>>>>>>>>>> >> possible. >> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>> The questions are >>>>>>>>>>>>>> >>>>>>>>>>>>>> 1) Can i call a servlet from xpl ? >>>>>>>>>>>>>> 2) How call the servlet? >>>>>>>>>>>>>> 3) There is an example in this direction? >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> "Calling a servlet" is a little vague to me. >>>>>>>>>>>>> >>>>>>>>>>>>> First, can you describe what you are really trying to >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>> achieve? You >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>>>>> propose a solution above but it is not clear to me what >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>> problem it >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>>>>> solves. >>>>>>>>>>>>> >>>>>>>>>>>>> If you are just trying to go to "/activityList", why >>>>>>>>>>>>> >>>>>>>>>>>>> >>>> don't you >>>> >>>> >>>>>>>>>>>>> directly submit your instance to "/activityList", or do an >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> xforms:load >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> to that same URL? >>>>>>>>>>>>> >>>>>>>>>>>>> -Erik >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >> --------------------------------------------------------------------- >> >>>> >>>> >>>>>> >>>>>> >>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>>> - >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> 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 >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> Ing. Leonardo Reale >>>>>>>>>>>> >>>>>>>>>>>> QUIX S.r.l. >>>>>>>>>>>> >>>>>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>>>>> 41019 - Soliera (MO) >>>>>>>>>>>> Loc.Appalto - ITALY >>>>>>>>>>>> Tel. 0039 059 565388 >>>>>>>>>>>> Fax. 0039 059 565322 >>>>>>>>>>>> >>>>>>>>>>>> [hidden email] >>>>>>>>>>>> [hidden email] >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >> --------------------------------------------------------------------- >> >>>> >>>> >>>>>> >>>>>> >>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>> - >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> 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 >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Ing. Leonardo Reale >>>>>>>>>> >>>>>>>>>> QUIX S.r.l. >>>>>>>>>> >>>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>>> 41019 - Soliera (MO) >>>>>>>>>> Loc.Appalto - ITALY >>>>>>>>>> Tel. 0039 059 565388 >>>>>>>>>> Fax. 0039 059 565322 >>>>>>>>>> >>>>>>>>>> [hidden email] >>>>>>>>>> [hidden email] >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >> --------------------------------------------------------------------- >> >>>> >>>> >>>>>> >>>>>> >>>>>> >>>>>>>> - >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> -- >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> 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 >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> -- >>>>>>>> Ing. Leonardo Reale >>>>>>>> >>>>>>>> QUIX S.r.l. >>>>>>>> >>>>>>>> Strada Statale 413, 160/162 >>>>>>>> 41019 - Soliera (MO) >>>>>>>> Loc.Appalto - ITALY >>>>>>>> Tel. 0039 059 565388 >>>>>>>> Fax. 0039 059 565322 >>>>>>>> >>>>>>>> [hidden email] >>>>>>>> [hidden email] >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >> --------------------------------------------------------------------- >> >>>> >>>> >>>>>> - >>>>>> >>>>>> >>>>>> >>>>>>> -- >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> 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 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> Yes..., the error is "premature-end of file". >>>>>> >>>>>> -- >>>>>> Ing. Leonardo Reale >>>>>> >>>>>> QUIX S.r.l. >>>>>> >>>>>> Strada Statale 413, 160/162 >>>>>> 41019 - Soliera (MO) >>>>>> Loc.Appalto - ITALY >>>>>> Tel. 0039 059 565388 >>>>>> Fax. 0039 059 565322 >>>>>> >>>>>> [hidden email] >>>>>> [hidden email] >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >> --------------------------------------------------------------------- >> >>>> - >>>> >>>> >>>>> -- >>>>> >>>>> >>>>> -- >>>>> 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 >>>>> >>>>> >>>>> >>>> -- >>>> Ing. Leonardo Reale >>>> >>>> QUIX S.r.l. >>>> >>>> Strada Statale 413, 160/162 >>>> 41019 - Soliera (MO) >>>> Loc.Appalto - ITALY >>>> Tel. 0039 059 565388 >>>> Fax. 0039 059 565322 >>>> >>>> [hidden email] >>>> [hidden email] >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >> ---------------------------------------------------------------------- >> >>> -- >>> >>> >>> -- >>> 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 >>> >>> >> -- >> Ing. Leonardo Reale >> >> QUIX S.r.l. >> >> Strada Statale 413, 160/162 >> 41019 - Soliera (MO) >> Loc.Appalto - ITALY >> Tel. 0039 059 565388 >> Fax. 0039 059 565322 >> >> [hidden email] >> [hidden email] >> >> >> >> >> > > > > ------------------------------------------------------------------------ > > > -- > 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 > -- Ing. Leonardo Reale QUIX S.r.l. Strada Statale 413, 160/162 41019 - Soliera (MO) Loc.Appalto - ITALY Tel. 0039 059 565388 Fax. 0039 059 565322 [hidden email] [hidden email] -- 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 Leonardo-6
On 12/18/06, Leonardo Reale <[hidden email]> wrote:
> The premature end of file error is present in the url generator that > load the instance data from a single file xml. Leonardo, Reproducible test cases rule! So, here is the problem: ActivityList.xhtml loads an instance with <xforms:instance id="activitiesList" src="/xforms-quixBizApp/activities-model" />. This makes a request to /xforms-quixBizApp/activities-model. But that URL doesn't return anything. You can try by going there with your browser. This happens because the page flow entry for that page references to the XPL that generates the data with "model" instead of "view". The part of the page that generates data is the view. This might be confusing, because the data you generate is not HTML, but you still need to point to the XPL file with the "view" attribute. Alex -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Is there a complete RelaxNG/W3C schema or DTD for the XPL language? I
have found components in the documentation and pieced them together but there are some missing pieces. I haven't been able to locate a complete version in my searches? Thanks! Betty /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ Betty Harvey | Phone: 410-787-9200 FAX: 9830 Electronic Commerce Connection, Inc. | [hidden email] | Washington,DC SGML/XML Users Grp URL: http://www.eccnet.com | http://www.eccnet.com/xmlug/ /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/ Help Mac fight MLD (http://www.macsteam.org) Mark your calendar for October 28th (http://www.macsteam.org/BullROast.aspx) -- 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 all,
Is there a CSS that controls the appearance of auto-complete field in orbeon xforms? I really want to customize it in my project. Thanks in advance. Frank Feng --------------------------------- Digital Library Systems Developer The University of York York YO10 5DD UK -- 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 Betty Harvey
It's in ops.jar (which is itself in the war file) - under WEB-INF/lib.
You'll have to expand this, then look in org/orbeon/oxf/xml/schemas there's pipeline.rng and pipeline.xsd -----Original Message----- From: Betty Harvey [mailto:[hidden email]] Sent: 17 September 2008 14:14 To: [hidden email] Subject: [ops-users] XPL RelaxNG Is there a complete RelaxNG/W3C schema or DTD for the XPL language? I have found components in the documentation and pieced them together but there are some missing pieces. I haven't been able to locate a complete version in my searches? Thanks! Betty /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ Betty Harvey | Phone: 410-787-9200 FAX: 9830 Electronic Commerce Connection, Inc. | [hidden email] | Washington,DC SGML/XML Users Grp URL: http://www.eccnet.com | http://www.eccnet.com/xmlug/ /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/ Help Mac fight MLD (http://www.macsteam.org) Mark your calendar for October 28th (http://www.macsteam.org/BullROast.aspx) -- 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 Frank Feng
Hello,
I'm also interested. Because, with orbeon 3.5 and IE , there is a bug with the auto-complete. When you choose a value by the auto-complete of IE, this value doesn't update the xml instance . Thank you. -----Message d'origine----- De : yf508 [mailto:[hidden email]] Envoyé : mercredi 17 septembre 2008 15:39 À : [hidden email] Objet : [ops-users] Appearance of auto-complete field in orbeon xforms Hi all, Is there a CSS that controls the appearance of auto-complete field in orbeon xforms? I really want to customize it in my project. Thanks in advance. Frank Feng --------------------------------- Digital Library Systems Developer The University of York York YO10 5DD UK This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. -- 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 Betty Harvey
Hi Betty,
I think not. It is still listed as an open issue. http://www.w3.org/Submission/2005/SUBM-xpl-20050411/ XPL may be superceeded by XProc http://www.w3.org/Submission/2005/04/ since it was accepted as a formal submission also. In any case Orbeon will support both as it is warranted. --Hank On Sep 17, 2008, at 6:14 AM, Betty Harvey wrote: > Is there a complete RelaxNG/W3C schema or DTD for the XPL language? I > have found components in the documentation and pieced them together > but > there are some missing pieces. I haven't been able to locate a > complete > version in my searches? > > Thanks! > > Betty > > /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ > Betty Harvey | Phone: 410-787-9200 FAX: 9830 > Electronic Commerce Connection, Inc. | > [hidden email] | Washington,DC SGML/XML Users > Grp > URL: http://www.eccnet.com | http://www.eccnet.com/xmlug/ > /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/ > Help Mac fight MLD (http://www.macsteam.org) > Mark your calendar for October 28th (http://www.macsteam.org/ > BullROast.aspx) > > -- > 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 NEES@UCSB Institute for Crustal Studies, University of California, Santa Barbara 805-893-8042 -- 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 |
<quote who="Hank Ratzesberger"> > Hi Betty, > > I think not. It is still listed as an open issue. > > http://www.w3.org/Submission/2005/SUBM-xpl-20050411/ > > XPL may be superceeded by XProc > > http://www.w3.org/Submission/2005/04/ > > since it was accepted as a formal submission also. > In any case Orbeon will support both as it is warranted. > > --Hank <quote> It's in ops.jar (which is itself in the war file) - under WEB-INF/lib. You'll have to expand this, then look in org/orbeon/oxf/xml/schemas there's pipeline.rng and pipeline.xsd </quote> I found the pipeline.rng file when I unzipped the 'orbeon.jar' file. For us XML types having a schema really helps us understand the structure |-). Betty > > On Sep 17, 2008, at 6:14 AM, Betty Harvey wrote: > >> Is there a complete RelaxNG/W3C schema or DTD for the XPL language? I >> have found components in the documentation and pieced them together >> but >> there are some missing pieces. I haven't been able to locate a >> complete >> version in my searches? >> >> Thanks! >> >> Betty >> >> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ >> Betty Harvey | Phone: 410-787-9200 FAX: 9830 >> Electronic Commerce Connection, Inc. | >> [hidden email] | Washington,DC SGML/XML Users >> Grp >> URL: http://www.eccnet.com | http://www.eccnet.com/xmlug/ >> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/ >> Help Mac fight MLD (http://www.macsteam.org) >> Mark your calendar for October 28th (http://www.macsteam.org/ >> BullROast.aspx) >> >> -- >> 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 > > Hank Ratzesberger > NEES@UCSB > Institute for Crustal Studies, > University of California, Santa Barbara > 805-893-8042 > > > > > > /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ Betty Harvey | Phone: 410-787-9200 FAX: 9830 Electronic Commerce Connection, Inc. | [hidden email] | Washington,DC SGML/XML Users Grp URL: http://www.eccnet.com | http://www.eccnet.com/xmlug/ /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/ Help Mac fight MLD (http://www.macsteam.org) Mark your calendar for October 28th (http://www.macsteam.org/BullROast.aspx) -- 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 Frank Feng
Frank,
> Is there a CSS that controls the appearance of auto-complete field in orbeon > xforms? I really want to customize it in my project. i recommend using the firebug extension to firefox to analyze the resulting html and the css rules applied to certain controls. Regarding the autocomplete-field, the html may look as follows: <div> <span id="xforms-element-8" class="search-field xforms-control xforms-select1 xforms-incremental xforms-select1-appearance-xxforms-autocomplete xforms-select1-open xforms-visited"> <input class="xforms-select1-open-input" type="text" value="" autocomplete="off" name="xforms-select1-open-input-xforms-element-8"/> <select class="xforms-select1-open-select"> </select> </span> </div> taken from the google suggest example: http://www.orbeon.com/ops/xforms-google-suggests/ using firebug, you can find out which properties are connected to which class, so it should be no problem to define a custom css rule to override the default. hth florian -- 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 |
I think it's not possible to put this propertie in a CSS file , because it is a html property.
You can add this property on each input like that : <xforms:input xxforms:autocomplete="off" .../> Or you can write a javascript method wich modify all your input like that : <script language="JavaScript" type="text/javascript"> if (document.getElementsByTagName) { var inputElements = document.getElementsByTagName("input"); for (i=0; inputElements[i]; i++) { inputElements[i].setAttribute("autocomplete","off"); }//loop thru input elements }//basic DOM-happiness-check </script> -----Message d'origine----- De : Florian Schmitt [mailto:[hidden email]] Envoyé : jeudi 18 septembre 2008 10:02 À : [hidden email] Objet : [ops-users] Re: Appearance of auto-complete field in orbeon xforms Frank, > Is there a CSS that controls the appearance of auto-complete field in > orbeon xforms? I really want to customize it in my project. i recommend using the firebug extension to firefox to analyze the resulting html and the css rules applied to certain controls. Regarding the autocomplete-field, the html may look as follows: <div> <span id="xforms-element-8" class="search-field xforms-control xforms-select1 xforms-incremental xforms-select1-appearance-xxforms-autocomplete xforms-select1-open xforms-visited"> <input class="xforms-select1-open-input" type="text" value="" autocomplete="off" name="xforms-select1-open-input-xforms-element-8"/> <select class="xforms-select1-open-select"> </select> </span> </div> taken from the google suggest example: http://www.orbeon.com/ops/xforms-google-suggests/ using firebug, you can find out which properties are connected to which class, so it should be no problem to define a custom css rule to override the default. hth florian This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. -- 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 |
The problem is that I still want the auto-complete feature but with modified
appearance. The element I used is xforms:select1: <xforms:select1 ref="." class="input" selection="open" incremental="true" appearance="xxforms:autocomplete"> <xforms:help>...</xforms:help> <xforms:label class="vra-label">Name</xforms:label> <xforms:itemset nodeset="instance('data-dict')/image/agent/names/name"> <xforms:label ref="."/> <xforms:value ref="."/> </xforms:itemset> </xforms:select1> I donot want to switch autocomplete off. Any ideas? Thanks Frank -----Original Message----- From: Bittard, Julien [mailto:[hidden email]] Sent: 18 September 2008 10:01 To: [hidden email] Subject: [ops-users] RE: Re: Appearance of auto-complete field in orbeon xforms I think it's not possible to put this propertie in a CSS file , because it is a html property. You can add this property on each input like that : <xforms:input xxforms:autocomplete="off" .../> Or you can write a javascript method wich modify all your input like that : <script language="JavaScript" type="text/javascript"> if (document.getElementsByTagName) { var inputElements = document.getElementsByTagName("input"); for (i=0; inputElements[i]; i++) { inputElements[i].setAttribute("autocomplete","off"); }//loop thru input elements }//basic DOM-happiness-check </script> -----Message d'origine----- De : Florian Schmitt [mailto:[hidden email]] Envoyé : jeudi 18 septembre 2008 10:02 À : [hidden email] Objet : [ops-users] Re: Appearance of auto-complete field in orbeon xforms Frank, > Is there a CSS that controls the appearance of auto-complete field in > orbeon xforms? I really want to customize it in my project. i recommend using the firebug extension to firefox to analyze the resulting html and the css rules applied to certain controls. Regarding the autocomplete-field, the html may look as follows: <div> <span id="xforms-element-8" class="search-field xforms-control xforms-select1 xforms-incremental xforms-select1-appearance-xxforms-autocomplete xforms-select1-open xforms-visited"> <input class="xforms-select1-open-input" type="text" value="" autocomplete="off" name="xforms-select1-open-input-xforms-element-8"/> <select class="xforms-select1-open-select"> </select> </span> </div> taken from the google suggest example: http://www.orbeon.com/ops/xforms-google-suggests/ using firebug, you can find out which properties are connected to which class, so it should be no problem to define a custom css rule to override the default. hth florian This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. -- 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 |
Frank,
> The problem is that I still want the auto-complete feature but with modified > appearance. The element I used is xforms:select1: (...) which component do you want to modify exactly? If it's the box listing the autocomplete-suggestions, i fear this is quite complicated. That box is a html table with style attributes directly attached (not using a class attribute and css rule as usual). So you will have to modify the source that builds that html table, and i don't have any idea where the relevant code is located... :-| florian -- 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 |
Florian,
Yes, I want to modify the appearance of the box listing suggestions. The screen dump is attached. Do you think that the style attributes are embed in the Java source code? (I'tried but didn't find a CSS in orbeon) Frank -----Original Message----- From: Florian Schmitt [mailto:[hidden email]] Sent: 18 September 2008 12:34 To: [hidden email] Subject: [ops-users] Re: RE: RE: Re: Appearance of auto-complete field in orbeon xforms Frank, > The problem is that I still want the auto-complete feature but with > modified appearance. The element I used is xforms:select1: (...) which component do you want to modify exactly? If it's the box listing the autocomplete-suggestions, i fear this is quite complicated. That box is a html table with style attributes directly attached (not using a class attribute and css rule as usual). So you will have to modify the source that builds that html table, and i don't have any idea where the relevant code is located... :-| florian -- 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 tmp.JPG (15K) Download Attachment |
Frank,
> Yes, I want to modify the appearance of the box listing suggestions. The > screen dump is attached. Do you think that the style attributes are embed in > the Java source code? (I'tried but didn't find a CSS in orbeon) found it (i think) - it's not in the java source, it's defined in the suggest-actb.js / suggest-actb-min.js javascript files. They're packaged inside the /WEB-INF/lib/orbeon-ressources-public.jar file in the /ops/javascript folder. Lines 16-22 of suggest-actb.js contain the the styles applied to the autocomplete suggestions table. If your webapp is configured to use minimal resources [1] then you may have to modify the suggest-actb-min.js, instead. HTH florian [1] http://www.orbeon.com/blog/2007/03/12/combining-javascript-and-css-files-for-more-performance/ -- 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 |
Thanks Florian, it looks like the solution for my problem. I've tried it but
it's not working in my server (Orbeon 3.6). Frank -----Original Message----- From: Florian Schmitt [mailto:[hidden email]] Sent: 18 September 2008 13:41 To: [hidden email] Subject: [ops-users] Re: RE: Re: RE: RE: Re: Appearance of auto-complete field in orbeon xforms Frank, > Yes, I want to modify the appearance of the box listing suggestions. > The screen dump is attached. Do you think that the style attributes > are embed in the Java source code? (I'tried but didn't find a CSS in > orbeon) found it (i think) - it's not in the java source, it's defined in the suggest-actb.js / suggest-actb-min.js javascript files. They're packaged inside the /WEB-INF/lib/orbeon-ressources-public.jar file in the /ops/javascript folder. Lines 16-22 of suggest-actb.js contain the the styles applied to the autocomplete suggestions table. If your webapp is configured to use minimal resources [1] then you may have to modify the suggest-actb-min.js, instead. HTH florian [1] http://www.orbeon.com/blog/2007/03/12/combining-javascript-and-css-files-for -more-performance/ -- 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 |
Frank,
> Thanks Florian, it looks like the solution for my problem. I've tried it but > it's not working in my server (Orbeon 3.6). hmm - which steps did you execute to apply the changes? did you restart the server (the resources are cached usually, so just replacing the files may have no effect)? florian -- 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, I modified the js file, updated .jar file, then re-started tomcat. I
will try it in the other web app server later just in case. Frank -----Original Message----- From: Florian Schmitt [mailto:[hidden email]] Sent: 18 September 2008 15:26 To: [hidden email] Subject: [ops-users] Re: RE: Re: RE: Re: RE: RE: Re: Appearance of auto-complete field in orbeon xforms Frank, > Thanks Florian, it looks like the solution for my problem. I've tried > it but it's not working in my server (Orbeon 3.6). hmm - which steps did you execute to apply the changes? did you restart the server (the resources are cached usually, so just replacing the files may have no effect)? florian -- 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 Betty Harvey
Glad you found it ;-) Also useful for completion if you use an XML
editor. -Erik On Sep 17, 2008, at 7:44 PM, Betty Harvey wrote: > > <quote who="Hank Ratzesberger"> >> Hi Betty, >> >> I think not. It is still listed as an open issue. >> >> http://www.w3.org/Submission/2005/SUBM-xpl-20050411/ >> >> XPL may be superceeded by XProc >> >> http://www.w3.org/Submission/2005/04/ >> >> since it was accepted as a formal submission also. >> In any case Orbeon will support both as it is warranted. >> >> --Hank > > From Steve Bayliss: > > <quote> > It's in ops.jar (which is itself in the war file) - under WEB-INF/lib. > You'll have to expand this, then look in > > org/orbeon/oxf/xml/schemas > > there's pipeline.rng and pipeline.xsd > </quote> > > I found the pipeline.rng file when I unzipped the 'orbeon.jar' > file. For > us XML types having a schema really helps us understand the > structure |-). > > Betty > > > >> >> On Sep 17, 2008, at 6:14 AM, Betty Harvey wrote: >> >>> Is there a complete RelaxNG/W3C schema or DTD for the XPL >>> language? I >>> have found components in the documentation and pieced them together >>> but >>> there are some missing pieces. I haven't been able to locate a >>> complete >>> version in my searches? >>> >>> Thanks! >>> >>> Betty >>> >>> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ >>> \/ >>> Betty Harvey | Phone: 410-787-9200 FAX: 9830 >>> Electronic Commerce Connection, Inc. | >>> [hidden email] | Washington,DC SGML/XML Users >>> Grp >>> URL: http://www.eccnet.com | http://www.eccnet.com/xmlug/ >>> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/ >>> Help Mac fight MLD (http://www.macsteam.org) >>> Mark your calendar for October 28th (http://www.macsteam.org/ >>> BullROast.aspx) >>> >>> -- >>> 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 >> >> Hank Ratzesberger >> NEES@UCSB >> Institute for Crustal Studies, >> University of California, Santa Barbara >> 805-893-8042 >> >> >> >> >> >> > > > /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ > Betty Harvey | Phone: 410-787-9200 FAX: 9830 > Electronic Commerce Connection, Inc. | > [hidden email] | Washington,DC SGML/XML Users > Grp > URL: http://www.eccnet.com | http://www.eccnet.com/xmlug/ > /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/ > Help Mac fight MLD (http://www.macsteam.org) > Mark your calendar for October 28th (http://www.macsteam.org/BullROast.aspx > ) > > -- > 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 |
Administrator
|
In reply to this post by Frank Feng
Frank,
BTW you don't have to update the JAR file, you can directly put your modified file under WEB-INF/resources/[same path as you had in the JAR]. This is convenient when you just want to patch a files files within a JAR. -Erik On Sep 18, 2008, at 7:29 AM, yf508 wrote: > Yes, I modified the js file, updated .jar file, then re-started > tomcat. I > will try it in the other web app server later just in case. > > Frank > > > > -----Original Message----- > From: Florian Schmitt [mailto:[hidden email]] > Sent: 18 September 2008 15:26 > To: [hidden email] > Subject: [ops-users] Re: RE: Re: RE: Re: RE: RE: Re: Appearance of > auto-complete field in orbeon xforms > > Frank, > >> Thanks Florian, it looks like the solution for my problem. I've tried >> it but it's not working in my server (Orbeon 3.6). > > hmm - which steps did you execute to apply the changes? did you > restart the > server (the resources are cached usually, so just replacing the > files may > have no effect)? > > florian > > > -- > 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 |