Re: @java.lang.Math@min inside TML files ?

2011-09-10 Thread Robert Zeigler
T3-T4 used ognl for the binding/property expression language. T5 does not (although there are third party add-ons that restore ognl use). T5's property expression language does not allow for static access, so @java.lang.Math@min won't work. Robert On Sep 10, 2011, at 9/109:02 PM , Ken in Na

Re: T5.3 Grid, inPlace Update and expired Sessions

2011-09-10 Thread Lenny Primak
I solved this problem finally by making a component somewhat derivative of tapestry-conversations moderator component. Wasn't easy in the last bit. I will post the code to wiki shortly. What it does is just redirect to the same page if sessions expires, allowing the user to relogin, or if the 'r

@java.lang.Math@min inside TML files ?

2011-09-10 Thread Ken in Nashua
Hi All, I am trying to operate @java.lang.Math@min within my tml file and it is not working... the markup is spitting out code as opposed as executing the code for my logic. Has this usage of java inside markup files changed for tapestry ? Best Regards and thanks kcola...@live.com

Re: missing css files in jetty

2011-09-10 Thread Martin Strand
Definitely sounds like tmpwatch. You can also create a "work" directory in ${jetty.home} and Jetty will use that for unpacked apps. Read more here: http://wiki.eclipse.org/Jetty/Reference/Temporary_Directories On Sat, 10 Sep 2011 23:25:20 +0200, Cezary Biernacki wrote: Hi, if you are ru

Re: missing css files in jetty

2011-09-10 Thread Cezary Biernacki
Hi, if you are running on Linux, maybe 'tmpwatch' removed the file. By default Jetty unpacks WARs to /tmp, and on many Linux distributions 'tmpwatch' is executed from a cron job to remove files from /tmp that were not accessed for some time. In such case, you can disable either tmpwatch or change

Re: T5.3 Grid, inPlace Update and expired Sessions

2011-09-10 Thread Lenny Primak
That would be great, but I personally would be very happy with just a redirect to the current page, which would just get me a login prompt once again, but I suppose there are deeper tapestry-related javascript issues going on here, otherwise this problem would have been licked already. On Sep 10,

Re: T5.3 Grid, inPlace Update and expired Sessions

2011-09-10 Thread Fernando Padilla
Hm.. Did someone already propose to have Tapestry-Security support a popup-login flow? So when tapestry-security hijacks a ajax request, it would return a multizoneupdate that would generate a popup-zone (tapestry doesn't have native support for those yet, but really should!); and would hand

Re: T5.3 Grid, inPlace Update and expired Sessions

2011-09-10 Thread Lenny Primak
Did anybody test tapestry-conversation under Tap 5.3 (beta 5?) I am getting ReferenceError: Can't find variable: ConversationModerator The ConversationModerator.js doesn't seem to get included into the Tapestry page, but the component is there. On Sep 10, 2011, at 12:29 PM, Lenny Primak wrote: >

Re: Is it possible to perform form submit after being redirected via a loginform?

2011-09-10 Thread Joakim Olsson
I'm still struggling with this. I tried to extract all request parameters and then re-add them back as parameters to the Link I return back from a successful login but they disappear somewhere before I get to the actual form post. I can see that the request is a POST but the t:formdata is missing (

Re: T5.3 Grid, inPlace Update and expired Sessions

2011-09-10 Thread Lenny Primak
Thanks, Kalle, I think this will work. I would love, if its possible, for tap-security, perhaps? to be able to redirect AJAX requests correctly to the current page or login page in case the session expired. That way, it would all work automatically, instead of showing ugly exception on the scree

Re: T5.3 Grid, inPlace Update and expired Sessions

2011-09-10 Thread Kalle Korhonen
On Sat, Sep 10, 2011 at 2:39 AM, Lenny Primak wrote: > Digging through this a bit deeper, there is an interaction going on here with > tapestry-security. > When the session expires, the user is no longer logged in, and thus > ajax call is being redirected to a login screen, thus the exceptions. >

Re: Grid disable sorting mixin

2011-09-10 Thread Steve Eynon
There's a gotcha with the Mixin that can generate an Exception if used on a Grid with no data. Here's the complete working Mixin; @MixinAfter public class DisableGridSorting { @InjectContainer private Grid grid; void setupRender() { if (grid.getDataSource(

Re: T5.3 Grid, inPlace Update and expired Sessions

2011-09-10 Thread Lenny Primak
Digging through this a bit deeper, there is an interaction going on here with tapestry-security. When the session expires, the user is no longer logged in, and thus ajax call is being redirected to a login screen, thus the exceptions. But the problem still remains the same, there seems to be no g

Re: T5.3 Grid, inPlace Update and expired Sessions

2011-09-10 Thread Lenny Primak
I tried the way Thiago suggested in the mentioned thread, but that does not work for the inPlace grid. I really, REALLY, really do not want to create/compile my own version of patched tapestry and patch tapestry.js isn't that great of an idea. - Error --- SEVERE: Even