Re: PersistenceConstants.FLASH cann't persist ListString langs

2013-02-22 Thread zhouyc
if i don't want to store the List in the session for a long time, is there any advice to solve this problem? -- View this message in context: http://tapestry.1045711.n5.nabble.com/PersistenceConstants-FLASH-cann-t-persist-List-String-langs-tp5719462p5720163.html Sent from the Tapestry - User

Re: 3 days of ValueEncoder-ing, no coercion found

2013-02-22 Thread mvchris
Happy Friday Tapestry Users, I've been stuck on this all week and really can't move because it's the last part of my app :( Then I'm done!! But tapestry is not making it easy to finish. My ValueEncoder is not getting recognised. Here's a good summary of it. 1. I use similar (if not the exact

Jumpstart - instantiate object comment

2013-02-22 Thread mvchris
Hi T5 Users and Jumpstart Geoff, Whilst checking out some ValueEncoder stuff I just thought I'd ask seeing as it gets brought up a lot (Thiago/Taha) :) This example on jumpstart [1] has two ValueEncoder instantiated at the declaration of the field. As I understand this is a no-no and should be

Re: PersistenceConstants.FLASH cann't persist ListString langs

2013-02-22 Thread mvchris
bit of a hack but can you put the list to a single string delimited by control chars or caret ^ prior to form submission then on rendering of 2nd page convert back from single string to list chris -- View this message in context:

Re: Jumpstart - instantiate object comment

2013-02-22 Thread Thiago H de Paula Figueiredo
On Fri, 22 Feb 2013 06:24:03 -0300, mvchris ch...@mrvoip.com.au wrote: Hi T5 Users and Jumpstart Geoff, Hi! Whilst checking out some ValueEncoder stuff I just thought I'd ask seeing as it gets brought up a lot (Thiago/Taha) :) This example on jumpstart [1] has two ValueEncoder

Re: 3 days of ValueEncoder-ing, no coercion found

2013-02-22 Thread Thiago H de Paula Figueiredo
On Fri, 22 Feb 2013 06:09:42 -0300, mvchris ch...@mrvoip.com.au wrote: Happy Friday Tapestry Users, Hi! I've been stuck on this all week and really can't move because it's the last part of my app :( I don't understand this thread. Really. We've noticed the problem is in a Loop. Now you

Odd behaviour implementing custom ValidationDecorator

2013-02-22 Thread Sérgio Areias
Hi there. I was trying to implement a custom ValidationDecorator (something like this one http://tapestry.1045711.n5.nabble.com/Example-of-overriding-the-default-ValidationDecorator-tt2419072.html) but I am having a small problem. When I try to use field.isRequired() in the method public void

Re: PersistenceConstants.FLASH cann't persist ListString langs

2013-02-22 Thread Ivan Khalopik
As far as I understood flash strategy is needed to store values between form submission and render requests. Your flow: 1. onActivate() create values and store them in session 2. onSubmit() retrieve values and remove them from session = add value to detached collection 3. onActivate() retrieve

Re: [T5.3.6] combining JSON response and zone update

2013-02-22 Thread dfom
Ok. I found the solution by myself. Just added a js callback to the zone update response. The callback function now sends a second request responding the json array. Don't know if this is best practice but it's working... -- View this message in context:

Tapestry 5, Jetty 9 + JSW

2013-02-22 Thread John
Hi, If you have had any luck getting Tapestry to serve with Jetty 9 using JSW please drop me a line. I get Tapestry 5 to run fine using the Jetty 9 start.jar off the command line and in JSW the app starts fine but app not served. Can't see anything useful in logs, they all look fine. John

Re: [T5.3.6] combining JSON response and zone update

2013-02-22 Thread Ville
Take a look at AjaxResponseRenderer (http://tapestry.apache.org/5.3.6/apidocs/org/apache/tapestry5/services/ajax/AjaxResponseRenderer.html) It can be used to add as many zone, json etc. responses in one request to the client. Example:

Re: 3 days of ValueEncoder-ing, no coercion found

2013-02-22 Thread mvchris
Hi Thiago, Thanks for the response, I wasn't aware the Loop/Grid thing was a big issue - with either template it had been the same, passing the ValueEncoder. However, since tidying up and gaining a better understanding, the no coercion exception only appears on a grid - I made all my pages as

Re: Tapestry 5, Jetty 9 + JSW

2013-02-22 Thread mvchris
hi john, the network engineer in me asks if there is a firewall or some other impediment (like an OS level app-watching daemon that prevents programs from opening ports etc.)? is your request reaching the server if you run a network trace (like wireshark) chris -- View this message in

Re: 3 days of ValueEncoder-ing, no coercion found

2013-02-22 Thread Thiago H de Paula Figueiredo
On Fri, 22 Feb 2013 17:17:10 -0300, mvchris ch...@mrvoip.com.au wrote: Hi Thiago, Hi! However, since tidying up and gaining a better understanding, the no coercion exception only appears on a grid - I made all my pages as similar as possible for this problem since the start of the week to

Re: 3 days of ValueEncoder-ing, no coercion found

2013-02-22 Thread Thiago H de Paula Figueiredo
Oops, now looking again at your post, now in Nabble, I've noticed something: Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to org.opencsta.ctiserver.library.asterisk.managerevents.model.LibraryQueueMemberEvent at