Re: loop components that use result sets

2012-12-19 Thread Lenny Primak
I highly doubt ant JPA is the source of your problem. Of course as Thiago says you can use it in such a way that could cause the problem. I would start looking at your own code and how you use JPA. On Dec 19, 2012, at 5:17 AM, "John" wrote: > Hi, > > I've converted a legacy JSP webapp over t

Re: Switching assets based on something different than language

2012-12-19 Thread Thiago H de Paula Figueiredo
On Wed, 19 Dec 2012 14:33:55 -0200, nquirynen wrote: Maybe you can make an implementation of AssetSource Better yet, an AssetFactory. Take a look in the Tapestry sources of ClasspathAssetFactory and ContextAssetFactory. -- Thiago H. de Paula Figueiredo -

Re: Switching assets based on something different than language

2012-12-19 Thread nquirynen
Maybe you can make an implementation of AssetSource -- View this message in context: http://tapestry.1045711.n5.nabble.com/Switching-assets-based-on-something-different-than-language-tp5718854p5718856.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Switching assets based on something different than language

2012-12-19 Thread Arno Haase
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tapestry has a great mechanism to switch assets based on the user's language. Now I would like to have something like that based not on language but the user's tenant (the system is multi-tenanted). So - what is the preferred approach to switch assets

Re: 5.4-rewrite

2012-12-19 Thread trsvax
I spend the that two months of the year making art and not programing. I'll be porting the Bootstrap module to 5.4 in a week or two. Hopefully it will be easy. -- View this message in context: http://tapestry.1045711.n5.nabble.com/5-4-rewrite-tp5718844p5718853.html Sent from the Tapestry - Us

Re: Importing javascript library failing

2012-12-19 Thread nquirynen
I forgot to mention that in the component I add the javascript file containing the initializer method "drawCharts" like this: @Import(library = "context:/JQuery/charts.js") If I put this on the page containing this component instead on the component it does work from the first submit. (Probably b

Re: 5.4-rewrite

2012-12-19 Thread Thiago H de Paula Figueiredo
On Wed, 19 Dec 2012 11:25:31 -0200, Matías Blasi wrote: Hi all! I'm trying the almost-alpha 5.4. Olá! :) I'd suggest you to wait a little more, specially if you're not familiar with Tapestry yet. As you said, it's an almost alpha, so not everything is already working, things can change

Re: [Announce] Tapestry-Bootstrap 2.0 early Alpha

2012-12-19 Thread trsvax
I have not tried it on 5.4 but I will in a week or two. The only problem I see is it's dependent on the html output of the base components. If that does not change then I suspect it will work without much difficulty. As far as the Javascript part goes Bootstrap uses jquery and my module brings in

Re: Grid Exception

2012-12-19 Thread Taha Siddiqi
Shouldn't the context be selectedQuote.pickupQuoteID not ${selectedQuote.pickupQuoteID} regards Taha On Dec 19, 2012, at 6:54 PM, mateen wrote: > In my app i have the following code > > > > > t:rowsPerPage="5" >t:inPlace="true" t:pagerPosition="top" add="action"> >

Re: Grid Exception

2012-12-19 Thread Thiago H de Paula Figueiredo
On Wed, 19 Dec 2012 11:24:59 -0200, mateen wrote: In my app i have the following code Hi! Never, never ever use ${} when passing parameter values. It causes the value to be coerced to String. Your event handler method receives a QuoteID.

Importing javascript library failing

2012-12-19 Thread nquirynen
Hi, I made a simple Chart component using Google charts api. (I also use tapestry5-jquery) I have the following in this component: (stripped down) @SetupRender void setup() { javascriptSupport.importJavaScriptLibrary("https://www.google.com/jsapi";); }

[Announce] Tapestry-Bootstrap 2.0 early Alpha

2012-12-19 Thread Matías Blasi
Hi all! Is this great tapestry-bootstrap module ready for 5.4? Or is it a full-stack replacement for 5.3 like got5-jquery is for jquery? Regards! Matias.

5.4-rewrite

2012-12-19 Thread Matías Blasi
Hi all! I'm trying the almost-alpha 5.4. It is because we are starting a project from scratch and I put my bet on 5.4+bootstrap. It is everithing fine up to now, but I need some quickstart, to build a new bootstrap/jquery component with some javascript stuff that I need. I noticed that some thin

Grid Exception

2012-12-19 Thread mateen
In my app i have the following code Process Teller and in my java code @Log public Object onActionFromLink2( QuoteID transactionQuoteID ) { } The t:context in the A

Re: loop components that use result sets

2012-12-19 Thread Thiago H de Paula Figueiredo
On Wed, 19 Dec 2012 06:47:29 -0200, John wrote: Hi, Hi! I've converted a legacy JSP webapp over to Tapestry5+JPA and I suspect the JPA layer may be slowing down some query responses because of the overhead of building collections in the JPA or DAO layers. Believe me, when you think JPA

Re: loop components that use result sets

2012-12-19 Thread Lance Java
Here's a first attempt (not compiled or tested so handle with caution). https://gist.github.com/4335583 -- View this message in context: http://tapestry.1045711.n5.nabble.com/loop-components-that-use-result-sets-tp5718831p5718838.html Sent from the Tapestry - User mailing list archive at Nabbl

JQuery Dialog not showing information

2012-12-19 Thread mateen
I have a a Tapestry Gird with an ActionLink as the last column. Clicking on the link i open a JQuery Dialog. Now i have to read the information from the Row of the Grid and show it in the PopupDialog. The Grid part is fine, but the object does not render in the popup. This is my Grid

Re: loop components that use result sets

2012-12-19 Thread Lance Java
Oops... after looking at the source... Implementing a Collection will solve nothing since tapestry will read your collection directly into a List. Looks like you might need to write some form of PreparedStatementGridDataSource. If you come up with something useful, please post it on the list. If n

Re: loop components that use result sets

2012-12-19 Thread Lance Java
The "source" parameter of a grid can either be a GridDataSource or a Collection. I think it will be easiest to extend java.util.AbstractCollection and implement the size() and iterator() methods based on two jdbc queries (one for the size, one for the result set). http://docs.oracle.com/javase/6/d

loop components that use result sets

2012-12-19 Thread John
Hi, I've converted a legacy JSP webapp over to Tapestry5+JPA and I suspect the JPA layer may be slowing down some query responses because of the overhead of building collections in the JPA or DAO layers. I am wondering if it's feasible to have a mixin or alter a loop/grid component so that it

RE: what javascript does T5 use

2012-12-19 Thread Lance Java
Tapestry5 has been tied to prototype / script.aculo.us since the beginning but this is about to change. Howard has just committed changes to the unreleased 5.4 branch which will make it easy to swap the "foundation" framework (jquery/prototype/etc). If you want to use jquery today, there is 3rd pa