SimpleFormTransformer not working
Hello, I have been using SimpleFormTransformer (for prefilling form values from request parameters) for some time and everything worked ok. The declarations goes as follows: map:transformer name=simpleform logger=sitemap.transformer.simpleform src=org.apache.cocoon.transformation.SimpleFormTransformer/ The previous version that works and I am sure of is cocoon-2.1 20003.05.29 cvs snapshot right now I get these error messages in sitemap.log: DEBUG AbstractSAXTransformer: BEGIN setupTransforming DEBUG AbstractSAXTransformer: END setupTransforming DEBUG SimpleFormTransformer: startInputElement input attributes [EMAIL PROTECTED]'1' @name='visited' @type='hidden' ] DEBUG SimpleFormTransformer: replacing WARNSimpleFormTransformer: A problem occurred acquiring a value from 'request-param' for 'visited': null DEBUG SimpleFormTransformer: startNonCheckableElement input attributes [EMAIL PROTECTED]'1' @name='visited' @type='hidden' ] DEBUG SimpleFormTransformer: startInputElement input attributes [EMAIL PROTECTED]'repKey' @type='hidden' ] DEBUG SimpleFormTransformer: replacing WARNSimpleFormTransformer: A problem occurred acquiring a value from 'request-param' for 'repKey': null DEBUG SimpleFormTransformer: startNonCheckableElement input attributes [EMAIL PROTECTED]'repKey' @type='hidden' ] DEBUG SimpleFormTransformer: startInputElement input attributes [EMAIL PROTECTED]'repVis' @readonly='' @type='text' ] DEBUG SimpleFormTransformer: replacing WARNSimpleFormTransformer: A problem occurred acquiring a value from 'request-param' for 'repVis': null DEBUG SimpleFormTransformer: startNonCheckableElement input attributes [EMAIL PROTECTED]'repVis' @readonly='' @type='text' ] DEBUG SimpleFormTransformer: startErrorElement error attributes [EMAIL PROTECTED]'repKey' @when-ge='error' ] DEBUG SimpleFormTransformer: startInputElement input attributes [EMAIL PROTECTED]'' @type='text' @name='startdate' ] DEBUG SimpleFormTransformer: replacing WARNSimpleFormTransformer: A problem occurred acquiring a value from 'request-param' for 'startdate': null DEBUG SimpleFormTransformer: startNonCheckableElement input attributes [EMAIL PROTECTED]'' @type='text' @name='startdate' ] DEBUG SimpleFormTransformer: startErrorElement error attributes [EMAIL PROTECTED]'startdate' @when-ge='error' ] DEBUG SimpleFormTransformer: startInputElement input attributes [EMAIL PROTECTED]'' @type='text' @name='enddate' ] DEBUG SimpleFormTransformer: replacing WARNSimpleFormTransformer: A problem occurred acquiring a value from 'request-param' for 'enddate': null DEBUG SimpleFormTransformer: startNonCheckableElement input attributes [EMAIL PROTECTED]'' @type='text' @name='enddate' ] DEBUG SimpleFormTransformer: startErrorElement error attributes [EMAIL PROTECTED]'enddate' @when-ge='error' ] DEBUG SimpleFormTransformer: startInputElement input attributes [EMAIL PROTECTED]'button_main' @type='submit' @n and the form is empty after submitting. Is it an error or just interface change and I should adapt? ouzo -- __ | / \ |Leszek Gawron// \\ \_\\ //_/ [EMAIL PROTECTED] _\\()//_ .'/()\'. Phone: +48(501)720812 / // \\ \ \\ // recursive: adj; see recursive | \__/ | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SimpleFormTransformer not working
On Mon, Oct 27, 2003 at 05:14:54PM +0100, Leszek Gawron wrote: Hello, I have been using SimpleFormTransformer (for prefilling form values I forgot to tell you that the problem occurs in most recent cocoon 2.1 cvs snapshot ouzo -- __ | / \ |Leszek Gawron// \\ \_\\ //_/ [EMAIL PROTECTED] _\\()//_ .'/()\'. Phone: +48(501)720812 / // \\ \ \\ // recursive: adj; see recursive | \__/ | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SimpleFormTransformer not working
Leszek Gawron wrote: On Mon, Oct 27, 2003 at 05:14:54PM +0100, Leszek Gawron wrote: Hello, I have been using SimpleFormTransformer (for prefilling form values I forgot to tell you that the problem occurs in most recent cocoon 2.1 cvs snapshot ouzo, I can confirm this problem. First look suggests it's related to the move to the serviceable interface. E.g. using modules from logicsheet does fail as well but database actions work fine. I will try to look into this tomorrow after work. No promises, though. Patches are welcome ;-) Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SimpleFormTransformer not working
On 27.10.2003 22:10, Christian Haul wrote: Leszek Gawron wrote: On Mon, Oct 27, 2003 at 05:14:54PM +0100, Leszek Gawron wrote: Hello, I have been using SimpleFormTransformer (for prefilling form values I forgot to tell you that the problem occurs in most recent cocoon 2.1 cvs snapshot ouzo, I can confirm this problem. First look suggests it's related to the move to the serviceable interface. E.g. using modules from logicsheet does fail as well but database actions work fine. I will try to look into this tomorrow after work. No promises, though. Patches are welcome ;-) Chris. There I solved it with replacing also the ComponentSelectors with ServiceSelectors. Manager.lookup returns a WrappedServiceSelector. Did it few minutes ago the same way for SimpleFormTransformer. Can you test it? Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SimpleFormTransformer not working
Joerg Heinicke wrote: On 27.10.2003 22:10, Christian Haul wrote: ouzo, I can confirm this problem. First look suggests it's related to the move to the serviceable interface. E.g. using modules from logicsheet does fail as well but database actions work fine. I will try to look into this tomorrow after work. No promises, though. Patches are welcome ;-) There I solved it with replacing also the ComponentSelectors with ServiceSelectors. Manager.lookup returns a WrappedServiceSelector. Did it few minutes ago the same way for SimpleFormTransformer. Can you test it? Gee, that was fast!! Yes, the samples for the simple form transformers work after a CVS update. Thanks a lot, Jörg. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SimpleFormTransformer not working
On 27.10.2003 22:50, Christian Haul wrote: ouzo, I can confirm this problem. First look suggests it's related to the move to the serviceable interface. E.g. using modules from logicsheet does fail as well but database actions work fine. I will try to look into this tomorrow after work. No promises, though. Patches are welcome ;-) There I solved it with replacing also the ComponentSelectors with ServiceSelectors. Manager.lookup returns a WrappedServiceSelector. Did it few minutes ago the same way for SimpleFormTransformer. Can you test it? Gee, that was fast!! Yes, the samples for the simple form transformers work after a CVS update. Thanks a lot, Jörg. It was almost obvious after I searched for the reason for the non-working database samples on Saturday :-) Strange: the ClassCastException was only logged to Standard Out or Error (don't know exactly, at least to the Jetty console). Does anybody know why? Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]