Re: detect that a session has expired (how to?)

2004-11-30 Thread Benoit Deshaies
Have a look at HttpSessionListener. This requires modifing the web.xml if I remember. Also, in the past, I had an application that created some files on the hard drive that I wanted to delete when the user session ended (timeout or logout). To do this, I created a cleanup class that implemented

Form.js leakage

2004-10-21 Thread Benoit Deshaies
executive-summary When my forms application has been running for a while, Cocoon has thousands of file handles open for Form.js and fom_system.js, causing crashes. /executive-summary I'm developing a large CForm application. I'm now doing load testing and after a while, I get too many open files

[CForm] fd:repeater-action I18N problem

2004-07-20 Thread Benoit Deshaies
I think I found a problem with the repeater-action widget and I18N. The final rendered page shows the I18N key name instead of the translated value. In my form, I define the widget like so: fd:repeater-action ... fd:labeli18n:textbutton.add/i18n:text/fd:label /fd:repeater-action In my

CForm binding: creating objects?

2004-06-03 Thread Benoit Deshaies
object (invoke default constructor) ? fb:javascript ? fb:custom ? Many thanks, Benoit Deshaies __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com

Re: CForm binding: creating objects?

2004-06-03 Thread Benoit Deshaies
: if( report.getLatitude() == null ) report.setLatitude(new GeoCoordinate()); In that case, I think I will use fb:javascript. The only problem is that fb:javascript takes the ID of a widget. This initialization doesn't really apply to any widget in particular... Benoit Deshaies --- Marc Portier

Re: Adding a global validation message to a form?

2004-05-27 Thread Benoit Deshaies
html:errors at http://jakarta.apache.org/struts/userGuide/struts-html.html#errors Benoit Deshaies __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com

Re: how to do form custom validators

2004-05-25 Thread Benoit Deshaies
the validation code in the form definition, you're mixing the presentation and business layer. In that respect, I preferred the old-style JS validation function, which correctly put the business logic out of the presentation layer. Benoit Deshaies --- Vadim Gritsenko [EMAIL PROTECTED] wrote: See

[JspGenerator] StringIndexOutOfBoundsException when streaming to other Generators

2004-04-23 Thread Benoit Deshaies
:8080/cocoon/samples/jsp/outOfBounds - What I'm trying to accomplish: use a JSP to generate XML to feed to another pipeline. More precisely, use a JSP to generate an XForms document to be fed to JXFormsGenerator. Many thanks for looking into this. Benoit Deshaies