The issues with JS get harrier when you mix AJAX (zones) and components
or mixins that use external JS or CSS. Essentially, they won't be
included unless they were already included on the page. A ticket (with a
patch) is open for this issue:
https://issues.apache.org/jira/browse/TAPESTRY-2390
Josh
Right now, in 5.0.11, there are some holes in the client side events
and callbacks. You can get something to work, it requires a bit of
wiring. You'll also want to know a bit about Zones and read
tapestry.js to get a handle on what's going on.
If you attach your form to a zone, then when the form
ofcourse
2008/5/8 lebenski <[EMAIL PROTECTED]>:
>
> By using a vanilla Ajax Request wouldn't you be bypassing all the benefits
> you get from the Tapestry Form Event lifecycle and Tesptry forms in
> general?
>
>
> Sven Homburg wrote:
> >
> > if your requirement is a login without a page refresh
>
By using a vanilla Ajax Request wouldn't you be bypassing all the benefits
you get from the Tapestry Form Event lifecycle and Tesptry forms in general?
Sven Homburg wrote:
>
> if your requirement is a login without a page refresh
> the using of OnEvent is in this case not the right way
> becaus
if your requirement is a login without a page refresh
the using of OnEvent is in this case not the right way
because OnEvent doesnt know anything about the username and password values.
i think the best way is, write your own Ajax.Request script
that submits the form values to tapestry
2008/5/8
It was the only way I could think to do the javascript callback - using
onCompleteCallback. I'm pretty new to Tapestry, so most of what I've done
has been trial and error, is there a better way to do the callback?
--
View this message in context:
http://www.nabble.com/Problem-with-form-submis
what is your reason to attach the OnEvent Mixin to the Login form ?
2008/5/7 stuffhere <[EMAIL PROTECTED]>:
>
> Ok, I've put some prints in the setters and the form event methods, this
> is
> what I get out:
>
> logging in member
> 127.0.0.1 - - [07/May/2008:17:00:29 +] "POST
> /home.la
Ok, I've put some prints in the setters and the form event methods, this is
what I get out:
logging in member
127.0.0.1 - - [07/May/2008:17:00:29 +] "POST
/home.landingpage.loginwidget.loginform:submit HTTP/1.1" 200 2 "-"
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gec
P.S. I think this is a problem with the onevent stuff - if I just do a normal
submit, the onSubmitFromLoginForm function only gets called once.
--
View this message in context:
http://www.nabble.com/Problem-with-form-submission-with-callback-tp17106416p17106419.html
Sent from the Tapestry - User