Re: Jquery Tooltip on production mode

2012-11-24 Thread Lance Java
Can you clear your browsers cache and try again? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Jquery-Tooltip-on-production-mode-tp5718174p5718223.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Use the power of tapestry components to generate PDFs

2012-11-24 Thread Lance Java
Hi Tapestry Users, I've just written a component that integrates the power of tapestry component templates with apache FOP to generate PDFs. This opens up the possibilities of creating reusable PDF component libraries such as a PDFGrid etc. Usage: I'm looking for a home for this component so if

How to detect if input field loses focus?

2012-11-24 Thread membersound
HI, I know I can catch client events like t:clientEvent="keyup". But how can I detect if the focus of an input field is lost (eg by TAB or just by clicking into another input field)? Thanks for any hints -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-detect-if-i

Re: How to detect if input field loses focus?

2012-11-24 Thread Thiago H de Paula Figueiredo
On Sat, 24 Nov 2012 10:53:09 -0200, membersound wrote: HI, Hi! I know I can catch client events like t:clientEvent="keyup". But how can I detect if the focus of an input field is lost (eg by TAB or just by clicking into another input field)? Due to your vague question, I'll give you a vag

obtaining locale in page classes

2012-11-24 Thread John
I want to format some numbers that are returned as String type properties on a page. In the page class how do I detect the locale so that I can create the right formatter? If I use a Grid and just returned the numbers as objects (Long or Integer) is there an easy way to get the Grid to format

Re: How to detect if input field loses focus?

2012-11-24 Thread membersound
I thought this would be a clear question. Ok, example: Instead of "keyup" I'm looking for some event that is triggered whenever the user leaves the textfield (either but hitting TAB or clicking into another field). -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-t

Re: How to detect if input field loses focus?

2012-11-24 Thread Geoff Callender
Yep, this really isn't a Tapestry question. In JavaScript you may need to listen to "focus", "blur", and "change" events. Perhaps this will help: http://localhost:8080/jumpstart/examples/javascript/reusable Cheers, Geoff On 25/11/2012, at 12:11 AM, membersound wrote: > I thought this

Re: How to detect if input field loses focus?

2012-11-24 Thread Geoff Callender
I meant: http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/reusable On 25/11/2012, at 12:16 AM, Geoff Callender wrote: > Yep, this really isn't a Tapestry question. In JavaScript you may need to > listen to "focus", "blur", and "change" events. Perhaps this will hel

Re: How to detect if input field loses focus?

2012-11-24 Thread membersound
Thanks, ok then let my question tapestry-related: Is is possible to attach some kind of "listener" to a @Property String variable? So that whenever the property is changed by interface, the listener detects it and comes in? I've done this with JSF sometimes, is it also possible in T without JS?

Re: How to detect if input field loses focus?

2012-11-24 Thread membersound
Thanks, ok then let my question tapestry-related: Is is possible to attach some kind of "listener" to a @Property String variable? So that whenever the property is changed by interface, the listener detects it and comes in? I've done this with JSF sometimes, is it also possible in T without JS?

Re: jQuery bind example does not work?

2012-11-24 Thread membersound
I had a look into this again, and still cannot get it to work, although it seems straight forward: .tml: .java: public onClick() { System.out.println("works"); //this never gets called! } Why is this not working?? -- View this message in context: http://tapestry.1045711.n5.nabble.com/jQ

Re: jQuery bind example does not work?

2012-11-24 Thread Chris Poulsen
Your example works just fine here (tapestry 5.3.6/tapestry5-jquery 3.3.4). I added a void return type to onClick(). So it seems that you have screwed something else up... On Sat, Nov 24, 2012 at 4:47 PM, membersound wrote: > I had a look into this again, and still cannot get it to work, alth

Re: jQuery bind example does not work?

2012-11-24 Thread membersound
Damn. That's strange as the rest of my T5 application works just fine... Did you try it in a clean project and could provide the working sample? -- View this message in context: http://tapestry.1045711.n5.nabble.com/jQuery-bind-example-does-not-work-tp5717712p5718237.html Sent from the Tapestr

Re: jQuery bind example does not work?

2012-11-24 Thread Chris Poulsen
No, it wasn't a clean project, I just thought your example looked like it ought to work, so I got curious and added the couple of lines from the example, to an existing project. I simply copied the textfield you provided and wrapped it in a t:form, added the property the field is bound to + the on

Re: jQuery bind example does not work?

2012-11-24 Thread membersound
OK thanks, at least I'm glad that I now have a working example for jquery bind. -- View this message in context: http://tapestry.1045711.n5.nabble.com/jQuery-bind-example-does-not-work-tp5717712p5718239.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Read value of a textfield from serverside without submit?

2012-11-24 Thread membersound
Hi, I want to read a value from a textfield that is inside a form, but has not been submitted. Who can I extract the unsubmitted value from serverside using java-code (not js)? Thanks -- View this message in context: http://tapestry.1045711.n5.nabble.com/Read-value-of-a-textfield-from-servers

Re: How to detect if input field loses focus?

2012-11-24 Thread Thiago H de Paula Figueiredo
On Sat, 24 Nov 2012 11:20:10 -0200, membersound wrote: Thanks, ok then let my question tapestry-related: Is is possible to attach some kind of "listener" to a @Property String variable? So that whenever the property is changed by interface, the listener detects it and comes in? Server-side,

Re: Read value of a textfield from serverside without submit?

2012-11-24 Thread Thiago H de Paula Figueiredo
On Sat, 24 Nov 2012 16:21:11 -0200, membersound wrote: Hi, Hi! I want to read a value from a textfield that is inside a form, but has not been submitted. Who can I extract the unsubmitted value from serverside using java-code (no js)? Data is only sent to the server when a request is m

Re: Read value of a textfield from serverside without submit?

2012-11-24 Thread membersound
OK I see. What I want to do: the user should enter some values in a textfield, and if he goes to the next field a backing method is invoked. This is done by using t:mixins="jquery/bind" t:event="theEvent". Now within the onTheEvent() method I want to have the value that the user just entered in t

Re: Read value of a textfield from serverside without submit?

2012-11-24 Thread Thiago H de Paula Figueiredo
On Sat, 24 Nov 2012 16:51:15 -0200, membersound wrote: What I want to do: the user should enter some values in a textfield, and if he goes to the next field a backing method is invoked. This is done by using t:mixins="jquery/bind" t:event="theEvent". When asking about tapestry-jquery provi

Re: Read value of a textfield from serverside without submit?

2012-11-24 Thread membersound
Sorry for hiding information. But my question still does not only apply to T-jquery, but Tapestry in general. I could for example create a form and a link that says "fetch the value from specific input field" without submitting the form. The link would be bound to any backing method, and within t

Zones / Forms in a loop - Which iteration invoked the action?

2012-11-24 Thread Lenny Primak
... Java onStart() { // how do I know which one of the start buttons got pushed? // there are n possibilities since there are n loop iterations return zone.getBody(); } Thanks for your help! - To uns

Re: Zones / Forms in a loop - Which iteration invoked the action?

2012-11-24 Thread Dragan Sahpaski
Maybe use the form's context param to differentiate which form got submitted, and handle onSubmit or onSuccess instead of the submit event? Cheers, Dragan Sahpaski On Sat, Nov 24, 2012 at 8:31 PM, Lenny Primak wrote: > > > > > > > > > ... Java > > onStart() > { > // how

Re: Zones / Forms in a loop - Which iteration invoked the action?

2012-11-24 Thread Lenny Primak
I tried that way too, but the problem is I can't correlate the button events with the form submission event either. Thanks for your help though On Nov 24, 2012, at 3:09 PM, Dragan Sahpaski wrote: > Maybe use the form's context param to differentiate which form got > submitted, and handle onSubmi

Re: Zones / Forms in a loop - Which iteration invoked the action?

2012-11-24 Thread Dragan Sahpaski
Did you try defer="false" ? http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Submit.html Cheers, Dragan Sahpaski On Sat, Nov 24, 2012 at 9:12 PM, Lenny Primak wrote: > I tried that way too, but the problem is I can't correlate the button > events with the form

Re: Zones / Forms in a loop - Which iteration invoked the action?

2012-11-24 Thread Lenny Primak
Just tried it, it does not. I think if the submit components themselves are in a loop, that would work, but the actual zone and form complex is in a loop itself. On Nov 24, 2012, at 3:14 PM, Dragan Sahpaski wrote: > Did you try defer="false" ? > http://tapestry.apache.org/current/apidocs/org/apa

Re: Read value of a textfield from serverside without submit?

2012-11-24 Thread Thiago H de Paula Figueiredo
On Sat, 24 Nov 2012 17:23:33 -0200, membersound wrote: But my question still does not only apply to T-jquery, but Tapestry in general. I could for example create a form and a link that says "fetch the value from specific input field" without submitting the form. The link would be bound to a

Re: [5.3.6] Validation errors are only shown on the second submit

2012-11-24 Thread Muhammad Gelbana
Just wondering if anyone had time to look this up. I can't decide if I did anything wrong. Thanks. On Tue, Nov 20, 2012 at 12:51 PM, Muhammad Gelbana wrote: > Ok so I ripped much of my original page's and kept the essentials only. > Thank you for your time. > > > On Tue, Nov 20, 2012 at 11:34 AM,

Re: Tapestry-JQuery: use of GoogleMap component

2012-11-24 Thread David Canteros
Thank you Emmanuel, i will try it! David -- David Germán Canteros 2012/11/23 Emmanuel DEMEY > It is just a problem of the jQuery Widget. I found a solution (in French > sorry http://www.touraineverte.com/gmap3/api/get-address.htm

Include the same t:block multiple times?

2012-11-24 Thread membersound
Hi, I have a t:block element which I want to be displayed 2 times. Inside is a zone that if updated should update in BOTH locations. Problem is: whenever I update the zone, only the first delegate gets updated. The second stays on the old value. Can't I use a block multiple times? How can I

Re: Include the same t:block multiple times?

2012-11-24 Thread Muhammad Gelbana
I suppose you need to use "AjaxResponseRenderer" http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/multiplezoneupdate On Sun, Nov 25, 2012 at 1:34 AM, membersound wrote: > Hi, > > I have a t:block element which I want to be displayed 2 times. Inside is a > zone that if updated shoul

Re: How to detect if input field loses focus?

2012-11-24 Thread Geoff Callender
Have a look at JumpStart's AjaxValidator mixin. It observes change of focus. You might need to observe blur and change too: http://localhost:8080/jumpstart/examples/ajax/validators1 Cheers, Geoff On 25/11/2012, at 5:39 AM, Thiago H de Paula Figueiredo wrote: > On Sat, 24 Nov 2012 11:2

Re: How to detect if input field loses focus?

2012-11-24 Thread membersound
Thanks, that's nice. I also just found the ajax OnEvent example very useful. Just changed the keyup event to "blur" and voila, that's exactly what I needed. (http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/onevent) -- View this message in context: http://tapestry.1045711.n5.nabb

Re: Ajax examples form Jumpstart do not work?

2012-11-24 Thread Geoff Callender
Are you using tapestry5jQuery too? If so, have you put the right entries in AppModule to prevent conflicts with Prototype? http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/jquery On 25/11/2012, at 1:30 AM, membersound wrote: > http://jumpstart.doublenegative.com.au/

Re: Zones / Forms in a loop - Which iteration invoked the action?

2012-11-24 Thread Geoff Callender
Is your problem different to these? http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/formsinaloop http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/eventlinksinaloop Cheers, Geoff On 25/11/2012, at 7:20 AM, Lenny Primak wrote: > Just tried it, it do

Re: Zones / Forms in a loop - Which iteration invoked the action?

2012-11-24 Thread Lenny Primak
Once again, Geoff, fantastic work on JumpStart! Not quite... In the first example, none of the action buttons care in which zone/form they are in, they just set the global action variable. You can readily see the problem if you try to pass a context in the select or cancel button, as it will be

Any chance of getting this JIRA fixed?

2012-11-24 Thread Lenny Primak
https://issues.apache.org/jira/browse/TAP5-2014 Please vote for this, it keeps biting me more and more. Thank you! - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tape

Re: Zones / Forms in a loop - Which iteration invoked the action?

2012-11-24 Thread Geoff Callender
On 25/11/2012, at 12:37 PM, Lenny Primak wrote: > Once again, Geoff, fantastic work on JumpStart! Thanks Lenny. > Not quite... > In the first example, none of the action buttons care in which zone/form they > are in, they just set the global action variable. > You can readily see the problem i