Re: [T5.4] context isn't passed to enclosing page during form submit

2014-07-02 Thread Ilya Obshadko
Oops my bad. I always try to forget about onPassivate () That should fix it, thanks! On Thu, Jul 3, 2014 at 1:46 PM, Geoff Callender < geoff.callender.jumpst...@gmail.com> wrote: > What's "t:ac"? In the POST's Form Data, "t:ac" is the key of the field > that carries the page's activation context

Re: Tapestry 5.4-beta-6 No service implements the interface org.slf4j.Logger.

2014-07-02 Thread Barry Books
do you have this in your pom file org.slf4j slf4j-log4j12 1.7.2 On Wed, Jul 2, 2014 at 8:36 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 02 Jul 2014 21:29:03 -0300, Manuel Sugawara < > manuel.sugaw...@gmail.com> wrote: > > Hi, >> > > Hello, Manuel!

Re: [T5.4] context isn't passed to enclosing page during form submit

2014-07-02 Thread Geoff Callender
What's "t:ac"? In the POST's Form Data, "t:ac" is the key of the field that carries the page's activation context. On 3 Jul 2014, at 12:41 pm, Geoff Callender wrote: > Not a bug. Form bubbles up its context in the PREPARE_FOR_SUBMIT event. > Here's a typical way to deal with it: > > v

Re: [T5.4] context isn't passed to enclosing page during form submit

2014-07-02 Thread Geoff Callender
Not a bug. Form bubbles up its context in the PREPARE_FOR_SUBMIT event. Here's a typical way to deal with it: void onPrepareForSubmit(Long id) { this.id = id; entity = retrieveFromDatabase(id); } What should you pass in the context? At a minimum I'

[T5.4] context isn't passed to enclosing page during form submit

2014-07-02 Thread Ilya Obshadko
I'm not sure if this is a bug or not. Here's a scenario: Page.java public class Page { @Property private Entity entity; void onActivate ( Long id ) { entity = retrieveFromDatabase ( id ); } } Page.tml: MyComponent.tml: ... AJAX is NOT used. If I get it right, form c

Re: Tapestry 5.4-beta-6 No service implements the interface org.slf4j.Logger.

2014-07-02 Thread Thiago H de Paula Figueiredo
On Wed, 02 Jul 2014 21:29:03 -0300, Manuel Sugawara wrote: Hi, Hello, Manuel! I'm trying to play a little bit with 5.4-beta-6 but our application that runs on tapestry 5.3.7 isn't starting, the error is: org.apache.tapestry5.ioc.internal.OperationException: No service implements the in

Tapestry 5.4-beta-6 No service implements the interface org.slf4j.Logger.

2014-07-02 Thread Manuel Sugawara
Hi, I'm trying to play a little bit with 5.4-beta-6 but our application that runs on tapestry 5.3.7 isn't starting, the error is: org.apache.tapestry5.ioc.internal.OperationException: No service implements the interface org.slf4j.Logger. Any clues on what I am missing? Regards, Manuel.

Re: tapestry.thread-pool.max-pool-size not doing anything

2014-07-02 Thread Arjan Verstoep
You're rigth. If multiple threads are scheduling jobs and the pool has reached a threadcount of maxsize-1, chances are that a RejectedExecutionException is thrown. The offer-method should use a lock. Like so: public boolean offer(Runnable inJob) { _lock.lock(); try { if (_exec

Re: tapestry.thread-pool.max-pool-size not doing anything

2014-07-02 Thread Lance Java
I'm not convinced this solution is thread-safe. On 1 Jul 2014 17:21, "Arjan Verstoep" wrote: > Yes, the default implementation is very counter-intuitive. I have > invesigated once, and it was possible to 'repair' the ThreadPoolExecutor if > you provide the 'right' work-queue. > > I don't know if