Re: T[5] @Persist("Flash") and StreamResponse

2007-10-26 Thread ronaldlee
um.. actually it is not really a filename, but is more like an ID of a file.. is a unique string generated by the server (is the original filename user uploaded). I came up with this solution using your CleanupRender suggestion which will completely hide the filename (or ID of the file): ... @P

Re: T[5] @Persist("Flash") and StreamResponse

2007-10-26 Thread Josh Canfield
Yikes, that sounds dangerous... am I going to be able to load random files from your server by tweaking that filename? On 10/26/07, ronaldlee <[EMAIL PROTECTED]> wrote: > > > Thanks for the tip. > > I find a solution to this problem by simply passing the filename as the > link's param, like this:

T5: Null date displayed in a Grid raises error

2007-10-26 Thread Andy Huhn
Hello, I upgraded to 5.0.6, and since then, if I try to display a Grid that contains a Date column whose value is NULL, I receive the following exception. Should I file a JIRA, or am I doing something wrong? Here's the error: org.apache.tapestry.ioc.internal.util.TapestryException Cannot forma

Re: T[5] @Persist("Flash") and StreamResponse

2007-10-26 Thread ronaldlee
Thanks for the tip. I find a solution to this problem by simply passing the filename as the link's param, like this: public Link getSmallThumbnailImageURL(){ return resources.createActionLink("imageFileURL", false, new Object[]

Re: T[5] @Persist("Flash") and StreamResponse

2007-10-26 Thread Josh Canfield
The @Persist("flash") removes the object after page B is processed the first time, then when you call the action handler page B is processed again and your field is null, as it should be. You should be able to simply add a cleanupRender method to page B which resets the flash persisted field. I be

Re: T5 : How to solve the following problem when update the Integer or Double value In tapestry 5.0.6 ?

2007-10-26 Thread César Lesc
May be you can use a String text field with a Regexp validator http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/validator/Regexp.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

T[5] @Persist("Flash") and StreamResponse

2007-10-26 Thread ronaldlee
Hi, I am having problem with @Persist(Flash) and StreamResponse.. I am using the latest 5.0.6 release. Here is my setup: - I have two pages, page A is for uploading an image, and page B is for previewing an image. - Page A injects Page B, and Page B has a @Persist("flash") on a "imageFilename" a

EventListener and PropertySelection

2007-10-26 Thread lt
Hello, Im having some trouble with the EventListener annotation and PropertySelection component. I am using Tap 4.1.3. Here is the mappings. @Component(id="reportTypeSelect", type="PropertySelection", bindings={ "displayName=literal:Report Type",

Re: Tapestry5-Acegi incompatibility with Tapestry 5.0.6

2007-10-26 Thread Robin Helgelin
On 10/26/07, Robin Helgelin <[EMAIL PROTECTED]> wrote: > On 10/26/07, Thiago H de Paula Figueiredo <[EMAIL PROTECTED]> wrote: > > Could you release a new version with updated dependencies? :) While you do > > not do that, I'll checkout the source and try to figure out what happened. > > I will :) T

Re: Tapestry5-Acegi incompatibility with Tapestry 5.0.6

2007-10-26 Thread Robin Helgelin
On 10/26/07, Steven Woolley <[EMAIL PROTECTED]> wrote: > Quick question... is there any chance of having the acegi setup so that an > @Secured annotation on the class also applies to all the action methods in > that class? I find it odd that adding the annotation to a class still > allows accessin

how to bind script variables to component property

2007-10-26 Thread Ken nashua
Folks, Can someone provide some snippet on how to bind a script routine variable to a component property? For instance I have this... document.forms[0] inlineMyWidth The component has one properties myWidth. So I want to ask dojo for the forms width and bind it to my respetive componen

Re: Tapestry5-Acegi incompatibility with Tapestry 5.0.6

2007-10-26 Thread Steven Woolley
Quick question... is there any chance of having the acegi setup so that an @Secured annotation on the class also applies to all the action methods in that class? I find it odd that adding the annotation to a class still allows accessing the action methods (and perhaps a bit of a pain to always rem

Re: Tapestry 5 Border Component

2007-10-26 Thread Paul Croarkin
Thank you, Howard. --- Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > We've changed the name to Layout, but it's still just a design > pattern, not > a concrete component. > > Layout.tml: > >My Layout > > > > > Copyright 2007 MyCo. > > > > > > There you go ... a Layout that p

Re: Tapestry5-Acegi incompatibility with Tapestry 5.0.6

2007-10-26 Thread Robin Helgelin
On 10/26/07, Thiago H de Paula Figueiredo <[EMAIL PROTECTED]> wrote: > Could you release a new version with updated dependencies? :) While you do > not do that, I'll checkout the source and try to figure out what happened. I will :) The subversion code is ready, I was just waiting for the official

Re: Tapestry 5 Border Component

2007-10-26 Thread Howard Lewis Ship
We've changed the name to Layout, but it's still just a design pattern, not a concrete component. Layout.tml: My Layout Copyright 2007 MyCo. There you go ... a Layout that puts a copyright on every page (that uses the Layout component). On 10/26/07, Paul Croarkin <[EMAIL PROTE

Tapestry 5 Border Component

2007-10-26 Thread Paul Croarkin
I've worked extensively with Tapestry 4 and am now looking at 5. This is probably in a FAQ somewhere, but I can't find the FAQ. What is the Tapestry 5 equivalent of a Border Component? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam p

Re: T5 book: update

2007-10-26 Thread Ted Steen
ah, i`ll have a look at that in the weekend. it is an easy thing to add. 2007/10/26, Kolesnikov, Alexander GNI <[EMAIL PROTECTED]>: > Thanks Ted, I know that. By the way, did you have a chance to add > another toolbar configuration to FCKEditor component? > > -Original Message- > From

Re: @For component printing the an object representation in the .html

2007-10-26 Thread Andreas Andreou
On 10/26/07, Norman Franke <[EMAIL PROTECTED]> wrote: > The old @Foreach (Tapestry 4.0.x) did NOT do this, and I wish there > was an option to do this with @For. The old @Foreach is really just @For with volatile set to true -- Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr Tapest

Re: T5: How to upgrade from 5.0.5 to 5.0.6

2007-10-26 Thread jblier
Thanks for the answer, Now my application is loading (aside from some components). I still get a warning, though: log4j:WARN No appenders could be found for logger (org.mortbay.util.Container). log4j:WARN Please initialize the log4j system properly. Although it's not important to fix for now.

Re: @For component printing the an object representation in the .html

2007-10-26 Thread Mateus Lucio dos Santos
Hi Norman, thanks for the tips! Studying a little bit the whole web app architecture I think I can use the volatile attribute, since the data always come from a database and I believe it´s never modified between form rendering and submission (that's the most difficult thing to analyze), my coll

Re: Tapestry IoC error when Jetty is launched

2007-10-26 Thread Stephane Decleire
Sorry !!! Same problem as described there due to the javassist version : http://mail-archives.apache.org/mod_mbox/tapestry-users/200705.mbox/[EMAIL PROTECTED] Stephane Stephane Decleire a écrit : Here is what i get when i try to launch my Tap 5.0.6 application from Eclipse on Jetty 5.1.12 (by

Tapestry IoC error when Jetty is launched

2007-10-26 Thread Stephane Decleire
Here is what i get when i try to launch my Tap 5.0.6 application from Eclipse on Jetty 5.1.12 (by the JettyLauncher). I don't understand at all what that means ... Any idea ? Stephane 18:02:04.968 INFO [main] org.mortbay.log.LogImpl.add(LogImpl.java:109) >16> added [EMAIL PROTECTED] 18:02:04

Re: T5 : How to solve the following problem when update the Integer or Double value In tapestry 5.0.6 ?

2007-10-26 Thread Hugo Palma
There's an issue for this that was closed(https://issues.apache.org/jira/browse/TAPESTRY-1648) but i think should be reopened. Daniel Leffel wrote: This is a known issue at the moment. Unfortunately, some people on the list want blanks to be represented as nulls (like me) and some want them co

Re: T5 : How to solve the following problem when update the Integer or Double value In tapestry 5.0.6 ?

2007-10-26 Thread Daniel Leffel
This is a known issue at the moment. Unfortunately, some people on the list want blanks to be represented as nulls (like me) and some want them coerced into 0. I've tried using a Translator and can't get it to function even if the translator returns null as well. Howard is thinking about a beautifu

who needs JSON or AJAX ?

2007-10-26 Thread Ken nashua
Folks, I am operating the @Script component and the scripting features tapestry offers for components to facilitate surgical portions of javascript specific to particular components that reflect, mirror, and persist properties off of java objects or java components from the client side to serv

Re: @For component printing the an object representation in the .html

2007-10-26 Thread Norman Franke
This really bugged me as well, since can easily add 100K to your page. First, it only seems to happen inside a @Form component, as best as I can tell from reading the docs. You can provide a "keyExpression" to have it serialize the value of the object's attribute, e.g. it's primary key for

@For component printing the an object representation in the .html

2007-10-26 Thread Mateus Lucio dos Santos
Hi everybody !! I'm having a little problem when using the @For component ... while I'm iterating through the source collection the component prints a string representation of the object as the value of the @For component, I went to check the documentation and it says that the value attribute i

T5 : How to solve the following problem when update the Integer or Double value In tapestry 5.0.6 ?

2007-10-26 Thread li qian
How to solve the following problem when update the Integer or Double value In tapestry 5.0.6 ?When I clean the value of a field whose value is 5 int example = 5;Then press the sumbit botton . It's displaying 0 and send 0 to the database.How can I do If I want Textfield to display nothing and

Tapestry5-Acegi incompatibility with Tapestry 5.0.6

2007-10-26 Thread Thiago H de Paula Figueiredo
Hi! Robert, please take a look at this: after upgrading my application to Tapestry 5.0.6, this exception was thrown: [snip} Caused by: java.lang.NoSuchFieldError: BEGIN_RENDER_SIGNATURE at nu.localhost.tapestry.acegi.services.internal.AcegiWorker.transformPage(AcegiWorker.java:73) at nu

Re: T4.1.3 loop index issues, migrating from 4.0.2

2007-10-26 Thread Dom Couldwell
Fixed the typo but still get the same sort of error as the original problem 2007-10-26 08:33:25,031, ERROR, [com.db.rdq.web.tapestry.html.RDQException], line 22, org.apache.tapestry.BindingException 2007-10-26 08:33:25,062, ERROR, [com.db.rdq.web.tapestry.html.RDQException], line 23, Unable to upd

Re: T5: inject ComponentResources in a service

2007-10-26 Thread Davor Hrg
Thats, just it:) make a component, not a function ... you'll copy pasete your function arround and iject component resources in each page that uses it, look at the ActionLink source and create an ExternalLink from it :) Davor Hrg On 10/26/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > > Hi Nick,

Re: T5: inject ComponentResources in a service

2007-10-26 Thread Angelo Chen
Hi Nick, yes, I just want to make a method to create external page link, well, I'll just create it on the page, was thinking I can make a generic function for that. Nick Westgate wrote: > > At a glance, you just want to call createPageLink on a Page. > > So you could inject the PagePool to g

Re: T5: inject ComponentResources in a service

2007-10-26 Thread Davor Hrg
or, instead of creating a service, just create an ExternalLink component like normal link already is Hrg On 10/26/07, Nick Westgate <[EMAIL PROTECTED]> wrote: > > At a glance, you just want to call createPageLink on a Page. > > So you could inject the PagePool to get the page and go from there. >

Re: T5: inject ComponentResources in a service

2007-10-26 Thread Nick Westgate
At a glance, you just want to call createPageLink on a Page. So you could inject the PagePool to get the page and go from there. That's an internal service though ... can't see an obvious way to do this without "more than a glance". ;-) Cheers, Nick. Angelo Chen wrote: hi davor, correction,

Re: T4.1.3 : 100% CPU usage on tomcat due to server-side email validation

2007-10-26 Thread Ulrich Stärk
You are right, that pattern is not doing what it's supposed to do. I reopened the issue and attached a new patch. And email addresses containing an underscore are allowed. I put that into the patch too. Uli Christian Dutaret schrieb: Seems there is a bug in the new pattern: public static

Re: T5: inject ComponentResources in a service

2007-10-26 Thread Davor Hrg
you can not inject component resources that way ... it is specific to a component so it's scope is not even PER_THREAD you will have to provide it in the method you call... and inject it into your page... look at it this way: if you have a dozen of components on your page and from one of the comp

RE: T5 book: update

2007-10-26 Thread Kolesnikov, Alexander GNI
Thanks Ted, I know that. By the way, did you have a chance to add another toolbar configuration to FCKEditor component? -Original Message- From: Ted Steen [mailto:[EMAIL PROTECTED] Sent: 26 October 2007 11:00 To: Tapestry users Subject: Re: T5 book: update Very nice! Dont forget to upda

Re: T5 book: update

2007-10-26 Thread Ted Steen
Very nice! Dont forget to update the part about the DatePicker. It is now obsolete. T5.0.6 now includes a DateField as a part of the core. 2007/10/26, Kolesnikov, Alexander GNI <[EMAIL PROTECTED]>: > Just to let you know: the first draft of the book is completed, the > external revewing is a

Re: T4.1.3 : 100% CPU usage on tomcat due to server-side email validation

2007-10-26 Thread Christian Dutaret
Seems there is a bug in the new pattern: public static final String USERNAME_PATTERN = "([da-z]+[-._+&'])*[da-z]+"; should be: public static final String USERNAME_PATTERN = "([\\da-z]+[-._+&'])*[\\da-z]+"; or: public static final String USERNAME_PATTERN = "([0-9a-z]+[-._+&'])*[

Re: T5: inject ComponentResources in a service

2007-10-26 Thread Angelo Chen
hi davor, correction, the problem is ComponentResources used in the constructor, it has this error: Exception constructing service 'MyServices': Error invoking constructor org.bfe.myapp.t5.MyServicesImp(ComponentResources) (at MyServicesImp.java:36) (for service 'MyServices'): No service impleme

Re: T5: inject ComponentResources in a service

2007-10-26 Thread Angelo Chen
Hi, Thanks, now when there is only one parameter in the constructor, it works: public MyServicesImp(ApplicationGlobals globals) { this.globals = globals; } but if I have this: public MyServicesImp(ApplicationGlobals globals, ComponentResources resources) { this.globals =

T5 book: update

2007-10-26 Thread Kolesnikov, Alexander GNI
Just to let you know: the first draft of the book is completed, the external revewing is almost completed, I am currently upgrading the chapters to 5.0.6 with the deadline of 15 November. If everything goes well, the book should hit the shelves in December. Cheers, Alexander

Re: T5: inject ComponentResources in a service

2007-10-26 Thread Davor Hrg
service do not get enhanced like pages do, services get dependacies through constructor... http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html Davor Hrg On 10/26/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > > Hi, > > I injected ComponentResources in a service, but it's null, why? >

T5: inject ComponentResources in a service

2007-10-26 Thread Angelo Chen
Hi, I injected ComponentResources in a service, but it's null, why? public class MyServicesImp implements MyServices { @Inject private ComponentResources resources; public String createExternalPageLink(String pageName, Object context) { return getDomainName() + resources.cr

Re: In T4.1.2 How to LinkTo NonTapestry URIs(link to my jsp page)

2007-10-26 Thread Olle Hallin
But how do I do this in T5? Olle 2007/9/17, Renat Zubairov <[EMAIL PROTECTED]>: > > You can send redirect to any page and/or URL you want via direct > access to WebRequest or via RedirectException > See > > > http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/RedirectExcep

Re: T5.06 The tapestry-hibernate problem? resoloved!

2007-10-26 Thread Donyee
in my appModule.java, i changed : public void contributeHibernateSessionSource( OrderedConfiguration configuration) { configuration.add("my", "org.ts.domain.bo"); } 2007/10/26, Donyee <[EMAIL PROTECTED]>: > > > > I got errors when i use T5.06-hibernate, and my app works

T5.06 The tapestry-hibernate problem?

2007-10-26 Thread Donyee
I got errors when i use T5.06-hibernate, and my app works fine when i use T5.05! Also i changed the html to tml, sl4j... Error: No service implements the interface org.apache.tapestry.ioc.Configuration. Error invoking service builder method org.apache.tapestry.hibernate.HibernateModule.build(Hibern

Re: Restart goes to path "/app"

2007-10-26 Thread Alejandro Scandroli
Hi Sunil I answered a similar question a few weeks ago: http://www.nabble.com/T4%3A-Servlet-mapping-problem-tf4577378.html#a13073861 I hope it helps. Alejandro. On 10/25/07, sunilmanu <[EMAIL PROTECTED]> wrote: > > Hello everyone, > > When we try to do a logout by doing a RESTART of Service, by

Re: Tapestry 5 Roadmap

2007-10-26 Thread Alexander Lamb
I would like to add that "final release" is a very subjective term. Indeed, as you may read in the success stories, we are in production since october 1st using Tapestry 5.0.6 and it runs fine. I may add that 5.0.6 is probably more stable than many frameworks which would claim to be "final

Re: Auto Refresh

2007-10-26 Thread Andreas Andreou
Like http://tacos.sourceforge.net/components/AjaxAutoInvoker.html ? On 10/25/07, Tapestry240 <[EMAIL PROTECTED]> wrote: > > hi, > I am using Tapestry 4.0.2 and Tacos 4.0.1 > > I would like to know if there is a way to do auto refresh on some of the > components on a page and not the whole page. I