T5 and Redis

2012-05-30 Thread Angelo C.
Hi, I'm trying to use Redis' Jedis client in T5, following this link: http://spreadthesource.com/2010/11/bringing-realtime-to-your-java-applications-with-websockets-nodejs-redis-tapestry-5/ I'd like to have one connection to redis per request, following is the Redis service code, problem is, aft

Re: javascript and tapestry - reloading a list

2012-05-30 Thread sommeralex
Hi Arno, Thx for your your answer. If i am trying what you say, i get this error message: Ajax failure: Status 500 for /group/listlocalgroups:getgroupsonlocation: org.apache.tapestry5.ioc.internal.OperationException Communication with the server failed: org.apache.tapestry5.ioc.internal.Operatio

Re: Example of jquery tabs with formfragments

2012-05-30 Thread ICE Ernesto Arteaga Zavala
I'm handling only one entity "user" and it store all others (banaaccount, address, locators) and for locator tab there I put a grid component and it work very well: 2012/5/30 Chris Cureau > Thanks, that did the trick for the forms! The grids still aren't showing > u

Re: Can grid without data show headers?

2012-05-30 Thread ICE Ernesto Arteaga Zavala
2012/5/30 Nicolas Barrera > Hi all, > > Hi, > I guess subject is self-explanatory... > > Does somebody knows about a parameter so that I can show headers even if > the source collection of a grid is empty? > > May be not: http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/c

Re: Example of jquery tabs with formfragments

2012-05-30 Thread Chris Cureau
Thanks, that did the trick for the forms! The grids still aren't showing up...I'll do some more work. On Wed, May 30, 2012 at 2:47 PM, François Facon wrote: > did you try to add a t:ajax=false in your tabs. > As mention at http://tapestry5-jquery.com/components/docsjquerytabs > this will disable

Re: Tapestry Transactions

2012-05-30 Thread bhorvat
Can you elaborate a bit more the part below Steve Eynon wrote > > unlike T5's @CommitAfter, it doesn't always commit or start a new > transaction. > The T5 annotation always commits when there is not RuntimeException so what does @Transactional annotation does then :S tnx -- View this mes

Re: javascript and tapestry - reloading a list

2012-05-30 Thread Arno Haase
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If you use a zone, you can call var zoneObject=Tapestry.findZoneManagerForZone(''); zoneObject.updateFromURL('', {}); in JS. When generating the JS code in your TML, you can generate the correct URL by having something like the following in your pag

Re: [OT] Arquillian Tapestry

2012-05-30 Thread François Facon
Hi Borut, Thanks for the link. Arquillian seems great. I have already view arquillian-tomee-embedded in action with maven at https://github.com/rmannibucau/cdi-tapestry-contribution I wondering how they plan to support gradle. https://issues.jboss.org/browse/ARQ-123 Regards François 2012/5/30

Re: Tapestry Transactions

2012-05-30 Thread Steve Eynon
Yeah, you can put the Spring @Transactional annotation on any Spring bean / service. Both on the class and its methods. The propagation=Propagation.REQUIRED ensures the code runs inside a transaction but unlike T5's @CommitAfter, it doesn't always commit or start a new transaction. It sounds like

Re: Example of jquery tabs with formfragments

2012-05-30 Thread François Facon
did you try to add a t:ajax=false in your tabs. As mention at http://tapestry5-jquery.com/components/docsjquerytabs this will disable the zone refresh this parameter is used by most of the samples demo like for instance http://tapestry5-jquery.com/core/docsdatefield and the related tml https://git

javascript and tapestry - reloading a list

2012-05-30 Thread sommeralex
Hello! I am using a javascript plug in which is giving me the coordinates of a user. After the coordinates are retrieved, i want tapestry to reload a specific element - my list (which now should show localized entries) What i have done so far - and what is working - is that my js script is calling

Can grid without data show headers?

2012-05-30 Thread Nicolas Barrera
Hi all, I guess subject is self-explanatory... Does somebody knows about a parameter so that I can show headers even if the source collection of a grid is empty? thanks you in advance, cheers. Nicolás.-

Re: Example of jquery tabs with formfragments

2012-05-30 Thread Chris Cureau
Okay, giving it a try, but running into another issue... I've got two tabs that contain forms and three tabs that contain grid data. As it stands now, the forms redraw themselves (albeit without data) and the grids return nothing. My guess is that I'm missing a zone refresh somewhere. I watched

[OT] Arquillian Tapestry

2012-05-30 Thread Borut Bolčina
Hello, just stumbled upon an announcement at http://arquillian.org/blog/2012/05/27/arquillian-extension-warp-1-0-0-Alpha1/ There is a call for action there to have support for your favorite web framework. Maybe someone could have a look at. Sent from my iPad ---

Re: counting visitors

2012-05-30 Thread Lance Java
I think that the best way to handle this would be to contribute a PageRenderRequestFilter to the PageRenderRequestHandler since you have a reference to the page name (and activation context) at this point. http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/PageRenderRequest

Re: Example of jquery tabs with formfragments

2012-05-30 Thread ICE Ernesto Arteaga Zavala
2012/5/30 Chris Cureau > Thanks very much! I'll test it out this morning...and if I can get it > working decently, I'll make up a post for others to use. > That should be great :) > > Speaking of, is there a cook book of sorts for tapestry5-jQuery as there is > for tapestry? Maybe I can give ba

Re: Example of jquery tabs with formfragments

2012-05-30 Thread Chris Cureau
Thanks very much! I'll test it out this morning...and if I can get it working decently, I'll make up a post for others to use. Speaking of, is there a cook book of sorts for tapestry5-jQuery as there is for tapestry? Maybe I can give back that way. :) On May 29, 2012 6:34 PM, "arterzatij" wrote:

Re: deploy t5 war under jetty

2012-05-30 Thread Thiago H de Paula Figueiredo
On Wed, 30 May 2012 10:11:56 -0300, Angelo C. wrote: thanks, actually I got it running a few months ago, the server restarted, and I can not remember how I did it last time, basically, it was in a screen session, then I run java -jar start.jar and myapp.war, i forgot the details, any ide

counting visitors

2012-05-30 Thread Angelo C.
Hi, Is there a simple way to plug in a function to count number of vistors to various pages? Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/counting-visitors-tp5713527.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: deploy t5 war under jetty

2012-05-30 Thread Angelo C.
thanks, actually I got it running a few months ago, the server restarted, and I can not remember how I did it last time, basically, it was in a screen session, then I run java -jar start.jar and myapp.war, i forgot the details, any idea how to do it this way? -- View this message in context: http

Re: deploy t5 war under jetty

2012-05-30 Thread Thiago H de Paula Figueiredo
On Wed, 30 May 2012 09:29:55 -0300, Angelo C. wrote: Hi, Got a t5 app running inside IDE, now I need to deploy it into a server without tomcat, but i can run jetty, how to do this? thanks, http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty It says 'embedding', but it can be used as a

deploy t5 war under jetty

2012-05-30 Thread Angelo C.
Hi, Got a t5 app running inside IDE, now I need to deploy it into a server without tomcat, but i can run jetty, how to do this? thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/deploy-t5-war-under-jetty-tp5713524.html Sent from the Tapestry - User mailing li

RE: About per-thread service

2012-05-30 Thread Lance Java
Let me answer some different questions: Q. If I make multiple hibernate calls in a single request, how many hibernate sessions were created? A. 1 Q. Will a hibernate session be created for a request that does not use hibernate? A. No Q. Since there is only 1 instance of Session in the tapestry r

Re: Page navigation to predecessor pages plugin

2012-05-30 Thread sommeralex
thank you both very much for your help! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Page-navigation-to-predecessor-pages-plugin-tp5713504p5713522.html Sent from the Tapestry - User mailing list archive at Nabble.com.

RE: About per-thread service

2012-05-30 Thread Fight Ice
The @Scope(ScopeConstants.PERTHREAD) makes the service per-thread, and finally the SessionFactory.openSession() will be called(SessionFactory is thread safe). One session for one thread(request)?

RE: [T5.2.6] AjaxFormLoop containing tr's rather than being a tr

2012-05-30 Thread wout86
Pieter, Thanks for the reply, I forgot to mention that in first instance, the table renders correctly, but it goes all wrong when using the add row link. Could you try that? In my case, the new "rows" are shown out of the table (above it to be specific). -- View this message in context: http://

RE: [T5.2.6] AjaxFormLoop containing tr's rather than being a tr

2012-05-30 Thread WINDEY Pieter AWL-IT
Strange, When I try: ${person.lastName} ${person.firstName}

Re: About per-thread service

2012-05-30 Thread Lance Java
The code that does the magic is below. The HibernateSessionManager is configured as a per thread service. The Session is configured as a PropertyShadowBuilder which lazily calls HibernateSessionManager.getSession() on the per thread service. /** * The session manager manages sessions on a per-thr

Re: Tapestry on OpenShift: did someone already tried it?

2012-05-30 Thread Magnus Kvalheim
> > >> >> Do you know if there's some other use of a "vfs" HTTP protocol besides >> the JBoss one? If not, we could add the code in tapestry-core itself. >> Otherwise, I prefer a separate module. Is there a JIRA for that? If not, >> please post one. >> > > > Yes there is one https://issues.apache.o

[T5.2.6] AjaxFormLoop containing tr's rather than being a tr

2012-05-30 Thread wout86
Hi, I'm wondering whether it is possible to have an AjaxFormLoop containing multiple tr elements? For instance, this works: H1... <*tr *t:type="AjaxFormLoop" t:source="src" t:value="el" t:encoder="elEncoder" t:show="show"> E1 ... ... ... ... tr*> But I'd

About per-thread service

2012-05-30 Thread Fight Ice
I have read the source code of HibernateCoreModule.java and HibernateSessionManagerImpl.java . The HibernateSessionManager service is per-thread, but I didn't find any code for concurrency(like using ThreadLocal). How Tapestry make HibernateSessionManager service to be per-thread.