Re: woody form validation problem
Antonio Gallardo wrote: Also where the flow script is broken at waht line? It would help. Thank for the response! I'm not using flows because app has to run under Weblogic and I have no fix for WL that makes them usable... (If someone has tip for me... :) I will check the definitions again and see if I can find something there. Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: woody form validation problem
Antonio Gallardo wrote: From the below exception stack trace. I guess the problem is related to a bad validator. Concretly to a bad expression. Can you review your definitions in this way? Great! Problem was caused by a wd:assert -- as I don't need it removing it fixed the problem. Thank a lot, now I'm ready to roll-out the app... Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
woody form validation problem
Hi, I'm having a problem using woody which I can not find. Maybe someone has an idea about it. After filling out this form (one of dozends, displaying the form work fine) and submitting I'm getting around 1000 lines of exception. It's always the same, repeating at some point. In fact I'm getting the following over and over again: org.outerj.expression.EqualsFunction.evaluate(EqualsFunction.java:8) org.apache.cocoon.woody.datatype.validationruleimpl.AssertValidationRule.validate(AssertValidationRule.java:73) org.apache.cocoon.woody.datatype.typeimpl.AbstractDatatype.validate(AbstractDatatype.java:73) org.apache.cocoon.woody.formmodel.Field.getValue(Field.java:152) org.apache.cocoon.woody.formmodel.ExpressionContextImpl.resolveVariable(ExpressionContextImpl.java:105) org.outerj.expression.VariableFunction.evaluate(VariableFunction.java:26) [... then starting again:] org.outerj.expression.EqualsFunction.evaluate(EqualsFunction.java:8) Unfortunaly I cannot find this exception(s) in any logfile (cocoon, weblogic, ...) and the amount of lines is exceeding my scrollback buffer... :( Maybe someone has seen this messages or has an idea about what's going wrong here... Thanks! -- Patrick Hess - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: woody form validation problem
Patrick Hess dijo: From the below exception stack trace. I guess the problem is related to a bad validator. Concretly to a bad expression. Can you review your definitions in this way? Also where the flow script is broken at waht line? It would help. Best Regards, Antonio Gallardo Hi, I'm having a problem using woody which I can not find. Maybe someone has an idea about it. After filling out this form (one of dozends, displaying the form work fine) and submitting I'm getting around 1000 lines of exception. It's always the same, repeating at some point. In fact I'm getting the following over and over again: org.outerj.expression.EqualsFunction.evaluate(EqualsFunction.java:8) org.apache.cocoon.woody.datatype.validationruleimpl.AssertValidationRule.validate(AssertValidationRule.java:73) org.apache.cocoon.woody.datatype.typeimpl.AbstractDatatype.validate(AbstractDatatype.java:73) org.apache.cocoon.woody.formmodel.Field.getValue(Field.java:152) org.apache.cocoon.woody.formmodel.ExpressionContextImpl.resolveVariable(ExpressionContextImpl.java:105) org.outerj.expression.VariableFunction.evaluate(VariableFunction.java:26) [... then starting again:] org.outerj.expression.EqualsFunction.evaluate(EqualsFunction.java:8) Unfortunaly I cannot find this exception(s) in any logfile (cocoon, weblogic, ...) and the amount of lines is exceeding my scrollback buffer... :( Maybe someone has seen this messages or has an idea about what's going wrong here... Thanks! -- Patrick Hess - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form validation problem
Joe D. Williams wrote: Working on the examples in Chapter 12 of Lajos and Jeremy's book, I cannot get the new ticket form to return the results. It just keeps displaying the blank form, without updating the database. I am running Cocoon 2.0.4 on Tomcat 4.1.27 standalone with J2SDK1.4.1 and MySQL 4.0.16 The idea is to use the org.apache.cocoon.acting.DatabaseAddAction to put the info from a set of forms into a db. The info must first be validated using org.apache.cocoon.acting.FormValidatorAction. Looking at the sitemap log for the logger sitemap.action.validator I find a number of messages where it is validating the info from the forms. After this, there is a message: All form params validated. An error occurred. There will be a message in the sitemap.log indicating the validation error. In addition, the info is available as request attribute (so dump all request attributes on your page and you'll see). Besides, you should consider to move to cocoon forms aka Woody or at least use the database actions from the modular package. Their interface is a lot more consistent and have more docs. Chris. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form validation problem
I don't know the answer, but I've a suggestion. Using actions is old way of creating forms. There is great stuff developed recently for handling forms (validatin, binding etc.) called CocoonForms (WOODY). Dig into user docs and wiki pages and you'll find helpful information on flexible and powerful way of creating forms (also those backed up by database). Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Form validation problem
Working on the examples in Chapter 12 of Lajos and Jeremy's book, I cannot get the new ticket form to return the results. It just keeps displaying the blank form, without updating the database. I am running Cocoon 2.0.4 on Tomcat 4.1.27 standalone with J2SDK1.4.1 and MySQL 4.0.16 The idea is to use the org.apache.cocoon.acting.DatabaseAddAction to put the info from a set of forms into a db. The info must first be validated using org.apache.cocoon.acting.FormValidatorAction. Looking at the sitemap log for the logger sitemap.action.validator I find a number of messages where it is validating the info from the forms. After this, there is a message: All form params validated. An error occurred. There is nothing in the error log about this. But, in the core.log there is a warning: ExcaliburComponentSelector: Attempted to release a null component. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]