Ah okay. I'm trying to decide where is best to hook up some AJAX request to achieve this. The fields I need to validate are two DateFields (I believe the ChenilleKit components). I'm finding it hard, however to find the proper Prototype DOM event to bind the listener to.

I tried change, but this one does not seem to fire on these components. Meanwhile, blur occurs as you make a selection in the Calendar, that is you focus when you pop-up the calendar, then blur when you make a selection, and then focus again after you confirm the selection. So unfortunately, it seems like blur happens right before I could capture the new setting and validate it.

I looked at the source for DateField, but I didn't see anything that popped out at me.

The only other solution that occurred to me would be to somehow fire AJAX validation on the submit button, but there aren't many DOM events that will be able to fire the AJAX whilst not eventually submitting the form. As far as I'm aware, if I did click,mousedown, or mouseup, at some point before/during/after the AJAX the form will be submitted anyway and the new window will come up for the user. I could do mouseover, but that seems like a real hack not to mention something that would probably surprise the user.

Any suggestions?

Thanks,
Rich

On 10/25/2010 01:35 PM, Thiago H. de Paula Figueiredo wrote:
On Mon, 25 Oct 2010 15:29:52 -0200, Rich M <rich...@moremagic.com> wrote:

Hi,

Hi!

Is there a way to get the browser to open a new window from within Tapestry, maybe in a StreamResponse (since that I what I'm using to render the reports)?

AFAIK, no, as this is a purely client behavior. You'll need to solve this with a AJAX request just to validate the form before you do an actual form submission.



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

Reply via email to