Hi there,
it doesn't sound like a feature but having two forms in the same page, each of one has a different #defaultAction:, doesn't seem to work. It ends up rendering the same action url in both forms which doesn't make sense to me Am I missing a fix or I am getting something wrong? _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Sounds odd... any chance you have nested forms?
On Sat, Jun 30, 2012 at 1:17 AM, Sebastian Sastre <[hidden email]> wrote:
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Oh no, sorry... misread. :) Definitely seems weird if both forms are getting the same URL...
On Sat, Jun 30, 2012 at 3:39 AM, Julian Fitzell <[hidden email]> wrote: Sounds odd... any chance you have nested forms? _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Julian Fitzell-2
yes, it is unexpected and just to confirm, NOT nested On Jun 29, 2012, at 11:39 PM, Julian Fitzell wrote: Sounds odd... any chance you have nested forms? _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Have four assignments due on monday, so someone else will have to pick this up. :) But have you tried setting a break point and stepping through?
On Sat, Jun 30, 2012 at 10:32 PM, Sebastian Sastre <[hidden email]> wrote:
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by sebastianconcept@gmail.co
On Sat, Jun 30, 2012 at 2:17 AM, Sebastian Sastre
<[hidden email]> wrote: > Hi there, > > it doesn't sound like a feature but having two forms in the same page, each > of one has a different #defaultAction:, doesn't seem to work. > > It ends up rendering the same action url in both forms which doesn't make > sense to me > > Am I missing a fix or I am getting something wrong? Yes, they do have the same action URL. The technical reason for this is there's only one action continuation per render context and it's used for all forms on a page. The same action URL is also used for all the links on a page. However things should still work as they do for multiple links on the same page. The trick is that the different actions have different callback keys. So the default action in the first form should have a different callback key than the second. Only one of them should get submitted so only one of them should get executed. Can you verify this? Alternatively could you supply us with a simple demo application that demonstrates the problem? If have written a small application myself and haven't been able to reproduce the issue, to me everything seems to work fine. Cheers Philippe _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |