Re: Is there any way to get the selected item's index in loop after layout has been done?

2012-03-14 Thread karthi
I've seen your answer, Thank you very much for continuously helping me... Was looking for some tapestry code or a trick... Atlast one of my friends suggest me to add a property called position in pojo class set the value of the index to that when setting values for other items in tml page

Re: Is there any way to get the selected item's index in loop after layout has been done?

2012-03-14 Thread Lance Java
I'm not sure why you would want to pass an index around... surely an id is better? eg t:loop source=videoDatas value=videoItem t:pagelink page=someOtherPage t:context=videoItem.videoId / /t:loop If you NEED to pass the index (I strongly advise against this, what happens if you decide to let

Getting the HTML markup string from a RenderCommand

2012-03-14 Thread Lance Java
Hi people, there have been a few threads around lately about getting the HTML string from a block / render command on the serverside including: http://tapestry.1045711.n5.nabble.com/Rendering-components-in-Alerts-td5543434.html

Re: Rendering components in Alerts

2012-03-14 Thread Lance Java
See http://tapestry.1045711.n5.nabble.com/Getting-the-HTML-markup-string-from-a-RenderCommand-td5564418.html On Thursday, 8 March 2012, Magnus Kvalheim mag...@kvalheim.dk wrote: Thanks Kalle, For alerts I created issue: https://issues.apache.org/jira/browse/TAP5-1863 For the more general

Re: tml parameter rendered into a JavaScript string

2012-03-14 Thread Lance Java
See http://tapestry.1045711.n5.nabble.com/Getting-the-HTML-markup-string-from-a-RenderCommand-td5564418.html On Friday, 24 February 2012, Lance Java lance.j...@googlemail.com wrote: I am writing a google maps component which can display markers on a map, each marker has an info window when it is

T5.2.6 jquery2.6.0 jquery dialog close from included component

2012-03-14 Thread resign
Hi, is it possible to close the jquery dialog from included coponent? ... t:jquery.dialog t:clientId=myDialog t:params=dialogParam div id=searchSC t:searchScForContactComponent smdId=smdId / /div /t:jquery.dialog ... Thanks, resign -- View this

RE: T5.2.6 jquery2.6.0 jquery dialog close from included component

2012-03-14 Thread Demey Emmanuel
How do you want to close it ? with a link ? $('selector). .dialog( close ) in JavaScript http://jqueryui.com/demos/dialog/ Manu -Message d'origine- De : resign [mailto:sergejb...@yahoo.de] Envoyé : mercredi 14 mars 2012 14:19 À : users@tapestry.apache.org Objet : T5.2.6 jquery2.6.0

RE: T5.2.6 jquery2.6.0 jquery dialog close from included component

2012-03-14 Thread resign
hi Manu, in my component i have a form. And onFail the dialog should stay on top, onSuccess the dialog should disappear. Thanks, resign -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-6-jquery2-6-0-jquery-dialog-close-from-included-component-tp5564657p5564685.html

RE: T5.2.6 jquery2.6.0 jquery dialog close from included component

2012-03-14 Thread WINDEY Pieter AWL-IT
Just put your form in a zone, on error - return zone On success - return page -Original Message- From: resign [mailto:sergejb...@yahoo.de] Sent: Wednesday 14 March 2012 14:29 To: users@tapestry.apache.org Subject: RE: T5.2.6 jquery2.6.0 jquery

RE: T5.2.6 jquery2.6.0 jquery dialog close from included component

2012-03-14 Thread resign
pieter...you are my hero -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-6-jquery2-6-0-jquery-dialog-close-from-included-component-tp5564657p5564817.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Zone update triggers update on parent Zone

2012-03-14 Thread nquirynen
Ok, thanks for the explanation, also on the constructing of zone updates. I tested it with the time and your right. Is there any way I can know if in the ZONE_UPDATED_EVENT of the inner zone (zone1) comes from a zone1 or zone2 update? Because I have javascript code in the zone1 update event,

Re: Zone update triggers update on parent Zone

2012-03-14 Thread nquirynen
Found a solution for my problem (not sure if it's a good solution, but it works): In the update event of the parent zone (zone1 in my example) I added an if statement to know if it's not just an inner zone that's getting updated: $('#zone1').bind(Tapestry.ZONE_UPDATED_EVENT, function(event) {

Re: Getting the HTML markup string from a RenderCommand

2012-03-14 Thread Lenny Primak
Can you put this up in the Tapestry Wiki? It's trivial to do and IMHO very useful On Mar 14, 2012, at 8:11 AM, Lance Java wrote: Hi people, there have been a few threads around lately about getting the HTML string from a block / render command on the serverside including:

Re: Server Side Validation with ajax form loop

2012-03-14 Thread George Christman
Hi David, I created a jira issue related to this bug. https://issues.apache.org/jira/browse/TAP5-1875 -- View this message in context: http://tapestry.1045711.n5.nabble.com/Server-Side-Validation-with-ajax-form-loop-tp5120576p5565297.html Sent from the Tapestry - User mailing list archive at

Re: Getting the HTML markup string from a RenderCommand

2012-03-14 Thread Lance Java
I've added a wiki page here http://wiki.apache.org/tapestry/Tapestry5HowToGetAnHTMLStringFromARenderCommandParameter On Wednesday, 14 March 2012, Lenny Primak lpri...@hope.nyc.ny.us wrote: Can you put this up in the Tapestry Wiki? It's trivial to do and IMHO very useful On Mar 14, 2012, at

Difference between tml and java importing js

2012-03-14 Thread TechniciuM
Hi, as title denotes, I would like to know what is the difference between tml and java importing javascript. Examples shown below. JAVA page @Import(library=../dimitriy/bogdanov/bootstrap-dropdown.js) and TML page Discussion about this topic is appreciated. :) -- View this message in

Re: Difference between tml and java importing js

2012-03-14 Thread Michael Gentry
How about this, instead: JAVA *component* @Import(library=../dimitriy/bogdanov/bootstrap-dropdown.js) and TML *component* If your component is rendered multiple times in a page, then the TML method will import the JS repeatedly. Tapestry is smart enough, even in the Java component, to know if

[t5.3.1 - AjaxFormLoop] How to prevent removing the last row ?

2012-03-14 Thread Muhammad Gelbana
Greetings to this magnificent mailing list and tapestry developers :) I have a perfectly operating ajax form loop but I'm trying to find a way to prevent the user from removing the last row in the form. In an annotated method to handle the remove row events from the ajax form loop, I've done the

Re: Zone update triggers update on parent Zone

2012-03-14 Thread Paul Stanton
like i said, this could be a bug. why not log it in jira and see what the big heads think? On 15/03/2012 1:44 AM, nquirynen wrote: Found a solution for my problem (not sure if it's a good solution, but it works): In the update event of the parent zone (zone1 in my example) I added an if

Capturing user input data

2012-03-14 Thread Az Madu
Hi guys, I have a query about how to capture data from a tml page and pass it back into it's corresponding java file so that it can be processed and displayed on another new page (or even on the same page after redrawing the same page). I have 2 pages currently, Page1.java and Page2.java where

Tapestry-jpa 5.3 vs Tapestry-Hibernate

2012-03-14 Thread George Christman
Hello everyone, I figured it's been a while since this topic has been brought up, so I'd like to come back to it again. I've finally managed to find some free time to play with my personal project yay, which means I'll be doing a full rewrite. I'd like to hear what Tapestry-JPA users have to say

Re: Tapestry-jpa 5.3 vs Tapestry-Hibernate

2012-03-14 Thread Robert Zeigler
Disclaimer: I haven't used tapestry-jpa. :) But, Tapestry uses value encoders. tapestry-hibernate uses them, tapestry-jpa uses them. Tapestry uses them. The only question is whether you need to write custom value encoders. tapestry-hibernate will provide default encoders for entities with a

Re: Tapestry-jpa 5.3 vs Tapestry-Hibernate

2012-03-14 Thread George Christman
Thanks Robert for your reply. Yes I was referring to custom value encoders, perhaps I'm misusing them. I seem to be writing custom value encoders for components like the AjaxAddRow which is nothing more than a single column pk. The reason I use them is to generate a temp id 's for the component to

Re: Tapestry-jpa 5.3 vs Tapestry-Hibernate

2012-03-14 Thread Robert Zeigler
Not sure how tapestry-jpa handles un-persisted instances. That is certainly another area where tapestry-hibernate does not give you a useable ValueEncoder. To clarify my last post: tapestry-hibernate will give you a functional default value encoder if: 1) The entity has a single column pk 2)

memory leaks

2012-03-14 Thread dick_hu
Live Class and Template Reloading One of the great features of Tapestry 5 is automatic reloading of changed classes and templates. Page and component classes will automatically reload when changed. Likewise, changes to component templates and other related resources will also be picked up

Re: xhr requests and thread safety

2012-03-14 Thread Paul Stanton
In our application, many ajax requests are processed in the same session, sometimes causing conflicts when they update shared session information. I found synchronizing the logic within my event handlers to be useless since many components access shared objects from property bindings within