Re: SymbolConstants.PRODUCTION_MODE why not SymbolConstants.QA

2013-05-24 Thread Howard Lewis Ship
It is up to you, inside your web.xml configuration. Please look at the web.xml in a project generated from the Maven archetype, or look at the documentation. On Fri, May 24, 2013 at 12:04 PM, John wrote: > Thanks, that's useful. > > Is the link between tapestry.qa-modules and the mode=qa by sim

Re: Page must be specified before initializing for partial page render. - what causes this?

2013-05-24 Thread Boris Horvat
It means that you where expecting ajax request however it was page request. This usually happens when javascript is borken but you still click on a button that should trigger an ajax requests. My guess try to fix your custom javascript you have an error somewhere. Install one of the plugin for jav

Re: tapestry js error after form success

2013-05-24 Thread John
You are right, a fair bit of destruction to the page for a small mistake. :) - Original Message - From: Thiago H de Paula Figueiredo To: Tapestry users Sent: Friday, May 24, 2013 1:58 PM Subject: Re: tapestry js error after form success On Fri, 24 May 2013 09:50:24 -0300, J

Re: tapestry js error after form success

2013-05-24 Thread Thiago H de Paula Figueiredo
On Fri, 24 May 2013 09:50:24 -0300, John wrote: something to do with my regexp validater...the js console has thrown a message, its just to validate phone numbers as a + then numbers or spaces? phone-regexp=^\\+?+[0-9 ]+$ Uncaught SyntaxError: Invalid regular expression: /^\+?+[0-9 ]+$/:

Re: tapestry js error afet form success

2013-05-24 Thread Thiago H de Paula Figueiredo
Are you sure there wasn't any previous JavaScript error that prevented the Tapestry JS zone support to run? On Fri, 24 May 2013 09:37:56 -0300, John wrote: After I successfully handle a form submit and redisplay the page a select item with an associate dzone no longer invokes the page selec

Re: tapestry js error after form success

2013-05-24 Thread John
something to do with my regexp validater...the js console has thrown a message, its just to validate phone numbers as a + then numbers or spaces? phone-regexp=^\\+?+[0-9 ]+$ Uncaught SyntaxError: Invalid regular expression: /^\+?+[0-9 ]+$/: Nothing to repeat - Original Message -

Re: disable form submit button unless a form field value is changed

2013-05-24 Thread Thiago H de Paula Figueiredo
On Fri, 24 May 2013 08:00:25 -0300, John wrote: Hi, Hi! Is there an easy way for a form submit button to be disabled until the user edits a field and makes it different from it's initial value when the form rendered? Also if the user puts the field back to original value the submit aga

Re: SymbolConstants.PRODUCTION_MODE why not SymbolConstants.QA

2013-05-24 Thread John
Thanks, that's useful. Is the link between tapestry.qa-modules and the mode=qa by simple naming convention? This seems to be the way but is not stated explictly. i.e. tapestry.XXX-modules where XXX is the execution mode given? John - Original Message - From: Emmanuel DEMEY To: T

disable form submit button unless a form field value is changed

2013-05-24 Thread John
Hi, Is there an easy way for a form submit button to be disabled until the user edits a field and makes it different from it's initial value when the form rendered? Also if the user puts the field back to original value the submit again disables. I seem to remember Tapestry secures forms with

Re: SymbolConstants.PRODUCTION_MODE why not SymbolConstants.QA

2013-05-24 Thread Emmanuel DEMEY
Hi, You should have a look to our documentation about execution mode : http://tapestry.apache.org/configuration.html#Configuration-SettingExecutionModes Manu 2013/5/24 John > I need to know if my execution mode is QA but there's no SymbolConstants.QA > > i.e SymbolConstants.QA = "qa"; > > Wh

Re: failing form validation without a recordError

2013-05-24 Thread Shing Hing Man
Have you tried the following ?     public Object onFailureFromForm() {                   // clears validation              getForm().clearErrors();                 // set your error message elsewhere            return this;     } From: John T

Re: validate regexp=^[A-Za-z0-9 ']+$ in template problem

2013-05-24 Thread John
Yeah, I tried that one, not so good. Using the page properties is the way to go, keeps the markup nice and clean too. - Original Message - From: Lance Java To: Tapestry users Sent: Thursday, May 23, 2013 2:32 PM Subject: Re: validate regexp=^[A-Za-z0-9 ']+$ in template problem

Re: dwr java chat demo in t5

2013-05-24 Thread Lance Java
You would do this by the topic (eg: "/chat/user1"). You can add custom Authorizers for topic security.

SymbolConstants.PRODUCTION_MODE why not SymbolConstants.QA

2013-05-24 Thread John
I need to know if my execution mode is QA but there's no SymbolConstants.QA i.e SymbolConstants.QA = "qa"; What is the best way to introduce this constant, why is it not in there already? John

Re: dwr java chat demo in t5

2013-05-24 Thread D.R.
Lance, thanks again, i will check the docs. Seems that longpolling or jsonp is supported best by servers and browsers. The first question i will have if there is a kind of client identification built in. The chat messages must be propageted to the correct users and not to all users. Is a client i

Page must be specified before initializing for partial page render. - what causes this?

2013-05-24 Thread John
An unexpected application exception has occurred. a.. org.apache.tapestry5.ioc.internal.OperationException Page must be specified before initializing for partial page render. location classpath:epulse/audit/manager/pages/ManageUsers.tml, line 2015 16 18