Re: T5.0.14: Parent before child clarification

2008-08-14 Thread Bill Holloway
Actually, I found that I can do what I need to do in beforeRenderTemplate. Bill On Thu, Aug 14, 2008 at 6:42 PM, Bill Holloway <[EMAIL PROTECTED]> wrote: > Back to this one again! I have two components. One inherits from > Grid; the other, GridRows. My GridRows subclass has a setupRender and >

Re: t5: a default page for non exist path

2008-08-14 Thread Thiago H. de Paula Figueiredo
Em Thu, 14 Aug 2008 21:59:16 -0300, Angelo Chen <[EMAIL PROTECTED]> escreveu: Object onActivate(Object obj) obj will always be the first part of the path, example, if I pass www.mydomian.com/mypage/123 obj contains only 'mypage', is there a way to get also '123'? Use Object[], List or Event

Re: t5: a default page for non exist path

2008-08-14 Thread Angelo Chen
Hi Filip, This works very well, just a quick question, in this function: Object onActivate(Object obj) obj will always be the first part of the path, example, if I pass www.mydomian.com/mypage/123 obj contains only 'mypage', is there a way to get also '123'? angelo Filip S. Adamsen-2 wrote:

Re: T5.0.14: Parent before child clarification

2008-08-14 Thread Bill Holloway
Back to this one again! I have two components. One inherits from Grid; the other, GridRows. My GridRows subclass has a setupRender and beginRender. If either one has arguments (MarkupWriter w, Event e), I get a java.lang.AbstractMethodError with the stack trace listed at the bottom of this mess

Re: [T5] How to use email validator?

2008-08-14 Thread Josh Canfield
I'm seeing the same thing. The email constructor is passing Void.class as the constraintType, but it looks like it should be passing null. I've filed a jira ticket https://issues.apache.org/jira/browse/TAPESTRY-2585 Josh On Tue, Aug 12, 2008 at 5:32 PM, Dave Dombrosky <[EMAIL PROTECTED]> wrote:

t5Components minor bug

2008-08-14 Thread Martijn Brinkers (List)
In order to protect my application against cross site forgeries I am using a LinkFactory that adds a sid to every link (see: http://wiki.apache.org/tapestry/Tapestry5CSRF) Because every action link now contains a sid parameter (ie URL looks something like "some_url?sid=1234") some Javascript funct

Re: T5 JBoss/Tomcat & expires header

2008-08-14 Thread Filip S. Adamsen
Hi, This is weird. I run Tapestry 5.0.14 in production on Tomcat 5.5 with no issues whatsoever wrt. the Expires header. Can you reproduce this on different systems? -Filip On 2008-08-14 23:12, Krishna Caldas wrote: Hi, The Expires header parameter (set after fix of https://issues.apache.or

T5 JBoss/Tomcat & expires header

2008-08-14 Thread Krishna Caldas
Hi, The Expires header parameter (set after fix of https://issues.apache.org/jira/browse/TAPESTRY-2159) is not working as expected in JBoss/Tomcat. For tapestry.js these are the headers: === JBoss/Tomcat Response Headers Server Apache-Coyote/1.1 X-Powered-By

Re: Page Loading and OSGI

2008-08-14 Thread Atle Prange
Igor Drobiazko wrote: As described in TAPESTRY-2519 you need to override the service ClasspathURLConverter. Something like that: public class MyClasspathURLConverterImpl implements ClasspathURLConverter { public URL convert(URL url) { if (url.getProtocol().startsWith("bundle"))

Re: Page Loading and OSGI

2008-08-14 Thread Igor Drobiazko
As described in TAPESTRY-2519 you need to override the service ClasspathURLConverter. Something like that: public class MyClasspathURLConverterImpl implements ClasspathURLConverter { public URL convert(URL url) { if (url.getProtocol().startsWith("bundle")) {

Re: Elimination of reflection in T5

2008-08-14 Thread Howard Lewis Ship
On Thu, Aug 14, 2008 at 12:16 PM, Christian Edward Gruber <[EMAIL PROTECTED]> wrote: > On 14-Aug-08, at 15:06 , Thiago H. de Paula Figueiredo wrote: >> >> I even started to play with Javassist, but unfortunately I had other >> things to do at the time. >> Almost all times I think of it I think of w

Re: Elimination of reflection in T5

2008-08-14 Thread Christian Edward Gruber
On 14-Aug-08, at 15:06 , Thiago H. de Paula Figueiredo wrote: I even started to play with Javassist, but unfortunately I had other things to do at the time. Almost all times I think of it I think of writing a Spring-esque annotation-driven transaction management package for Tapestry- IoC .

Re: [T5] Two RequestFilters in application module possible?

2008-08-14 Thread Sven Homburg
i wrote a short documentation how to use the scheduler service http://212.202.126.8:8080/chenillekit/chenillekit-quartz/index.html i hope its helps someone 2008/8/14 Sven Homburg <[EMAIL PROTECTED]> > chenillkit has a ready quartz module. > it works for two of my customers. > > the only snag is

Re: Elimination of reflection in T5

2008-08-14 Thread Thiago H. de Paula Figueiredo
Em Thu, 14 Aug 2008 15:54:36 -0300, Howard Lewis Ship <[EMAIL PROTECTED]> escreveu: Wait, Javassist has documentation now ? :-) I was thinking specifically about this tutorial: http://www.csg.is.titech.ac.jp/~chiba/javassist/tutorial/tutorial2.html. ;) :) I even started to play with Ja

Re: Elimination of reflection in T5

2008-08-14 Thread Howard Lewis Ship
Wait, Javassist has documentation now ? :-) The bytecode stuff has a number of advantages over reflection. It's 2x to 5x faster (that number shifts with every JDK release). It can be inlined and optimized by Hotspot. We don't waste time creating Object[] arrays for parameters and boxing and unb

T-4.1.6 - @Submit listener called twice

2008-08-14 Thread Ken in nashua
Can anyone comment on this? I have a button rigged up for an entity remove operation. My listener is being invoked twice. Is this a known bug? is there a workaround? I do not want to use @Button because is lacks listeners. code follows... Best rega

Re: [T5] Two RequestFilters in application module possible?

2008-08-14 Thread Robert Zeigler
Good to know. I just didn't see any code in the repository. ;) Robert On Aug 14, 2008, at 8/1411:05 AM , Sven Homburg wrote: chenillkit has a ready quartz module. it works for two of my customers. the only snag is the outstanding documentation. i hope that i find some minutes to do that this

Re: t5: a default page for non exist path

2008-08-14 Thread Thiago H. de Paula Figueiredo
Em Thu, 14 Aug 2008 12:48:27 -0300, Filip S. Adamsen <[EMAIL PROTECTED]> escreveu: I'm not quite sure why Index works and Start doesn't. But it does. Start was the old Tapestry 5 page name for the root application path. Now it's Index, and not just for the root application path, but for an

Re: T5: Specify List as Form's context?

2008-08-14 Thread Thiago H. de Paula Figueiredo
Em Wed, 13 Aug 2008 21:00:01 -0300, Jim Tomlinson <[EMAIL PROTECTED]> escreveu: I'm vapor-locking on how to specify a List of values in a Form component's context parameter. In this form: Try this instead: public List getContext() { List list = new ArrayList(); lis

Re: Elimination of reflection in T5

2008-08-14 Thread Thiago H. de Paula Figueiredo
Em Wed, 13 Aug 2008 18:50:41 -0300, Bill Holloway <[EMAIL PROTECTED]> escreveu: I think really that *runtime* reflection is eliminated. I wonder if the bytecode generation is really faster than reflection. At any rate, to accomplish elimination of runtime reflection isn't the bytecode genera

Re: [T5] Two RequestFilters in application module possible?

2008-08-14 Thread Sven Homburg
chenillkit has a ready quartz module. it works for two of my customers. the only snag is the outstanding documentation. i hope that i find some minutes to do that this week 2008/8/14 Robert Zeigler <[EMAIL PROTECTED]> > you could use a dispatcher instead of a request filter, inserted after the >

Re: t5: a default page for non exist path

2008-08-14 Thread Filip S. Adamsen
I'm not quite sure why Index works and Start doesn't. But it does. Regarding URL rewriting, I guess that's possible. I wouldn't rely on this "feature", though. I'm not sure it's supposed to work like that. -Filip On 2008-08-14 16:52, Angelo Chen wrote: Hi Filip, renaming Start to Index work

Re: t5: a default page for non exist path

2008-08-14 Thread Angelo Chen
Hi Filip, renaming Start to Index works, don't know why? what's the difference between Start and Index? this means we can actually do some URL rewriting in the onActivate(Obj)? that will be easier then using a HttpServletRequestFilter, say if somebody type: www.mydomain.com/12345/profile then w

Re: [T5] shouldn't MarkupWriter close the img-tag?

2008-08-14 Thread Filip S. Adamsen
I suppose you meant @ContentType("text/xhtml"). This doesn't work, though. At least not for me. I get a download prompt for the page, then. Same thing happens in Internet Explorer with @ContentType("application/xhtml+xml"), so that doesn't work either. Ugh. -Filip On 2008-08-14 16:17, How

Re: [T5] Two RequestFilters in application module possible?

2008-08-14 Thread Robert Zeigler
you could use a dispatcher instead of a request filter, inserted after the asset dispatcher. That way, only non-asset requests trigger the db update. You could adapt your filter to only fire the update on non-asset requests by explicitly checking the url (for matching patterns, for instance

Re: t5: a default page for non exist path

2008-08-14 Thread Filip S. Adamsen
Hi, Try renaming Start to Index and see if that helps. -Filip On 2008-08-14 16:30, Angelo Chen wrote: hi, This is my Start.tml, i assume it's the same as Index.tml, but the first onActivate is not called, any idea? public class Start { Object onActivate(Object obj) { System.out.p

Re: t5: a default page for non exist path

2008-08-14 Thread Angelo Chen
hi, This is my Start.tml, i assume it's the same as Index.tml, but the first onActivate is not called, any idea? public class Start { Object onActivate(Object obj) { System.out.println("index a"); return PageNotFound.class; } // use Start to load the home page so th

Re: [T5] shouldn't MarkupWriter close the img-tag?

2008-08-14 Thread Howard Lewis Ship
I need to update that wiki page. You can also just at @ContentType("text/html") to your page. On Thu, Aug 14, 2008 at 5:12 AM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > Hi, > > Have a look at http://wiki.apache.org/tapestry/Tapestry5HowToXhtml. > > -Filip > > On 2008-08-14 14:11, Andy Pahne w

Re: Page Loading and OSGI

2008-08-14 Thread Filip S. Adamsen
Hi, I have no experience with OSGi, but perhaps this issue can help: https://issues.apache.org/jira/browse/TAPESTRY-2519 -Filip On 2008-08-14 15:09, Atle Prange wrote: Hi, i am currrently trying to integrate tapestry into an OSGI container using apache felix and the ops4j pax web service. (F

Re: t5: a default page for non exist path

2008-08-14 Thread Filip S. Adamsen
Yes, it will. If the path isn't valid, Tapestry will pass it as the activation context to onActivate on your Index page. -Filip On 2008-08-14 15:16, Angelo Chen wrote: Thanks for the fast response, but I can not quite understand, my setup is like this: I have a Start.tmp which in turn call the

Re: t5: a default page for non exist path

2008-08-14 Thread Angelo Chen
Thanks for the fast response, but I can not quite understand, my setup is like this: I have a Start.tmp which in turn call the /Home page, based on what you said, the Start's onActive(Object obj) will be called if a invalid path is supplied? Filip S. Adamsen-2 wrote: > > Yeah, there is. At leas

Page Loading and OSGI

2008-08-14 Thread Atle Prange
Hi, i am currrently trying to integrate tapestry into an OSGI container using apache felix and the ops4j pax web service. (For many interesting reasons, one of them is the possibility to add services to the webapp at runtime...) I have managed to register the Tapestry filter, and load my app

Re: t5: a default page for non exist path

2008-08-14 Thread Filip S. Adamsen
Yeah, there is. At least I do that... I use onActivate on my Index page like this: Object onActivate(Object obj) { return ErrorNotFound.class; } Then, in my ErrorNotFound page, I set the HTTP Status Code to 404 to make the search engines happy: @Inject private RequestGlobals requ

t5: a default page for non exist path

2008-08-14 Thread Angelo Chen
hi, how to define a default page that will be shown to the browser if a non existing path is entered? example: www.mydomain.com/page1, page1 does not exist, tomcat will display a HTTP Status 404 - /page1, any way to re-direct this in t5 app to a t5 page? thanks. angelo -- View this message in c

Re: [T5] Two RequestFilters in application module possible?

2008-08-14 Thread Otho
Thanks a lot again! I'll try that out. Regards, Otho

Re: [T5] Two RequestFilters in application module possible?

2008-08-14 Thread Filip S. Adamsen
Hi, Glad it worked. I have something similar in my application, but instead of using a RequestFilter I use a PageRenderRequestFilter. This is only called for pages and has the added benefit of giving you easy access to the page name, parameters, etc. There's something similar for component

Re: [T5] Two RequestFilters in application module possible?

2008-08-14 Thread Filip S. Adamsen
Hi, Glad it worked. I have something similar in my application, but instead of using a RequestFilter I use a PageRenderRequestFilter. This is only called for pages and has the added benefit of giving you easy access to the page name, parameters, etc. There's something similar for component

Re: [T5] shouldn't MarkupWriter close the img-tag?

2008-08-14 Thread Filip S. Adamsen
Hi, Have a look at http://wiki.apache.org/tapestry/Tapestry5HowToXhtml. -Filip On 2008-08-14 14:11, Andy Pahne wrote: I have a component, that's renders an img tag. @BeginRender public void renderIcon(MarkupWriter writer) { Asset icon = getSrc(); writer.element("img

[T5] shouldn't MarkupWriter close the img-tag?

2008-08-14 Thread Andy Pahne
I have a component, that's renders an img tag. @BeginRender public void renderIcon(MarkupWriter writer) { Asset icon = getSrc(); writer.element("img", "src", icon.toClientURL(), "alt", getAlt()); resources.renderInformalParameters(writer

equanda 0.9.1 released

2008-08-14 Thread Joachim Van der Auwera
The equanda project has released a new version. equanda is a an open source framework which allows generation of a base JEE application, including DAO layer and tapestry5 based user interface from a domain model. The DAO layer uses a EJB3 backend with possibility for powerful declarative const

Re: [T5] global messages

2008-08-14 Thread 9902468
Just use properties files named the same as your Tapestry 5 filter. In web.xml: example org.apache.tapestry5.TapestryFilter example.properties, example_fi.properties etc. Place this file in the same directory as your web.xml. - 99 Andy Pahne-3 wrote: > > > For localizati

[T5] global messages

2008-08-14 Thread Andy Pahne
For localization I could use a global message catalogue, because there are some terms to translate that appear on many pages and inside many components. Is such a global message catalogue available? Andy - To unsubscribe

How to use FormInjector?

2008-08-14 Thread Donyee
any demos about the FormInjector? Some link will be great! I check the apache svn,but it seems not the FormInjector example. -- Yet Another Java EE Developer!

Display String Array

2008-08-14 Thread Mohammad Irfan
Hi, I'd like to display an array of string. on the java class (JobList.java) i have this get method: public abstract void setKonter(int kont); public abstract int getKonter(); public String[] getJobGroups() { try { this.jo

Re: [T5] Two RequestFilters in application module possible?

2008-08-14 Thread Otho
Thank you very much for the answer. Works perfectly! But this brought up a new question. The UserActivityFilter is used to track a users last activity to check for "active users at the moment". The simplistic approach I use at the moment updates a database table with a reference to user and a tim