How can I create a component that generates unique ids?

2012-05-24 Thread iberck
Hi tapestry members: How can I create a component that generates unique ids? For example: PAGE - 1 t:component1/ 2 t:component1/ - I need component1 of line 1 has for example unique generated t:id=component1_0 and component1 of

Re: How can I create a component that generates unique ids?

2012-05-24 Thread Steve Eynon
All IDs rendered by T5 are already unique. e.g. t:any t:mixins=renderClientId / t:any t:mixins=renderClientId / will render div id=any/ div id=any_0/ Steve. -- Steve Eynon --- If at first you don't succeed,    so much for skydiving! On 24 May 2012 17:27, iberck

Server side or timed update of a zone

2012-05-24 Thread Fuhrmann, Hauke
Hi there, I have a html table (i.e. tapestry grid component) with some data coming from tapestry to the client. Whenever the server has new data for the table I want the table to update automatically without the user to reload the page. I understand that this is not possible in general

RE: Server side or timed update of a zone

2012-05-24 Thread Poder, Jacob
Hi, Have a look at the ZoneRefresh mixin, perhaps that's what you are looking for? Cheers, Jacob -Original Message- From: Fuhrmann, Hauke [mailto:hauke.fuhrm...@funkwerk-it.com] Sent: Thursday, May 24, 2012 11:45 AM To: users@tapestry.apache.org Subject: Server side or timed update of

Re: Server side or timed update of a zone

2012-05-24 Thread Lance Java
I started developing a tapestry-push component built on top of http://directwebremoting.org/dwr/documentation/reverse-ajax/index.html DWR's reverse ajax but was disheartened to find that the DWR guys don't eat their own dogfood when it comes to push. I'm about to make a second attempt at

Re: java.util.ConcurrentModificationException in tapestry 5.3.3 under stress

2012-05-24 Thread Thiago H. de Paula Figueiredo
On Wed, 23 May 2012 20:01:46 -0300, Sean sean.whet...@sirsidynix.com wrote: Thanks for the quick reply. I changed selected to initialize in setupRender, and now I'm getting the following exception. Howard has been working on improvements to Tapestry internals under high loads, so please

Re: Server side or timed update of a zone

2012-05-24 Thread Geoff Callender
Have you seen this? I haven't gone very far into reverse AJAX but I thought this article might give you a leg up. http://www.ibm.com/developerworks/web/library/wa-reverseajax4/ Cheers, Geoff On 24/05/2012, at 8:15 PM, Lance Java wrote: I started developing a tapestry-push component

Re: java.util.ConcurrentModificationException in tapestry 5.3.3 under stress

2012-05-24 Thread Sean
Thiago H de Paula Figueiredo wrote On Wed, 23 May 2012 20:01:46 -0300, Sean lt;sean.whetten@gt; wrote: com.mycompany.product.module.components.search.account.CheckoutsList.setCurrentCheckout(CheckoutsList.java:170) What's the code in this method? You can find the code for that

Re: How can I create a component that generates unique ids?

2012-05-24 Thread iberck
Thank you for your responses ! I'm sorry my problem is not properly explained, I wan to generate unique ids when I have nested components for example: Test.tml t:component1/ Component1.java: public class Component1 { @Inject private ComponentResources resources; @Inject

Re: How can I create a component that generates unique ids?

2012-05-24 Thread Thiago H. de Paula Figueiredo
On Thu, 24 May 2012 14:40:08 -0300, iberck ibe...@gmail.com wrote: Thank you for your responses ! I'm sorry my problem is not properly explained, I wan to generate unique ids when I have nested components for example: Just use JavaScriptSupport.allocateClientId() in Component2 to generate

Re: How can I create a component that generates unique ids?

2012-05-24 Thread iberck
thank you for your response Thiago !!! -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-can-I-create-a-component-that-generates-unique-ids-tp5713377p5713392.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: How can I create a component that generates unique ids?

2012-05-24 Thread iberck
I have another question, how can I generate unique complete id's of a component in a loop? I have tried with jsSupport.allocateClientId(uniqueid) but it only generates unique client ids I have the next code: Text.tml t:loop source=1..10 t:component1/ /t:loop Component1.java: @Inject

Re: How can I create a component that generates unique ids?

2012-05-24 Thread iberck
I need unique component id's because a use @Persist properties inside my component Thanks in advance -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-can-I-create-a-component-that-generates-unique-ids-tp5713377p5713394.html Sent from the Tapestry - User mailing list

Tapestry Testify and chenillekit captcha

2012-05-24 Thread Simon Raveh
Hi, I'm trying to test a page that has a chenille kit Kaptcha component. The issue I'm having is that when testing the page with TapestryTestify, the event (kaptchaEvent) that generate the image and set kaptchaValue field inside the component is never being called. So I get null pointer

Re: How can I create a component that generates unique ids?

2012-05-24 Thread iberck
Thank you for the clear response Thiago ;) ... So, if I put: t:component1/ t:component1/ t:component1/ t:component1/ I'll have 4 instance of component1 but when I put t:component1/ inside a Loop, it will has the same t:id because is the same instance the t:id represents the id of the component

Re: How can I create a component that generates unique ids?

2012-05-24 Thread Thiago H. de Paula Figueiredo
On Thu, 24 May 2012 17:58:27 -0300, iberck ibe...@gmail.com wrote: Thank you for the clear response Thiago ;) ... ;) So, if I put: t:component1/ t:component1/ t:component1/ t:component1/ I'll have 4 instance of component1 but when I put t:component1/ inside a Loop, it will has the same

Re: Variable number of text fields

2012-05-24 Thread Norman Franke
On May 24, 2012, at 12:17 AM, Richard Frovarp wrote: I'm trying to figure out if there is a way to create a variable number of text fields in a form that are backed by normal strings. I've seen the AJAXFormLoop stuff, and it's close to what I think I'm after, but not quite there. The

Re: How can I create a component that generates unique ids?

2012-05-24 Thread iberck
Thank you !!! -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-can-I-create-a-component-that-generates-unique-ids-tp5713377p5713400.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: [ANN] JumpStart upgraded to Tomcat 7, JBoss 7, and Glassfish 3

2012-05-24 Thread Chris Mylonas
TomEE is Tomcat with Java EE 6 added in. It's fuss-free - download, unzip, and start. It makes Tomcat a viable alternative to JBoss, Glassfish, etc. The capabilities are summarised here: http://openejb.apache.org/comparison.html I should give a special mention, too, to JBoss 7.1. The

[OT] J2EE write to filesystem JEE6

2012-05-24 Thread Chris Mylonas
Hi Tapestry Users, In April there was a thread about AssetFactory help [1] and it mentioned that the J2EE spec states that you should not read or write to the file system. Reading up on the collapsed ear from openejb's website [2] they say (sic) not quite j2ee but truly jee6. Although openejb

Re: [OT] J2EE write to filesystem JEE6

2012-05-24 Thread Chris Mylonas
To answer my own question (correctly I hope), This collapsed war (the EJB jars packaged within WAR) thing means for my simple wants, tapestry to pass a URL to a servlet which has access to the filesystem. It's as simple as that - the servlet is the gateway to the filesystem. Cheers Chris On

null value in Boolean

2012-05-24 Thread Lodorvonhal
I'm writing a web application with Apache Tapestry 5.3. I use in my web application a radio group (2 radio button) which saves in a java.lang.Boolean object. I have some problems when saving the data. Test.java __ @Property private Boolean surgery; . @CommitAfter public Object

Re: null value in Boolean

2012-05-24 Thread Lodorvonhal
Thanks for your answer, i just found jira issue for that problem. https://issues.apache.org/jira/browse/TAPESTRY-1928 (and that you can't override the built-in coercion) So i try it with enums... -- View this message in context: