Hi,

I took the tapx datefield component as a base and altered it somewhat to my own needs. One of those was to add two javascript stacks I use @Import(stack = {CommonBaseStack.STACK_NAME, DateFieldStackV2.STACK_NAME})

It has taken me most of the day to figure out that this was the cause of the validation being called twice on formsubmit. Once with the correct input id, and one with a non existing input id. So if you set the validation to required validation will always fail as the nonexisting field obviously will always be null.

It seems like adding multiple stacks will for some reason add two processSubmission actions to the form. My understanding of the form handling at this level is not deep enough, but this smells like a bug. Can anyone shed their light on this issue?

Adding one of the stacks to the other and just importing one into my component fixes the problem. But shouldn't be importing multiple stacks be possible?

Cheers,
Joost

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to