Re: Re: forms binding for enum

2006-11-27 Thread Jan Behrens
Jan Mark Lundquist <[EMAIL PROTECTED]> schrieb am 27.11.2006 14:37:04: > > On Nov 27, 2006, at 12:28 AM, Jan Behrens wrote: > > > May I ask > > one more question? I would like to validate the selection made by the > > user, depending on the state of an java objec

Re: forms binding for enum

2006-11-27 Thread Jan Behrens
Hi Mark, thanks! Works now as expected and your explanation makes sense. May I ask one more question? I would like to validate the selection made by the user, depending on the state of an java object. If the selection is disallowed, a submit action should return to the input form and mark the

forms binding for enum

2006-11-26 Thread Jan Behrens
Hi All, I am trying to bind a given value from within an xml file to an selection list based on an enum datatype. Without data in the bound xml file, the list gets displayed nicely and is serialized allright. If however the file contains the same serialzed value, I allways get the following err

Re: Cocoon Application structure | cocoon-app/WEB-INF/classes..

2006-11-22 Thread Jan Behrens
Hi Dariusz, could you explain some more what you are trying to achieve? > My cocoon structure is as follows: > > cocoon > +--cocoon-app > ...+--- conf > ...+--- app > ...+--- src > ...+--- classes > ...+--WEB-INF > ..+--- classes > .+-- com > .+-- hibernate.cfg.xml > ...

Re: Auto forwarding after successful continuation

2006-11-22 Thread Jan Behrens
Hi, bear with me - it has been a short night :) Using cocoon.redirectTo() instead of cocoon.redirect() works. Mea culpa, Jan > thanks Mark for the pointer! If I use "cocoon.redirect( > "//saveOrder.do?id="+documentUri,true);" I unfortunately get the following > error: > > org.mozilla.javas

Re: Auto forwarding after successful continuation

2006-11-22 Thread Jan Behrens
Hi, thanks Mark for the pointer! If I use "cocoon.redirect( "//saveOrder.do?id="+documentUri,true);" I unfortunately get the following error: org.mozilla.javascript.EcmaError: redirect is not a function. TypeError - file:/D:/programming/server/JBoss.4.0.4/server/default/./tmp/deploy/project/cfo

Auto forwarding after successful continuation

2006-11-21 Thread Jan Behrens
Hi All, I am using cocoon (forms and binding mostly) to edit a large xml (data) file within a complex webapp. What I would like to do now is auto-forward the used to a different URL after successfull continuation. Is there an easy way to do this? The target will not be one handled by coccon but

Re: Debug output of pipelines

2006-11-17 Thread Jan Behrens
ri); var schemaName = cocoon.parameters["schemaName"]; form.load(document); form.showForm("form-display-pipeline/" + schemaName + ".xsd"); form.save(document); saveDocument(document, documentUri); cocoon.sendPage(documentUri); } [EMAIL PROTECTED] schrieb am

Debug output of pipelines

2006-11-16 Thread Jan Behrens
Hi All, could someone give me a hint on howto output the result of each transformation within my cached pipeline (below)? It would be great to be able to look at the result of each transformation afterwards to see what I am doing wrong. Is that possible? Trivial? TIA, Jan

Re: Problem with Session under Cocoon 2.1

2006-11-16 Thread Jan Behrens
Hi, as has been said before, the main "problem" (if you want to say so) is the fact that, the session is provided by the servlet container (e.g. Tomcat). Usually the main purpose of a session is to identify a returning user (session), this is commonly achieved by associating each new user with

Re: Re: Cocoon-based RSS server

2006-11-14 Thread Jan Behrens
t; how-to on using xml bindings to write to an XML file? (preferrably to > update an existing XML file?) > > -James > > On 11/10/06, Jan Behrens <[EMAIL PROTECTED]> wrote: > > Hi James, > > > > couldn't you just use cforms along with xml binding to seri

Re: Cocoon-based RSS server

2006-11-09 Thread Jan Behrens
Hi James, couldn't you just use cforms along with xml binding to serialize the input from a form into a new xml file on the server? This is not really RSS specific but could still be a fast way to achieve this. I am a newbee, so if this doesn't realy makes sense, please tell me. HTH, Jan "Jame

Re: cforms xml binding with xs:choice

2006-11-08 Thread Jan Behrens
Giacomo Pati <[EMAIL PROTECTED]> schrieb am 08.11.2006 09:21:21: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Jan Behrens wrote: > > Hi, > > > > working on my first Cocoon project I am facing the following problem; I am > > generating a html

cforms xml binding with xs:choice

2006-11-07 Thread Jan Behrens
Hi, working on my first Cocoon project I am facing the following problem; I am generating a html form using cforms from a given schema (and accompanying xml data file). The schema contains a couple of xs:choice instructions. At the moment this is treated as the same as a sequence, e.g. the form

Re: Schema2CocoonForms sample updated

2006-11-01 Thread Jan Behrens
Many Thanks to Niels for updating his example and his super fast and helpful response to my (of list) mail! I would very much vote for an integration into the samples, there might be others like me that are especially interested in this kind of setup and would benefit from such an example as pa

Question on howto set up minimal config for cforms

2006-10-31 Thread Jan Behrens
Hi list, taking my first steps with cocoon I am trying to set up an initial webapp (my "getting started" project) under eclipse that will allow me to use cforms to generate an html form from a (large) xml file and its schema. The question now is what I really need to have to do this. - I have s

Re: Dynamically creating a form from XML with cforms

2006-10-31 Thread Jan Behrens
chema2CocoonForms > > (Please note I am not the author of this, nor have I tried it!) > > PS Apart from the samples, the online docs are also key to > understanding CForms: > http://cocoon.apache.org/2.1/userdocs/basics/index.html > > >>> Jan Behrens <[E

Dynamically creating a form from XML with cforms

2006-10-31 Thread Jan Behrens
Hi list, I am an newbie to cocoon (but not to Java and web technologies). I would like to use cocoon to generate a html form for a given XML data file. The XML is defined in an XSD schema. Ideally I would like to have only to supply my XML data and the XSD and than have (*doMiracle()*) cocoon