Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

[T5] - Using a mixin on a beaneditform to do an submit without a
page reload

BarryDev

2008-10-28

Replies: Find Java Web Hosting

Author LoginPost Reply

Hello everyone,

I'm still beavering away at getting my chatroom working in tapestry 5. I've
got a proper hibernate/spring layer now instead of my singleton and I can
reliably capture a user leaving the chatroom page with onbeforeunload.

Now I'm trying to add a beaneditform to allow users to send a string of text
to the chat room. This works currently and the chatlines making it to
database. Unfortunately during the page submit this reloads my page which
is logging out my user due to window.onbeforeunload being triggered. I can
work around this but I think its a good opportunity to learn some more about
mixins and ajax submits.


I've found a few similar examples (mainly updating one combo box on change
from another parameter in a form) in the mailing list archive but nothing
that fits exactly. And I've read most of the docs around this but I'm still
not sure what's the best approach. Is there a mixin I can add to my
beaneditform which will just tell it to make an ajax call to my page without
reloading the whole page? Or is this not the correct approach?

--
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.