RE: length to fi:styling maxlength

2008-10-29 Thread Gary Larsen
I figured I didn't get the question since it's rare I have an answer in this list:-) gary > -Original Message- > From: Christian Decker [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 29, 2008 4:58 PM > To: users@cocoon.apache.org > Subject: RE: length to fi:styling maxlength > >

RE: length to fi:styling maxlength

2008-10-29 Thread Christian Decker
Yup, that's what I'm doing, now I want this validation constraint (just the maximum length) to show up in the generated HTML, like I can already do by adding the , but it's really tedious work and error prone having to edit the templates to reflect the same constraints imposed by the validation mo

RE: length to fi:styling maxlength

2008-10-29 Thread Gary Larsen
Try fd:length validator: http://cocoon.apache.org/2.1/userdocs/widgetconcepts/validation.html gary > -Original Message- > From: Christian Decker [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 29, 2008 2:40 PM > To: users@cocoon.apache.org > Subject: fd:length to fi:stylin

fd:length to fi:styling maxlength

2008-10-29 Thread Christian Decker
Hi all, I'm trying to reflect my fd:length field in the form model to be reflected in the actual form that is generated as the maxlength attribute in the input field. Problem is that I know only how to do that by setting the fi:styling in the template, but I would like to have it automatically in

Sending different responses based on some conditions

2008-10-29 Thread Kjetil Kjernsmo
Hi all, I have a StatelessAppleController which does some simple checking on the data it receives. In most cases, it should sendPage, but there are a few rare situations where it should redirect or return a 502 HTTP code. This part of the code looks like this: if ("explain".equalsIgnore

Re: Can a Serializer acceess the Request Object ?

2008-10-29 Thread Andre Juffer
Hi, with reference to a previous discussion about accessing the HttpSession object in a possibly cocoon unrelated Java class (see [1] below), would the following work: public interface MyInterface { void someMethod(..); } public interface UserRepository { User getUser(Long id); } public

Re: How to configure the cocoon-2.2 database block ?

2008-10-29 Thread hussayn
Hi, all. >From your valuable input i have started a cookbook example as seen below. I have described, how to add the dependencies for the database block and the db-driver into the pom.xml (see below) Now i got followup questions: 1.) Do i still have to create a databases-drivers.properties fil

Re: How to configure the cocoon-2.2 database block ?

2008-10-29 Thread Robin Wyles
No need to put in your block manually, just declare it in your block's POM, something like this for MySQL: mysql mysql-connector-java 5.1.6 So long as your Maven repositories are correctly configured, Maven should download the jar, place it into your local Maven repositor