Re: T5.3: what's the correct usage of PerThreadValue

2012-11-29 Thread Lance Java
Another option is environmentals http://tapestry.apache.org/environmental-services.html Typically, a parent component will push() and environmental onto the (thread local) stack and a child component will peek() for the environmental and update it in some way. -- View this message in context:

Re: tapestry-jquery accordion height problem

2012-11-29 Thread Emmanuel DEMEY
Hi, I think it a jQuery UI problem. can you test the version of the jQuery UI you use. 1.8.* or 1.9.*. The parameters have changed between these 2 versions. Can you also add a breackpoint on the client-side, in order to check if the JSON is correct. Thanks. Manu 2012/11/29 rosecorp

Re: @CommitAfter not committing my transaction

2012-11-29 Thread Thiago H de Paula Figueiredo
On Wed, 28 Nov 2012 22:16:35 -0200, Pillar sotodel...@hotmail.com wrote: I'm not in a position to test it right now, so I won't say if it worked. Where does Tapestry get that session for you? If you're using tapestry-hibernate and @Inject'ing it, @CommitAfter will work. Otherwise, no. --

Re: @CommitAfter not committing my transaction

2012-11-29 Thread Thiago H de Paula Figueiredo
On Wed, 28 Nov 2012 22:28:58 -0200, Pillar sotodel...@hotmail.com wrote: Ok, so I didn't know that, I thought SessionFactory was a singleton. It never was. If you're connecting to two different databases, you'll need a SessionFactory for each. -- Thiago H. de Paula Figueiredo

Re: T5.3: what's the correct usage of PerThreadValue

2012-11-29 Thread Thiago H de Paula Figueiredo
On Wed, 28 Nov 2012 21:22:09 -0200, Robert Hailey rhai...@allogy.com wrote: Unless I'm mistaken (which is possible), tapestry will create two distinct components when building the component trees, and they will not have access to the same variable. So a template like: html ...

Re: app.properties

2012-11-29 Thread Thiago H de Paula Figueiredo
On Thu, 29 Nov 2012 10:48:11 -0200, John j...@quivinco.com wrote: Is it possible to provide both a app_en.properties and an app.properties. I want to store global properties (like smtp host names) in app.properties and just use app_en.properties for those properties that have a language

Re: date and time picker

2012-11-29 Thread Chris Cureau
I haven't found a ready-made tapestry component, but building up a component isn't too hard. Mobiscroll (http://mobiscroll.com) is a good option, as is jQuery TIme Entry (http://keith-wood.name/timeEntry.html) depending on your needs. On Thu, Nov 29, 2012 at 7:03 AM, John j...@quivinco.com

Re: date and time picker

2012-11-29 Thread Lance Java
I've used this jquery UI plugin http://fgelinas.com/code/timepicker in a non-tapestry project and my users love it. -- View this message in context: http://tapestry.1045711.n5.nabble.com/date-and-time-picker-tp5718388p5718392.html Sent from the Tapestry - User mailing list archive at

Re: date and time picker

2012-11-29 Thread John
I tried tapx-datefield 1.2-SNAPSHOT which at least runs but then the the js is missing? Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; MDDR; .NET CLR 3.0.4506.2152; .NET

[5.3.6] Loop component giving coercion error

2012-11-29 Thread Pillar
I've been reading other posts but nothing seems to work for me. Here's my page: public class ServiceActivation { private ListUser users; @Property private UserService userservice; @Property private User u;

Re: [5.3.6] Loop component giving coercion error

2012-11-29 Thread Mauricio Aldazosa
On Thu, Nov 29, 2012 at 8:48 AM, Pillar sotodel...@hotmail.com wrote: I've been reading other posts but nothing seems to work for me. t:loop source = users value = u formState = none t:loop source = ${u.userServices} value = userservice formState = none /t:loop /t:loop Inside

Re: [5.3.6] Loop component giving coercion error

2012-11-29 Thread Pillar
Yes, that did it. God damn it's been bugging me for two hours trying to find solutions. I think I had switched it because something had previously caused an exception and I thought I needed the expansion. Can you explain the use of formState and encoder in the form component? I don't quite get the

Re: [5.3.6] Loop component giving coercion error

2012-11-29 Thread Thiago H de Paula Figueiredo
On Thu, 29 Nov 2012 12:48:48 -0200, Pillar sotodel...@hotmail.com wrote: I've been reading other posts but nothing seems to work for me. Hi! t:loop source = ${u.userServices} value = userservice formState Never, never ever use ${} expansions when passing parameters. It causes the

Re: [5.3.6] Loop component giving coercion error

2012-11-29 Thread Pillar
Hey So it worked as you said, but now I have another problem. Can you tell me why this isn't working? t:loop source = services values = service formState = none ${service.name} /t:loop It gives me the following error: Render queue error in

Re: @CommitAfter not committing my transaction

2012-11-29 Thread Howard Lewis Ship
The idea with @CommitAfter is that Tapestry is responsible for handling the transaction, using the session-in-view pattern. The session is created lazily, when first needed. The transaction for the session is committed at the end of a method with @CommitAfter. The session is available to be

Re: [5.3.6] Loop component giving coercion error

2012-11-29 Thread Thiago H de Paula Figueiredo
On Thu, 29 Nov 2012 15:40:32 -0200, Pillar sotodel...@hotmail.com wrote: Hey Hi! Can you tell me why this isn't working? t:loop source = services values = service formState = none ${service.name} /t:loop The parameter name is wrong: it's value, not values. --

Re: [5.3.6] Loop component giving coercion error

2012-11-29 Thread Pillar
I need sleep. Thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/5-3-6-Loop-component-giving-coercion-error-tp5718395p5718403.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: tapestry-jquery accordion height problem

2012-11-29 Thread rosecorp
Hi Emmanuel, Your suggestion is correct, I've updated jquery accordia ui to latest one and that made a trick, Thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry-jquery-accordion-height-problem-tp5718378p5718404.html Sent from the Tapestry - User mailing

Re: Error references component id 'ABC' which does not exist

2012-11-29 Thread Howard Lewis Ship
Almost certainly related to case insensitivity of the file system. On Wed, Nov 28, 2012 at 1:05 AM, Lance Java lance.j...@googlemail.comwrote: If you provide a small snippet of code that's failing and an exception stack trace you are more likely to get help with this. -- View this

Re: @CommitAfter not committing my transaction

2012-11-29 Thread Pillar
While we are on the subject. @CommitAfter commits the transaction after the called method. What if I call multiple methods annotated with @CommitAfter? The commits happen after each of them. If I reach a method where an Exception is raised and I need to rollback, will it rollback every transaction

Re: @CommitAfter not committing my transaction

2012-11-29 Thread Pillar
More questions: I have an onSuccess() method in my Page class that calls a DAO delete method annotated with @CommitAfter. When the onSuccess() gets called (I'm using a form with a submit) the delete doesn't get commit at the end of the request (although I see hibernate log it). If I annotate the

Re: @CommitAfter not committing my transaction

2012-11-29 Thread Pillar
Answer my question too. I read that little bit you linked and I understand the HibernateTransactionAdvisor does it for you. -- View this message in context: http://tapestry.1045711.n5.nabble.com/CommitAfter-not-committing-my-transaction-tp5718364p5718408.html Sent from the Tapestry - User

Re: @CommitAfter not committing my transaction

2012-11-29 Thread Lenny Primak
I am not sure, never used Tapestry transaction support, but if you want full transaction support, use JEE On Nov 29, 2012, at 5:06 PM, Pillar sotodel...@hotmail.com wrote: More questions: I have an onSuccess() method in my Page class that calls a DAO delete method annotated with

Re: date and time picker

2012-11-29 Thread Howard Lewis Ship
It's funny how few date/time pickers are out there. For my client, I've cobbled together a decent one that works on top of JSCal2, which is proprietary. Even then, its a bit of an integration nightmare. I'd really like to write a decent date/time picker on top of jQuery or Tapestry 5.4's DOM