Re: Checking if user has left the page or refreshed it

2013-03-04 Thread Lenny Primak
The only thing I can think of is to check the referer header in the request. If its not from this page, you can clear all the persistent fiends in setupRender On Mar 4, 2013, at 3:42 PM, bhorvat wrote: > Is there any way to check if the user has just refreshed a page (in this case > I would lik

Re: Checking if user has left the page or refreshed it

2013-03-04 Thread Yohan Yudanara
I think you can use pageReset event to clear the checkboxes. It is called when user come from another page. This is copy paste from http://blog.tapestry5.de/index.php/2010/08/11/tapestry-5-2-preview/ A page is reset when the page is accessed from another page; component event links and page render

Best generic way to use zones

2013-03-04 Thread bhorvat
Hi all, I have a question about what should be the best approach to use zone in somewhat generic way. Basically I have something like this private void refreshAjaxZones(Zone... zone) { for (Zone tempZone : zone) { ajaxResponseRenderer.addRender(tempZone); }

Checking if user has left the page or refreshed it

2013-03-04 Thread bhorvat
Is there any way to check if the user has just refreshed a page (in this case I would like to keep all of the fields persistent) or if it has come to the page from some other place (in this case I want to have a clear start). Basically I have some checkboxes that I want to keep in memory what has

Re: Tapestry 5.3.6 and Debian/ppc

2013-03-04 Thread Chris Cureau
Michael, On the nose! tapestry-security depended on 5.3.4, but I am building on 5.3.6. Funny thing is, I'm using this exact code on my Intel box with Oracle JDK and it didn't complain at all... Thanks Thiago and Michael! On Mon, Mar 4, 2013 at 7:23 AM, Michael Gentry wrote: > Hi Thiago, > >

Re: t:jquery.datatable Failure reading parameter 'model' of component

2013-03-04 Thread Sachin Tendulkar
hi,  Page rendering error stopped by populating t:model with BeanModel. Just by adding the tapestry-jquery jar,  t:grid stops working. Not sure why? In AppModule,  @Submodule{} was added before using jquery/datatable. thanks, From: Sachin Tendulkar To: Tap

Re: Tapestry 5.3.6 and Debian/ppc

2013-03-04 Thread Michael Gentry
Hi Thiago, I saw the same exception a week or two ago when attempting to upgrade our project from 5.3.3 to 5.3.6. Turns out one of the external Tapestry libraries we were using specified 5.3.3 and Maven included that JAR for either tapestry-core or tapestry-ioc (I forget which one at the moment,

RadioGroup disable bug(?)

2013-03-04 Thread Erik Östman
Hey, I have a problem with a RadioGroup where the setter is called (with null value) on form submit even though the RadioGroup is disabled. This behavior makes the RadioGroup change its value from "True" to "False" on submit. Seems like the "Disable logic" is in AbstractField and RadioGroup ext

Re: t:jquery.datatable Failure reading parameter 'model' of component

2013-03-04 Thread Sachin Tendulkar
hi,   any help will be appreciated.    just putting tapestry-jquery-3.3.5.jar in pom.xml makes many other features in the application stop working like autocomplete. Why is this so. I am able to get  jquery.datatable  working independently thanks, From: Sac

Re: tapestry5.3 and Twitter-bootstrap disabled inputs

2013-03-04 Thread Lance Java
You can add and remove classes in javascript. For example, in jquery: http://api.jquery.com/addClass/ http://api.jquery.com/removeClass/ -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry5-3-and-Twitter-bootstrap-disabled-inputs-tp5720319p5720326.html Sent from the

Re: tapestry5.3 and Twitter-bootstrap disabled inputs

2013-03-04 Thread Jay Ginete
Thanks Peter but I have found a solution for presenting uneditable data. It was right in the bootstrap forms page ( http://twitter.github.com/bootstrap/base-css.html#forms). Some value here There's a small problem with this though, I can't disable or enable the textfield with javascript on the fl

Re: ioc registry error after webapp running all day/night on tomcat

2013-03-04 Thread Thiago H de Paula Figueiredo
On Sun, 03 Mar 2013 20:54:45 -0300, Lance Java wrote: Your first error is: [ERROR] ioc.Registry Forms require that the request method be POST and that the t:formdata query parameter have values. Sounds to me like your phone's browser is either: 1. Attempting to hit a form submit URL with

Re: Tapestry 5.3.6 and Debian/ppc

2013-03-04 Thread Thiago H de Paula Figueiredo
On Sun, 03 Mar 2013 13:48:01 -0300, Chris Cureau wrote: Caused by: java.lang.ClassNotFoundException: org.apache.tapestry5.ioc.internal.util.LockSupport This is the error and it's not related to JVM or operating system or processor: it seems you have a truncated or otherwise corrupted Ta

Re: t:jquery.datatable Failure reading parameter 'model' of component

2013-03-04 Thread Sachin Tendulkar
hi, Also it was giving this error: org.apache.tapestry5.internal.services.RenderQueueExceptionRender queue error in SetupRender --- Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException [at classpath:org/got5/tapestry5/jquery/components/AbstractJQueryTable.tm

t:jquery.datatable Failure reading parameter 'model' of component

2013-03-04 Thread Sachin Tendulkar
hi,   I converted Grid into jquery.datatable and am getting this error: caused by: org.apache.tapestry5.ioc.internal.util.TapestryException: Failure reading parameter 'model' of component test/AAAPage:invoicesearchcmpnt.datatable.headers: org.apache.tapestry5.ioc.internal.util.TapestryException

Re: tapestry5.3 and Twitter-bootstrap disabled inputs

2013-03-04 Thread Peter Wendorff
Hi. probably disabled="disabled" is a solution that works? The standalone, unvalued attributes are a html5 (and old html) syntax element. Tapestry templates are well formed XHTML and therefore XML documents. In XML every attribute has a value, which produces that parsing error, I think. The