Christian

My bad. It looks like the form validation action is the one that doesn't like the enctype="multipart/form-data" together with method="post" but multipart with put is fine as is no enctype with post. In the sitemap.log it reports all fields as null with that encoding/post.
Since I'm using simpleform in both the success and failure cases for the validation action I wrongly thought simpleform wasn't working.


It took me a while to figure it out but the problem was my form:
<form name="contact" method="post" enctype="multipart/form-data" action="contact-add">


If I remove the enctype attribute/value everything works correctly.

It shouldn't affect the transformer! If you could send me a minimal sample that shows the problem, I will try to fix it.

I did look at the sample - otherwise I wouldn't have been able to get any of this to work!
Although I think I will try to put a wiki together for the very simple use case; the added complexity of sfinstance in the simpleform sample really had me scratching my head for a while about the simple-form transformer declaration (as a newbie I still haven't gotten my head around the modular mechanism and the classes implementating it).


I also think I'll try to write a transformer that can transform the descriptor.xml file and into all the <error> entries for each of the <parameter> validation attributes (min-len, max-len, nullable, etc). I'd hate to enter that info for each error type manually for all my validating forms. To me this is the real power of Cocoon; define the model(s) and drive the site's views entirely from the data models through actions/transformations.

Thanks again
Steve

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to