Missing Asset causes Exception where 404 would be more appropriate

2011-03-16 Thread Joost Schouten (ml)
Hi, I have a bunch of robots crawling my assets folder and trying all sorts of requests to see if they can find holes in my app (example at [1]). Since the assets don't exist I get the following exception [2]. Would it not make more sence in this case to just return a 404 in stead? Would kee

Re: Is there anyway to change the behavior of ComponentTemplateSource,because I don't want to cache page templates or cache page templates with my own logic

2011-03-16 Thread jqzone
hi,Howard,I'm using tax component Dynamic.It works fine. Now I would like to add a loop support just like freemaker in Dynamic,so it will support separating data and view. the freemaker sample code is : <#list 0..n_ as n_> Have you ever done this, I hope you can give me some suggestions.

Re: Missing Asset causes Exception where 404 would be more appropriate

2011-03-16 Thread Ulrich Stärk
Indeed. We should handle stack assets the same as context and classpath assets where we DO issue a 404 not found. Please file an issue. Uli On 16.03.2011 09:02, Joost Schouten (ml) wrote: > > > Hi, > > I have a bunch of robots crawling my assets folder and trying all sorts of > requests to s

Re: Missing Asset causes Exception where 404 would be more appropriate

2011-03-16 Thread Joost Schouten (ml)
On 16/03/11 10:58 AM, Ulrich Stärk wrote: Indeed. We should handle stack assets the same as context and classpath assets where we DO issue a 404 not found. Please file an issue. Uli Ah! Didn't even know we already did do 404's on the other assets. Issue filed at: https://issues.apache.org/j

Re: New ZoneUpdater

2011-03-16 Thread Inge Solvoll
After applyting GOT5 tapestry-jquery in our project, ZoneUpdater was broken. So I did some work to jQuerify it, and here it is: http://tinybits.blogspot.com/2011/03/zoneupdater-jquery-edition.html On Fri, Mar 5, 2010 at 9:14 AM, Inge Solvoll wrote: > Hi! > > http://tinybits.blogspot.com/2010/03/

RegexAuthorizer missing

2011-03-16 Thread Dan Griffin
Hi all, I found out here that RegexAuthorizer is now a part of a 3rd party module in some maven repo, but I couldn`t find out which one, because the link left there has been broken. Quick google search didn`t help either. I wou

Disable Validation of a field

2011-03-16 Thread gauravchopra
Hi I am using Tapestry 5.2.2 version. Is there any way to disable the validation on a field on some event? say I have a checkbox and a textfield on a form, textfield - I want the validation on field email to be disabled or removed when I click the checkbox. What will be approach to implement thi

Re: Disable Validation of a field

2011-03-16 Thread gauravchopra
textbox code in tml is : -- View this message in context: http://tapestry.1045711.n5.nabble.com/Disable-Validation-of-a-field-tp3779681p3779790.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubsc

Re: Tapestry 5 - cache issue when accessed via proxy

2011-03-16 Thread sunmoor007
Hi Thiago Thanks again for your response. Will definitely try using LinkCreationListener/LinkCreationHub . Is it something which needs to be integrated in AppModule. I am relatively very new to Tapestry. Would really appreciate if you can provide a sample implementation for LinkCreationListener.

Re: RegexAuthorizer missing

2011-03-16 Thread Robert Zeigler
url: http://maven.saiwai-solutions.com group id: com.saiwaisolutions artifact id: AssetProtectionDispatcher version: 1.0.0 Note that 1.0.0 is tested against Tapestry 5.1.0.5, but I have used it fine with 5.2.4. The main caveat is that some of the default contributions for tapestry assets are po

Re: Tapestry 5 - cache issue when accessed via proxy

2011-03-16 Thread Rich M
The following is an internal Tapestry implementation of LinkCreationListener and a related class that the implementation makes use of. Maybe this can help you get on your way. http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/servic

Re: Tapestry 5 - cache issue when accessed via proxy

2011-03-16 Thread sunmoor007
Hi Rich Thanks. I understood the implementation of listener but i was looking at a way to integrate it so that all URL's in app gets modified. I understand that in app module we can plugin any service. Assume i have a impl class implementing the listener interface, how will i integrate it into exi

Re: Tapestry 5 - cache issue when accessed via proxy

2011-03-16 Thread Thiago H. de Paula Figueiredo
Something like this (not tested): public static MyLinkCreationListener buildMyLinkCreationListener(LinkCreationHub hub) { MyLinkCreationLister listener = new MyLinkCreationListener(); hub.addListener(listener); return listener; } On Wed, 16 Mar 2011 14:48:33 -0300, sun

Re: Tapestry 5 - cache issue when accessed via proxy

2011-03-16 Thread Rich M
On 03/16/2011 01:48 PM, sunmoor007 wrote: Hi Rich Thanks. I understood the implementation of listener but i was looking at a way to integrate it so that all URL's in app gets modified. I understand that in app module we can plugin any service. Assume i have a impl class implementing the listener

TAP5-781: single error message for multiple fields

2011-03-16 Thread Adam Zimowski
Hi - I saw Igor filed this already. I kind of need this feature. Is there a preferred/suggested work-around? Or any idea when and if this gets resolved? I really could use what Igor proposes, or even another signature: form.recordError(Field); or, if I could pass null for error message under cu

Re: TAP5-781: single error message for multiple fields

2011-03-16 Thread Adam Zimowski
Here is the URL to what Igor opened: https://issues.apache.org/jira/browse/TAP5-781 Adam On Wed, Mar 16, 2011 at 2:19 PM, Adam Zimowski wrote: > Hi - > > I saw Igor filed this already. I kind of need this feature. Is there a > preferred/suggested work-around? Or any idea when and if this gets >

Re: Rendering a Block

2011-03-16 Thread Joe Klecko
Thanks, I appreciate your response Howard. Your insight is helpful and actually the behavior I was expecting from Tapestry (ie, injection of javascript, css, etc). But I still feel I need to render the block into a string so I can escape the output which can then be used as a javascript parameter

Re: Rendering a Block

2011-03-16 Thread Howard Lewis Ship
I've done work integrating Ext.GridPanel with Tapestry, but we've just let Ext render the data items on the client side. I've actually had a lot of frustration because of the impedance mismatch between Ext (the server provides just data) and Tapestry (the server renders all content). On Wed, Mar

How to inject Spring Bean by name?

2011-03-16 Thread leon
Hi all, We need to inject more than one implementings of service interface, so how to do that? Thanks! -- Best Regards Li Guoqiang

Re: How to inject Spring Bean by name?

2011-03-16 Thread Jonathan Barker
You can either inject the ApplicationContext and get the bean from that, or you can try what is described here: http://stackoverflow.com/questions/2684171/tapestry-5-and-spring-beans-with-same-interface I haven't tried it myself, but it is a way around the current limitation of Spring bean inject

Re: How to inject Spring Bean by name?

2011-03-16 Thread leon
I think Tapestry-spring shout support inject by name out of box. On Thu, Mar 17, 2011 at 10:28 AM, Jonathan Barker < jonathan.theit...@gmail.com> wrote: > You can either inject the ApplicationContext and get the bean from that, or > you can try what is described here: > > > http://stackoverflow.c

Re: How to inject Spring Bean by name?

2011-03-16 Thread Thiago H. de Paula Figueiredo
On Wed, 16 Mar 2011 23:45:49 -0300, leon wrote: I think Tapestry-spring shout support inject by name out of box. It does: use @InjectService("beanName") instead of @Inject. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instruc

Re: How to inject Spring Bean by name?

2011-03-16 Thread Jonathan Barker
This is only the case when 5.0 compatibility mode has been enabled. This is something that broke (well, broke some of my stuff) between 5.0 and 5.1. On Wed, Mar 16, 2011 at 11:21 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 16 Mar 2011 23:45:49 -0300, leon wrote: > >

Re: How to inject Spring Bean by name?

2011-03-16 Thread Thiago H. de Paula Figueiredo
On Thu, 17 Mar 2011 00:37:19 -0300, Jonathan Barker wrote: This is only the case when 5.0 compatibility mode has been enabled. This is something that broke (well, broke some of my stuff) between 5.0 and 5.1. I stand corrected. :) I've been using the compatibility mode since 5.1 came o

Using conditional comments with @Import(stylesheet="...")

2011-03-16 Thread Ben Tomasini
Hello, I am looking to integrate the blueprint-css framework into a tapestry app and would like to use the @Import annotation on my Layout component to do so. The blueprint-css setup uses conditional comments (http://www.quirksmode.org/css/condcom.html) to give special instructions for IE 6 and I

Re: How to inject Spring Bean by name?

2011-03-16 Thread leon
Thanks ,got it. On Thu, Mar 17, 2011 at 11:38 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 17 Mar 2011 00:37:19 -0300, Jonathan Barker < > jonathan.theit...@gmail.com> wrote: > > This is only the case when 5.0 compatibility mode has been enabled. This >> is something

Re: asset expansion question

2011-03-16 Thread based2
http://tapestry.apache.org/assets.html http://tapestry.1045711.n5.nabble.com/T5-Assets-resources-and-file-path-td2416655.html -- View this message in context: http://tapestry.1045711.n5.nabble.com/asset-expansion-question-tp3697610p3834582.html Sent from the Tapestry - User mailing list archive a

Re: Using conditional comments with @Import(stylesheet="...")

2011-03-16 Thread based2
http://tapestry.apache.org/css.html http://tapestry.1045711.n5.nabble.com/Page-Links-showing-path-in-brackets-td3254604.html http://tiredblogger.wordpress.com/2009/12/17/using-less-to-simplify-blueprintcss/ == http://tapestry.apache.org/demos.html http://wiki.apache.org/tapestry/Tapestry5Opensourc

Re: Disable Validation of a field

2011-03-16 Thread based2
http://jumpstart.doublenegative.com.au/jumpstart/examples/input/novalidationbubbles1 http://www.packtpub.com/article/user-input-validation-in-tapestry-5 http://tapestry.1045711.n5.nabble.com/Disabling-onBlur-field-validation-td2416314.html http://tapestry.apache.org/input-validation.html http://cod