Spring security access denied redirect

2012-05-16 Thread nquirynen
I use tapestry-spring-security in my Tapestry app. I added @Secured("ROLE_SYSADMIN") in one of my pages and also in my AppModule I added: public static void contributeApplicationDefaults(MappedConfiguration configuration) { configuration.add("spring-security.accessDenied.u

Re: Tapestry.ZONE_UPDATED_EVENT issue

2012-05-16 Thread nquirynen
Your jquery selector is wrong I think it has to be $('#mediaZone'). So with the "#" as it's the id attribute. Also I always use jqueries "bind" function. Not sure if thats the problem though. $('#mediaZone').bind(Tapestry.ZONE_UPDATED_EVENT, function(event) { ... } -- View this message in con

Regarding Lightweight TapestryTools

2012-05-16 Thread Athneria, Mahendra
Hi Gavin, I have taken latest source code from http://tapestrytools.googlecode.com/svn/trunk. I am trying to modify the plug-in as per the project specific requirements. I am using Eclipse version =3.7.0 to modify the plug-in. when I run plug-in from the eclipse, it will open a new eclipse ins

Re: Regarding Lightweight TapestryTools

2012-05-16 Thread Thiago H. de Paula Figueiredo
On Wed, 16 May 2012 06:59:23 -0300, Athneria, Mahendra wrote: Hi Gavin, Hi, Mahendra! Please post in a single mailing list at the same time. ;) -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Te

Re: Add Tapestry validation to hidden element written with MarkupWriter

2012-05-16 Thread George Christman
Hi Thiago, do you have anymore insight on this? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Add-Tapestry-validation-to-hidden-element-written-with-MarkupWriter-tp5710350p5710820.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: dynamic validation for required / not required

2012-05-16 Thread George Christman
Thiago, I'm getting the following exception while trying to pass back the parameter. org.apache.tapestry5.ioc.internal.util.TapestryException Failure reading parameter 'validate' of component Purchase_Request:contactname: Unexpected character '(' at position 24 of input string: getContactNameVali

Re: Add Tapestry validation to hidden element written with MarkupWriter

2012-05-16 Thread Thiago H. de Paula Figueiredo
On Wed, 16 May 2012 09:42:44 -0300, George Christman wrote: Hi Thiago, do you have anymore insight on this? I think you should rethink what you're doing. You cannot attach Tapestry validations to non AbstractField (more specifically, AbstractTextField) subclasses. I'd try to implement i

Re: dynamic validation for required / not required

2012-05-16 Thread Thiago H. de Paula Figueiredo
On Wed, 16 May 2012 10:05:47 -0300, George Christman wrote: Thiago, I'm getting the following exception while trying to pass back the parameter. Oops, it should be t:validate="prop:getContactNameValidator(component:contactName)". I forgot the default binding for the validate parameter i

Re: Add Tapestry validation to hidden element written with MarkupWriter

2012-05-16 Thread Taha Siddiqi
Hi You can see how validation has been implemented in the core components especially AbstractTextField, Select. That might help. Also http://tawus.wordpress.com/2011/12/28/multivalue-autocomplete-for-tapestry/ might help regards Taha On May 16, 2012, at 1:52 AM, George Christman wrote: > I

Re: dynamic validation for required / not required

2012-05-16 Thread George Christman
it now produces the following exception. java.lang.RuntimeException Error parsing property expression 'getContactNameValidator(component:contactName)': line 1:23 no viable alternative at input '('. java.lang.RuntimeException line 1:23 no viable alternative at input '(' -- View this message in co

Re: Add Tapestry validation to hidden element written with MarkupWriter

2012-05-16 Thread George Christman
Thanks Taha, this seems pretty useful. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Add-Tapestry-validation-to-hidden-element-written-with-MarkupWriter-tp5710350p5710874.html Sent from the Tapestry - User mailing list archive at Nabble.com.

How to render component(zone,block) widthout request and response

2012-05-16 Thread xieweiguo
Hello everybody! I am using tapestry for a comet app.now I have got a question:How to render component(zone,block) widthout request and response? When some event has bean fired from server(for example:somebody get online),the server need to render some html and push it to all the people who are onl

Re: Add Tapestry validation to hidden element written with MarkupWriter

2012-05-16 Thread George Christman
Hi Taha, I really like this solution. I think it's much more secure plus cleaner than my old way. My question I have is is there away to enable clientside validation to an abstract field. I see in his example, he's validating the field on submit only. Any thoughts? -- View this message in context:

Tapestry 5.3.3, Spring 3.1 and @Inject

2012-05-16 Thread m...@raibledesigns.com
Hey all, I'm trying to get AppFuse's CRUD generation to work with the latest Tapestry 5.3.3 release and Spring 3.1. I can't seem to get Tapestry to recognize a Generics-based Spring class. Here's the code that's generated in PersonList.java: import org.apache.tapestry5.ioc.annotations.Inject; i

Re: Tapestry.ZONE_UPDATED_EVENT issue

2012-05-16 Thread bogdan_cm
Thank you both for the reply. "bind" was my first try and I eventually tried with "on". I'll try the Prototype version as well. Funky problem :). -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-ZONE-UPDATED-EVENT-issue-tp5708402p5711203.html Sent from the Tapest

Optionally import javascript for IE

2012-05-16 Thread sigenz
I am wondering if there is a function to optionally import javascript in the page/component class using javaScriptSupport, just like http://tapestry.apache.org/css.html that for Stylesheet : j/avaScriptSupport.importStylesheet(new StylesheetLink(messages.get("styles.ie.css", new

Re: Tapestry 5.3.3, Spring 3.1 and @Inject

2012-05-16 Thread Jonathan Barker
I don't think the situation has changed since this thread was written: http://tapestry.1045711.n5.nabble.com/How-to-inject-Spring-Bean-by-name-td3817612.html It would be nice to have the ability to inject by name. Perhaps this wiki entry could provide some hints: http://wiki.apache.org/tapestry

Re: Add Tapestry validation to hidden element written with MarkupWriter

2012-05-16 Thread Taha Siddiqi
I think in this case you will have to rely on the custom events defined in the javascript plugin (token-input.js). regards Taha On May 16, 2012, at 11:27 PM, George Christman wrote: > Hi Taha, I really like this solution. I think it's much more secure plus > cleaner than my old way. My questio