Re: Tapestry-Hibernate using sessions inside of scheduler or threads.

2013-11-01 Thread Dmitry Gusev
Creating new connections per thread/request is the right way. But you should close your sessions when your thread/request completed. Just make sure that you have enough connections in your connection pool (i.e. pool size >= threads/requests count), and things will work fine. On Fri, Nov 1, 2013 a

Re: Ajax and Validation

2013-11-01 Thread Dmitry Gusev
I know this thread is too old, but I still have this same issue in T5.3.7. Since @PageDetached is no longer works, here is how I managed to fix this for my form: @Inject private Heartbeat heartbeat; public void onSubmit() { if (request.isXHR()) { //

Tapestry 5.4 demo

2013-11-01 Thread Boris Horvat
Is there any way of checking out the demo for 5.4, I would like to see how do components look like without creating the code my self in order to see if we should maybe start to move our webapp on the tapestry alpha Cheers -- Sincerely *Boris Horvat*

Re: Tapestry 5.4 demo

2013-11-01 Thread Thiago H de Paula Figueiredo
On Fri, 01 Nov 2013 06:13:34 -0200, Boris Horvat wrote: Is there any way of checking out the demo for 5.4, I would like to see how do components look like without creating the code my self in order to see if we should maybe start to move our webapp on the tapestry alpha I guess you can

Re: Tapestry 5.4 demo

2013-11-01 Thread Boris Horvat
Should i use 5.4-SNAPSHOT or 5.4-alpha-3-SNAPSHOT tnx On Fri, Nov 1, 2013 at 12:13 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 01 Nov 2013 06:13:34 -0200, Boris Horvat > wrote: > > Is there any way of checking out the demo for 5.4, I would like to see >> how do com

Re: Tapestry 5.4 demo

2013-11-01 Thread Boris Horvat
I guess it wont be that easy TapestryIOCModule.RegistryStartup Construction of service RegistryStartup failed: Error invoking service contribution method com.tap5.hotelbooking.dal.DataModule.initialize(): java.lang.NullPointerException org.apache.tapestry5.ioc.internal.OperationException: Error i

Re: Tapestry 5.4 demo

2013-11-01 Thread Boris Horvat
and running it on my app gives me this ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.modules.InternalModule 2013-11-01 13:01:13.818:WARN:oejuc.AbstractLifeCycle:FAILED app: java.lang.RuntimeException: Error invoking service binder method org.apache.tapestry5.modules.

Re: Tapestry-Hibernate using sessions inside of scheduler or threads.

2013-11-01 Thread George Christman
Thanks dmitry, I was a little misguided on SO, resulting in this question, but it looks as if the issue had to do with me not closing my session after the thread completed. I've been spoiled with tapestry-hibernate doing that for me on non threaded transactions :) Anyhow Lance also pointed out I ne

Re: Tapestry 5.4 demo

2013-11-01 Thread Thiago H de Paula Figueiredo
Yeah, it seems the demo will need a couple tweaks before it works with 5.4. I'd guess it's mostly dependency stuff. It seems like you're getting two different Tapestry-IoC versions in the classpath at the same time. On Fri, 01 Nov 2013 10:02:48 -0200, Boris Horvat wrote: and running it

Re: Tapestry 5.4 demo

2013-11-01 Thread Boris Horvat
Yea probably from say Tynamo Security or Rest, or it could be from tapestry-jquery I guess just moving the application is that that easy yet :( I will have to see if they have a version that is getting ready for the 5.4 On Fri, Nov 1, 2013 at 1:20 PM, Thiago H de Paula Figueiredo < thiag...

Re: Tapestry 5.4 demo

2013-11-01 Thread George Christman
What about tapestry quickstart? It's not a full demo like the hotel project, but should give you a general idea what some of the components look like. I believe we're on 5.4-alpha-23 now. On Fri, Nov 1, 2013 at 8:25 AM, Boris Horvat wrote: > Yea probably from say Tynamo Security or Rest, or it c

Re: Tapestry 5.4 demo

2013-11-01 Thread Boris Horvat
Excluding dependency from tynamo security cased a new problem :) java.lang.NoSuchMethodError: org.apache.tapestry5.services.javascript.JavaScriptSupport.importStylesheet(Lorg/apache/tapestry5/Asset;)V at org.got5.tapestry5.jquery.services.ImportJQueryUIWorker$2.advise(ImportJQueryUIWorker.java:92

Re: Tapestry 5.4 demo

2013-11-01 Thread Andreas Ernst
Am 01.11.13 16:55, schrieb Boris Horvat: Excluding dependency from tynamo security cased a new problem :) java.lang.NoSuchMethodError: org.apache.tapestry5.services.javascript.JavaScriptSupport.importStylesheet(Lorg/apache/tapestry5/Asset;)V at org.got5.tapestry5.jquery.services.ImportJQueryUIW

Re: Tapestry 5.4 demo

2013-11-01 Thread Boris Horvat
Well in my pom I have 5.4-SNAPSHOT I guess this has the reference to the latest alpha version, right? Since I see that there are people here that are using 5.4, what version of tapestry-jquery, tynamo-rest and tynamo-security do you guys use? Cheers On Fri, Nov 1, 2013 at 5:04 PM, Andreas Ernst

Can't scroll when using t:mixins="jquery/sortable"

2013-11-01 Thread Chung Khanh Duy
Hi expert, I am trying to use t:mixins="jquery/sortable" of taperstry5-jquery in ajaxformloop to drag and drop item for sorting. But I got the problem was that in IE and Firefox, when I tried to move the first item in the end of list ajaxformloop by dragging, the scrollbar of div was not scrollabl

Re: Tapestry 5.4 demo

2013-11-01 Thread Lenny Primak
Tynamo Security is ready for T5.4. I think (not sure) but RestEasy is good to go as well. Tapestry-JQuery is definitely incompatible at this point. On Nov 1, 2013, at 8:25 AM, Boris Horvat wrote: > Yea probably from say Tynamo Security or Rest, or it could be from > tapestry-jquery > > I

Re: Trying to create a custom mixin which will update zone.

2013-11-01 Thread George Christman
Lance, haven't tested it with a multifield scenario, but altered the js to work with require.js. (function() { define(["t5/core/events", "t5/core/dom", "t5/core/zone", "./jquery"], function(events, dom, zone, $) { int = function(spec) { var $field = $("#" + spec.id);

Re: Tapestry 5.4 demo

2013-11-01 Thread Boris Horvat
And what would happen if I just remove tapestry-jquery from the combination? Does 5.4 include jquery components now? I will try it out but wondering if someone knows the answer? On Fri, Nov 1, 2013 at 5:46 PM, Lenny Primak wrote: > Tynamo Security is ready for T5.4. I think (not sure) but Res

Re: Tapestry 5.4 demo

2013-11-01 Thread Lenny Primak
Look at the bottom of this blog: https://github.com/bobharner/blog/wiki/Jumping-Into-Tapestry-5.4-Alpha-3 If you remove tapestry5-jquery and add in the methods to enable JQuery in Tapestry, you will have JQUery support in tapestry. I am not too familiar with extra components that Tapestry-JQuery

Re: Tapestry 5.4 demo

2013-11-01 Thread Boris Horvat
This looks perfect, will give it read and try it out. Thanks On Fri, Nov 1, 2013 at 5:54 PM, Lenny Primak wrote: > Look at the bottom of this blog: > https://github.com/bobharner/blog/wiki/Jumping-Into-Tapestry-5.4-Alpha-3 > > If you remove tapestry5-jquery and add in the methods to enable JQu

Re: Tapestry 5.4 demo

2013-11-01 Thread Boris Horvat
Well the problem is not in the tapestry-jquery as I still have the same issue after removing it org.apache.shiro.subject.ExecutionException: java.lang.NoSuchMethodError: org.apache.tapestry5.services.javascript.JavaScriptSupport.importStylesheet(Lorg/apache/tapestry5/Asset;)V at org.apache.shiro.

Re: Tapestry 5.4 demo

2013-11-01 Thread Lenny Primak
It still looks like you have tapestry-jquery in your path. Maybe as a transitive dependency. > On Nov 1, 2013, at 1:20 PM, Boris Horvat wrote: > > Well the problem is not in the tapestry-jquery as I still have the same > issue after removing it > > > org.apache.shiro.subject.ExecutionExcep

Re: Tapestry 5.4 demo

2013-11-01 Thread Andreas Ernst
Am 01.11.13 18:20, schrieb Boris Horvat: Well the problem is not in the tapestry-jquery as I still have the same issue after removing it Do a clean rebuild. -- ae | Andreas Ernst | IT Spektrum Postfach 5, 65612 Beselich Schupbacher Str. 32, 65614 Beselich, Germany Tel: +49-6484-91002 Fax: +49-

[T53] [BUG] Beandisplay can't be used inside a form

2013-11-01 Thread Luca Menegus
Hi all, in tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/BeanDisplay.tml the loop component has the formState parameter set to "ITERATION" while (probably) should be set to "NONE". I'm appending [3] a really simple example showing that this bug prevents the Beandis

Re: [T53] [BUG] Beandisplay can't be used inside a form

2013-11-01 Thread Thiago H de Paula Figueiredo
On Fri, 01 Nov 2013 16:00:43 -0200, Luca Menegus wrote: Hi all, Hi! in tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/BeanDisplay.tml the loop component has the formState parameter set to "ITERATION" while (probably) should be set to "NONE". Good catch! Tha

Re: [T53] [BUG] Beandisplay can't be used inside a form

2013-11-01 Thread Luca Menegus
Thank you very much Thiago, working on it, ETA is Monday (setting up proper test env is not trivial) thanks, Luca - Original Message - > From: "Thiago H de Paula Figueiredo" > To: "Tapestry users" > Sent: Friday, November 1, 2013 7:44:40 PM > Subject: Re: [T53] [BUG] Beandisplay can'

RE: Pass Context Info to Bootstrap Modal

2013-11-01 Thread Asma Merchant
Hi Thiago, Thanks for all your help! I'd like to post a complete solution so if anyone else gets stuck in the future then he doesn't have to struggle since there are not enough tapestry examples: //tml