Re: zoneUpdate on datefield

2013-07-13 Thread Yunhua Sang
In version 5.3.x (or before, not sure), the Tapestry will let document to fire a Tapestry.FOCUS_CHANGE_EVENT after the value gets changed in a DateField, as: document.fire(Tapestry.FOCUS_CHANGE_EVENT, this.field); So you could capture this event and do something you want. The 5.4.x changed it, s

Re: How to set HTML checkbox from java page

2013-07-13 Thread Lenny Primak
I just Voted for https://issues.apache.org/jira/browse/TAP5-2140 On Jul 13, 2013, at 6:54 PM, Barry Books wrote: > TAPS-2140 created with patch for Choose if someone can apply it. > Thanks > > > On Fri, Jul 12, 2013 at 4:39 PM, Lenny Primak wrote: > >> +1. A big plus one. >> >> >> >> On Jul

Re: How to set HTML checkbox from java page

2013-07-13 Thread Barry Books
TAPS-2140 created with patch for Choose if someone can apply it. Thanks On Fri, Jul 12, 2013 at 4:39 PM, Lenny Primak wrote: > +1. A big plus one. > > > > On Jul 12, 2013, at 5:34 PM, Lance Java wrote: > > > My personal preference is for the JSTL style > > > > > > value1 > > value2 > > d

Re: DefaultTreeModel doesnt user encoder to get the node

2013-07-13 Thread Boris Horvat
Hi Lance, Is there a maven repository that I could used, or do I have to download it manually? On Sat, Jun 22, 2013 at 3:02 PM, Lance Java wrote: > FYI I've just cleaned up the demo and added a bit of documentation > http://tapestry-stitch.uklance.cloudbees.net/databasetreedemo > > > > On 20 Ju

Re: zoneUpdate on datefield

2013-07-13 Thread John
I should of copied your onchange="$(this).closest('form').submit();" js (not used the form name) submitting the form is not an option for me because I'm using kaptcha and don't really want to submit the whole form each time - really need an ajax solution?! - Original Message - From:

Re: zoneUpdate on datefield

2013-07-13 Thread John
Here I have tried both using both the bind and onchange techniques. using the onchange event directly doesn't seem to do anything, maybe my js is bad unfortunately the bind mixin as with zoneUpdater doesn't catch the change event when it's fired by the date pickerm as with the zoneUpdater it on

Re: zoneUpdate on datefield

2013-07-13 Thread Boris Horvat
It could be that one of them works only for jquery events. Anyway you can do the same as me. User either bind mixin or normal form and zone On Sat, Jul 13, 2013 at 1:08 PM, John wrote: > ok, I see the jscalendar does fire onchange as your code below works, but > the t:clientEvent="change" for t

Re: zoneUpdate on datefield

2013-07-13 Thread John
ok, I see the jscalendar does fire onchange as your code below works, but the t:clientEvent="change" for the zoneUpdater doesn't capture the event - I find that a bit confusing? - Original Message - From: John To: Tapestry users Sent: Saturday, July 13, 2013 11:54 AM Subject:

Re: zoneUpdate on datefield

2013-07-13 Thread John
I think I need to modify the actual datepicker components js to trigger the onchange event as well. - Original Message - From: Boris Horvat To: Tapestry users Sent: Saturday, July 13, 2013 11:29 AM Subject: Re: zoneUpdate on datefield This is what I use On Sa

Re: zoneUpdate on datefield

2013-07-13 Thread Boris Horvat
This is what I use On Sat, Jul 13, 2013 at 12:29 PM, John wrote: > thanks, I'll look into your suggestions I am using jquery > > the onchange event only seems to trigger when the input receives focus, is > keyed and then loses focus (the date picker popup does none of these, maybe > it

Re: zoneUpdate on datefield

2013-07-13 Thread John
thanks, I'll look into your suggestions I am using jquery the onchange event only seems to trigger when the input receives focus, is keyed and then loses focus (the date picker popup does none of these, maybe it should!?) John - Original Message - From: Boris Horvat To: Tapestry

Re: zoneUpdate on datefield

2013-07-13 Thread Boris Horvat
You dont have to use zoneUpdater, just use normal form and submit it when a user changes a value. or you can use bind mixin (assuming that you are using tapestry5-jquery) On Sat, Jul 13, 2013 at 11:51 AM, John wrote: > I tried that first, it does nothing - not what I expected? > - Origina

Re: zoneUpdate on datefield

2013-07-13 Thread John
I tried that first, it does nothing - not what I expected? - Original Message - From: Boris Horvat To: Tapestry users Sent: Saturday, July 13, 2013 10:43 AM Subject: Re: zoneUpdate on datefield try using onchange event On Sat, Jul 13, 2013 at 11:44 AM, John wrote: >

Re: zoneUpdate on datefield

2013-07-13 Thread Boris Horvat
try using onchange event On Sat, Jul 13, 2013 at 11:44 AM, John wrote: > I am trying to catch changes to a datefield using the zoneUpdater mixin. > > The keyup event is fine for typing, but is there a way to capture the > value change when it's done using the date pickup popup? > > John --

zoneUpdate on datefield

2013-07-13 Thread John
I am trying to catch changes to a datefield using the zoneUpdater mixin. The keyup event is fine for typing, but is there a way to capture the value change when it's done using the date pickup popup? John