Re: validation

2006-12-20 Thread Jason Johnston
I looked back at the 2.1.4 Woody source code and the validation-errors styling element was indeed available at that time. Of course, I forgot that since you're using Woody and not CForms, the namespace is different, so it would probably be wi:validation-errors rather than fi:validation-errors.

Re: validation

2006-12-20 Thread Pedro Fuentefria
Try this in the form-model submit widget: var forma = event.source.form; if (!forma.isValid()) { forma.lookupWidget("/message").setValue("form with errors...");

Use of StringXMLizable in a custom transformer

2006-12-20 Thread Frank Rocholl
Hi all, I've tried to use the class StringXMLizable to insert xml data into the sax stream. When I serialize the stream without further transformation everything works fine. When I tried to transform the output stream with xslt stylesheet ( This is StringXMLizable " + " this

Re: validation

2006-12-20 Thread Roel Croonenberghs
It does not work *snif Jason Johnston <[EMAIL PROTECTED]> 20/12/2006 15:28 Please respond to users@cocoon.apache.org To users@cocoon.apache.org cc Subject Re: validation Roel Croonenberghs wrote: > > Hi, > > Where do I put that javascript code? I still use cocoon 2.1.4. width > w

Re: set a session attribute in the sitemap

2006-12-20 Thread Roel Croonenberghs
it works tnx Jeroen Reijn <[EMAIL PROTECTED]> 19/12/2006 20:04 Please respond to users@cocoon.apache.org To users@cocoon.apache.org cc Subject Re: set a session attribute in the sitemap Hmm I was a little bit to fast with the trigger :-) I mean that it should become Kind rega

Re: set a session attribute in the sitemap

2006-12-20 Thread Mark Lundquist
On Dec 19, 2006, at 2:03 PM, Jeroen Reijn wrote: Well if I look back at my emails, I'm afraid that the emails are meant the way I wanted them. Both session-propagator emails were a reply to the part where Roel had problems with a 'namespace not defined' error in his sitemap after trying the S

Re: validation

2006-12-20 Thread Jason Johnston
Roel Croonenberghs wrote: Hi, Where do I put that javascript code? I still use cocoon 2.1.4. width woody forms. Is there no other way? I don't know if it was available in the version of woody you're using, but in current CForms there is the element which aggregates all the validation e

RE: validation

2006-12-20 Thread Roel Croonenberghs
Hi, Where do I put that javascript code? I still use cocoon 2.1.4. width woody forms. Is there no other way? "Robby Pelssers, AGP" <[EMAIL PROTECTED]> 20/12/2006 12:11 Please respond to users@cocoon.apache.org To cc Subject RE: validation Hi Roel, you could in javascript ask yo

RE: validation

2006-12-20 Thread Robby Pelssers, AGP
Hi Roel, you could in javascript ask your form to validate itself suppose we have something like var form = new Form("userform.xml"); var formWidget = form.form; suppose now your formWidget has a field with id="validationError" then you could write in your while(true) loop something

Re: validation

2006-12-20 Thread Roel Croonenberghs
Hello, I use the required attribute. And I get a ! next to the filed. When I click that ! then I get to see te message. But I want to (next to this behaviour ) that i can display a message at the bottom of my form to tell the user that the form did not validate. (because users tend to ove

Re: validation

2006-12-20 Thread bart remmerie
Dear Roel, In your form-definition, you can declare whether or not a field is required: (See http://cocoon.apache.org/2.1/userdocs/widgets/widget_field.html) When a field has required="true", a message is displayed when the field is not filled out (on form-submit) (when using standard validatio