Re: Tapestry onActivate messes up after submitting a form

2014-09-11 Thread Boris Horvat
Nope, still the same issue public void onActivate(EventContext eventContext) { selectedScene = eventContext.getCount() > 0 ? eventContext.get(Scene.class, 0) : null; selectedShot = eventContext.getCount() > 1 ? eventContext.get(Shot.class, 1) : null; selectedComponent =

Re: Absolute Asset URL 5.4

2014-09-11 Thread Lance Java
It's sometimes easy to forget that tapestry is just a normal war running in a servlet container. Assuming your building with maven, an image under src/main/webapp/foo.jpg will be available as http://myapp/foo.jpg On 11 Sep 2014 20:26, "George Christman" wrote: > Hi guys, I'm wondering if there

Re: Tynamo ApplicationStateManager Example

2014-09-11 Thread George Christman
Hi Kalle, just wondering if you had a chance to take a look at making federate work with 5.4. If there is something you feel I might be able to assist with, please let me know. Thanks. On Thu, Aug 21, 2014 at 11:14 AM, Kalle Korhonen wrote: > Probably in the library if it happens right after cli

Absolute Asset URL 5.4

2014-09-11 Thread George Christman
Hi guys, I'm wondering if there is a way to create absolute asset URL's in 5.4 without having to use BaseURLSouce? We would like to be able to include our logo into emails. Thanks, George

Re: ajax reload

2014-09-11 Thread Thiago H de Paula Figueiredo
On Thu, 11 Sep 2014 13:52:50 -0300, squallmat . wrote: I don't submit the form in Ajax request so... Is there way(s) to save values without submitting form ? That's not the only way of doing it, but that's the easiest. -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consulta

Re: streamresponse eventlink

2014-09-11 Thread Thiago H de Paula Figueiredo
On Thu, 11 Sep 2014 14:21:38 -0300, squallmat . wrote: Hi, Hi! I would like to know if there are some problems to get a file by streamresponse if an eventlink has many context parameters. As long you don't reach browsers' limits on URLs, it won't be a problem. I have an eventlink with

streamresponse eventlink

2014-09-11 Thread squallmat .
Hi, I would like to know if there are some problems to get a file by streamresponse if an eventlink has many context parameters. I have an eventlink with one parameter returning a StreamResponse that works perfectly well. I used the same thing on another page, but with 3 param context and the down

Re: ajax reload

2014-09-11 Thread squallmat .
I don't submit the form in Ajax request so... Is there way(s) to save values without submitting form ? 2014-09-11 16:06 GMT+02:00 Thiago H de Paula Figueiredo : > On Thu, 11 Sep 2014 10:47:14 -0300, squallmat . > wrote: > > Hi, >> > > Hi! > > So, on ajax reloading a zone, it seems values mod

Re: ajax reload

2014-09-11 Thread Thiago H de Paula Figueiredo
On Thu, 11 Sep 2014 10:47:14 -0300, squallmat . wrote: Hi, Hi! So, on ajax reloading a zone, it seems values modified are not saved. Unless you're submitting the form in the AJAX request, no values are modified server-side, so, when you re-render the checkboxes, they lose their stat

ajax reload

2014-09-11 Thread squallmat .
Hi, I have a zone where I add/remove dynamically a list of object, the object is made of a boolean that is associated with a t:checkbox. When I modify the checkbox (check/uncheck) and then update the zone (because list of objects change : add/remove) the value of checkboxes come back to there orig

Re: could not convert... on layout

2014-09-11 Thread squallmat .
OK, i found. I used the wrong Inject class on a page 2014-09-11 13:28 GMT+02:00 squallmat . : > Hi, > I have a layout that I use now for months on many pages, It always worked > well. But when I try to launch my webapp now, it suddenly stopped to work > and give me this error : > > Exception asse

could not convert... on layout

2014-09-11 Thread squallmat .
Hi, I have a layout that I use now for months on many pages, It always worked well. But when I try to launch my webapp now, it suddenly stopped to work and give me this error : Exception assembling root component of page NouvelApplicatif: Exception assembling embedded component 'mainlayout' (of ty

Re: Tapestry onActivate messes up after submitting a form

2014-09-11 Thread Lance Java
Try again: public void onActivate(EventContext eventContext) { selectedScene = eventContext.getCount() > 0 ? eventContext.get(Scene.class, 0) : null; selectedShot = eventContext.getCount() > 1 ? eventContext.get(Shot.class, 1) : null; selectedComponent = eventContext.getCount() > 2 ? even

Re: Tapestry onActivate messes up after submitting a form

2014-09-11 Thread Lance Java
Perhaps you're doing too much in onActivate(), it's called more often than you might think. Perhaps you should split the initialization logic into onPrepare() more info here http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/onactivateandonpassivate/3 eg: public void onActivate(