Re: T5 how to execute javascript after zone update?

2009-04-14 Thread DH
Not yet, thanks for remind, I will try soon. If so, cool. Thanks, DH - Original Message - From: "Fernando Padilla" To: "Tapestry users" Sent: Wednesday, April 15, 2009 11:19 AM Subject: Re: T5 how to execute javascript after zone update? > did you try @Environmental? > > > DH wrot

Re: T5 how to execute javascript after zone update?

2009-04-14 Thread Fernando Padilla
did you try @Environmental? DH wrote: I remember @Inject RenderSupport is not available in ajax action request even though in latest snapshot, I just tried several days ago and got error. Thanks DH - Original Message - From: "Fernando Padilla" To: "Tapestry users" Sent: Wednesd

Re: T5 how to execute javascript after zone update?

2009-04-14 Thread DH
I remember @Inject RenderSupport is not available in ajax action request even though in latest snapshot, I just tried several days ago and got error. Thanks DH - Original Message - From: "Fernando Padilla" To: "Tapestry users" Sent: Wednesday, April 15, 2009 10:16 AM Subject: Re: T

[T5.1.0.2] / [T5.1.0.3] BlackBird Info Logging

2009-04-14 Thread Steve Eynon
Hiya, The Tapestry js object has debug, warn and error logging methods to BlackBird but no info logging. Is this due to design because the logging methods are only supposed to be used by Tapestry internal components (and hence not yet required)? Or maybe an wee oversight? Personally, I'm excited

[T5.1.0.2] / [T5.1.0.3] Combining JavaScript Libraries in IE 6

2009-04-14 Thread Steve Eynon
Hi, I noticed that if I added script on page in a component during the beginRender() method via... renderSupport.addScript() ...I recieved a javascript error in IE 6 complaining that the Tapestry object did not exist on the line: Tapestry.onDOMLoaded(function() { This only happens if "tapestry

Re: T5 how to execute javascript after zone update?

2009-04-14 Thread Fernando Padilla
You use the normal RenderSupport.addScript(..) method. And tapestry adds it to the json response, and it gets executed by loadScriptsInReply... DH wrote: 1. If your return is Block or Zone, just put ... inside the block or zone. 2. If return is JSONObject, can do like this: JSONObject re

Re: T5 how to execute javascript after zone update?

2009-04-14 Thread DH
1. If your return is Block or Zone, just put ... inside the block or zone. 2. If return is JSONObject, can do like this: JSONObject response = new JSONObject(); response.put("script", "alert('ff');"); return response; Thanks, DH - Original Message - From: "grabarz" To:

Re: [REQUEST] Live T5 web sites, quotes, marketting

2009-04-14 Thread Fernando Padilla
We have been using Tapestry 5, "it rocks". We do so many sites using Tapestry, and mostly facebook, so here is our index site (not tap5): http://www.citizensportsinc.com/ Most of the sites listed off of this site are Tapestry 5. Except for Protrade.com (Tap4), and a handful of apps we bough

[REQUEST] Live T5 web sites, quotes, marketting

2009-04-14 Thread Howard Lewis Ship
I'm putting together some new presentations about Tapestry and I could use the help of the Tapestry community. I need more pictures of live T5 sites. Just send me a URL and I can do a screen grab. This is all about answering the question: "is it mature?" I make a number of reasonable observatio

Re: A document must have exactly one root element exception on 5.1.0.2 upgrade.

2009-04-14 Thread Howard Lewis Ship
http://www.catb.org/~esr/faqs/smart-questions.html On Tue, Apr 14, 2009 at 3:20 PM, zack1403 wrote: > > Anyone have a thought on this? I have no idea where to go from here. > > -- > View this message in context: > http://www.nabble.com/A-document-must-have-exactly-one-root-element-exception-on-5

Re: A document must have exactly one root element exception on 5.1.0.2 upgrade.

2009-04-14 Thread zack1403
Anyone have a thought on this? I have no idea where to go from here. -- View this message in context: http://www.nabble.com/A-document-must-have-exactly-one-root-element-exception-on-5.1.0.2-upgrade.-tp23014335p23049185.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: @CommitAfter

2009-04-14 Thread daniel joyce
Whats the best way to manually acquire and manage a session/transaction in tapestry? I am sending off 'build requests' to a build queue. I have a Executor service set up to pull items from that queue. They of course need to mark the build as done in the db when the build is finished. I don't think

Re: Decent jetty runner for eclipse

2009-04-14 Thread Amit Nithian
I am using it with Eclipse Ganymede and 1.6 without problems. I too have the parentLoader property and production mode off as I assume most others do too. I just upgraded from Eclipse 3.3 and launched this without much hassle. It's a great plugin for web development in Eclipse.. no fuss launching o

T5 how to execute javascript after zone update?

2009-04-14 Thread grabarz
is there any way to execute custom piece of javascript after zone update? inside tapestry.js i found: loadScriptsInReply : function(reply, callback) * Passed the JSON content of a Tapestry partial markup response, extracts * the script and stylesheet information. JavaScript librari

T5 Chenillekit: @OnEvent problem with JSONObject/JSONArray

2009-04-14 Thread leechj
Hi All, I'm trying to utilize the OnEvent Mixin to dynamically change the data in a SelectBox when a user clicks a RadioButton. In the function that is annotated by OnEvent, I return a JSONArray with values and descriptions to populate my SelectBox. My problem is that if the JSONArray is larger

Re: T5 property with additional parameter?

2009-04-14 Thread grabarz
Thiago H. de Paula Figueiredo wrote on 14 Apr 2009 20:13:35 MET: > Em Tue, 14 Apr 2009 15:49:01 -0300, grabarz escreveu: > > > but what i need is to pass one parameter to getClazz1() to make it more > > flexible. Is there any syntax for this purpose? something like > > class="${clazz1(param)}" ?

Re: T5 property with additional parameter?

2009-04-14 Thread Thiago H. de Paula Figueiredo
Em Tue, 14 Apr 2009 15:49:01 -0300, grabarz escreveu: but what i need is to pass one parameter to getClazz1() to make it more flexible. Is there any syntax for this purpose? something like class="${clazz1(param)}" ? Take a look at http://tapestry.formos.com/nightly/tapestry5/guide/propexp.h

T5 property with additional parameter?

2009-04-14 Thread grabarz
hi, i'm using tapestry 5.1.0.2. is it possible somehow to use a property getter with additional parameter? e.g. following snippet uses getClazz1() to retrive class name: but what i need is to pass one parameter to getClazz1() to make it more flexible. Is there any syntax for this purpose? som

Re: Decent jetty runner for eclipse

2009-04-14 Thread Thiago H. de Paula Figueiredo
Em Tue, 14 Apr 2009 12:09:59 -0300, Marcus Veloso escreveu: Hi, following http://wiki.apache.org/tapestry/Tapestry5RunViaMain: ... 1. Add a dependency on Jetty to your POM at provided scope. Use the jetty-server-dependencies and jetty-provided-apis artifacts That's what I do:

Re: Decent jetty runner for eclipse

2009-04-14 Thread Marcus Veloso
Hi, following http://wiki.apache.org/tapestry/Tapestry5RunViaMain: ... 1. Add a dependency on Jetty to your POM at provided scope. Use the jetty-server-dependencies and jetty-provided-apis artifacts 2. Turn off J2EE deployment in module properties ... Can someone show the code

Re: T5 - Minor: Tapestry doesn't recognize is style getters in Domain Objects.

2009-04-14 Thread Howard Lewis Ship
Tapestry uses the Introspector class to analyze properties; that's the definitive reference. The isFlag() naming is for boolean primitives only, not for the Boolean wrapper type. On Tue, Apr 14, 2009 at 7:01 AM, Thiago H. de Paula Figueiredo wrote: > I have boolean (primitive) properties impleme

Re: T5 - Minor: Tapestry doesn't recognize is style getters in Domain Objects.

2009-04-14 Thread Thiago H. de Paula Figueiredo
I have boolean (primitive) properties implemented as isSomething() in some entities and they are recognized by Tapestry. Maybe Tapestry does not recognizes Boolean (class) isSomething() properties. -- Thiago - To unsubscribe, e-

Re: RenderSupport addScript old browsers

2009-04-14 Thread Peter Stavrinides
>how "safe" is using addScript method of the RenderSupport considering >old browsers support? This is not going to affect old browsers, but it *might affect new ones... the key point is this: "No one is using browsers so old as to require this coding for its original purpose but many will soon be

T5 - Minor: Tapestry doesn't recognize is style getters in Domain Objects.

2009-04-14 Thread Otho
Just a minor thing I stumbled over. When I have a property like this with an automatically created getter in a domain object: private Boolean enabled; public Boolean isEnabled() { ... } Tapestry says: Render queue error in BeginRender[persons/PersonDetails:enabled]: Failure reading parameter 'v

Re: @CommitAfter

2009-04-14 Thread Christian Köberl
Hey Daniel! This will not work - you have to create a service for storing/loading your entities. Using services (DAOs/Repositories) to access the database is usually a better design. I would also recommend to put your named queries in your orm.xml. This helps to find slow queries. The other o

RenderSupport addScript old browsers

2009-04-14 Thread Borut Bolčina
Hi, how "safe" is using addScript method of the RenderSupport  considering old browsers support? Tapestry renders something like: