Prevent double submission w/linkSubmit

2010-12-03 Thread David Rees
I'm having problems figuring out how to prevent double clicks with a linkSubmit. With a regular submit, you can just disable the submit button after observing a FORM_PREPARE_FOR_SUBMIT_EVENT, but this doesn't seem to work for a linkSubmit element. Using T5.1.0.8-SNAPSHOT. Any ideas? Have also t

[ANNOUNCEMENT] tapestry-resteasy 0.2.1 released!

2010-12-03 Thread Kalle Korhonen
Hey, wouldn't it be great if you could just reload your RESTful service classes live while developing them? Oh that's right, that's exactly what tapestry-resteasy 0.2.1 allows you to do! This is T5.2.x specific maintenance release, updating the JAX-RS dependency to JBoss' resteasy GA release 2.0.1.

Re: select model - focus goes to item with value 0!

2010-12-03 Thread hese
Changing the value variable from long to Long solved it! The problem was long being a primitive time, was getting initialized with 0, and therefore automatically selecting the label with value 0. Thanks Thiago!! -- View this message in context: http://tapestry.1045711.n5.nabble.com/select-mo

Re: select model - focus goes to item with value 0!

2010-12-03 Thread Thiago H. de Paula Figueiredo
On Fri, 03 Dec 2010 18:23:20 -0200, hese <1024h...@gmail.com> wrote: Hi, Hi! I am populating a select model using OptionModelImpl. The problem is when the page loads, the item with value=0 is getting the focus automatically. I want the focus to stay on the first item in the list. Why is th

select model - focus goes to item with value 0!

2010-12-03 Thread hese
Hi, I am populating a select model using OptionModelImpl. The problem is when the page loads, the item with value=0 is getting the focus automatically. I want the focus to stay on the first item in the list. Why is this happening? for (Iterator it =idNames.keySet().iterator(); it.hasNext();

Re: Default value for @Persist'd object

2010-12-03 Thread Rich M
Hi, I don't believe so, source for @Persist only seems to support the value parameter to set the persistence type (client,session,flash). The approach I use is to set any persisted values I want defaults for in a pre-render stage (BeginRender usually). I like to group them all in one method.

Re: First Tapestry app with Hibernate

2010-12-03 Thread Everton Agner
He meant the Maven Plugin for Eclipse : m2eclipse ___ Everton Agner Ramos 2010/12/3 robnangle > > No i am using the normal eclipse ide. > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3291024.html > Se

Re: T5: scripting

2010-12-03 Thread Thiago H. de Paula Figueiredo
On Fri, 03 Dec 2010 13:12:15 -0200, Angelo C. wrote: Hi, Hi! I need some scripting functions in t5 app, what are the options available? looks like Groovy is easier, I have included the groovy-all-minimal into the app, but how to use it? looking for a sample usage, say just a service

Re: First Tapestry app with Hibernate

2010-12-03 Thread robnangle
No i am using the normal eclipse ide. -- View this message in context: http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3291024.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

T5: scripting

2010-12-03 Thread Angelo C.
Hi, I need some scripting functions in t5 app, what are the options available? looks like Groovy is easier, I have included the groovy-all-minimal into the app, but how to use it? looking for a sample usage, say just a service class in Groovy returning a string 'Hello', and how to call this from

Default value for @Persist'd object

2010-12-03 Thread Richard Hill
Hi, I was wondering whether it's possible to set or define a default value for an object that is @Persist'd? e.g something equivalent to: public Object getPersistedObject() { if (object == null) { object = new Object(); object.setSomeValues(...); } return object; } Obviously

Re: dynamic component id?

2010-12-03 Thread Thiago H. de Paula Figueiredo
On Fri, 03 Dec 2010 11:05:31 -0200, Christian Koller wrote: Yes that's exactly what I face. What I would need is more than one instance of the component and each instance with his own session value, independent from the other instances. But I guess this isn't possible. You only need to

dynamic component id?

2010-12-03 Thread Christian Koller
Hi all Thank you for your answers. I don't mean any client id related stuff. I mean the id of the component. > The explanation is not correct. You have a single TimeSlot component instance > in your template which is rendered n times. Instead of relying in @Persist > inside the component, pass

Re: dynamic component id?

2010-12-03 Thread Antonio Fernández
Hi ! You could try with ... ( TimeSlot.tml ) ...this clientId property is generated in the Java.Side with the following method ( at SetupRender ) ( TimeSlot.java ) @Property private String myClientId; @Inject private ComponentResources componentResources; @Inject

Re: dynamic component id?

2010-12-03 Thread Thiago H. de Paula Figueiredo
On Fri, 03 Dec 2010 09:54:54 -0200, Christian Koller wrote: Any ideas how to solve this? Tapestry components ids are static, period. HTML ids are dynamic. If I use a literal as the id, then it works, but then all the generated timeSlot components within the loop will have the same id. If

Re: dynamic component id?

2010-12-03 Thread Kristian Marinkovic
i guess it is about the dynamically generated id of the html element ... the component should implement the interface ClientElement. If it does you can call the method getClientId to obtain the id that is used in the generated html. g, kris Von:Everton Agner An: Tapestry users Datu

Re: dynamic component id?

2010-12-03 Thread Everton Agner
I believe he didn't misunderstood... the real problem is "which approach should he get to work with dynamic components?". Actually, I didn't need to use this yet but always wondered too. ___ Everton Agner Ramos 2010/12/3 Joost Schouten (ml) > It sounds like you are confus

Re: dynamic component id?

2010-12-03 Thread Joost Schouten (ml)
It sounds like you are confusing the t:id with the html dom id. I think you are looking for: http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> Cheers, Joost On 3/12/10 12:54 PM, Christian Koller wrote: I have the following template: http://tapestr

dynamic component id?

2010-12-03 Thread Christian Koller
I have the following template: http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> But Tapestry calls out: Component id 'prop:index' is not valid; component ids must be valid Java identifiers: start with a letter, and consist of letters, numbers and under