Re: T5: Using resources

2008-02-22 Thread Angelo Chen
how about just : emplate template = Velocity.getTemplate("description.vm"); MoritzGilsdorf wrote: > > Hi, > > I have that. Here is my code: > > props.setProperty(VelocityEngine.RESOURCE_LOADER, "classpath"); > props.setProperty("classpath." + VelocityEngine.RESOURCE_LOADER + > ".class",Class

Re: T5: Using resources

2008-02-22 Thread MoritzGilsdorf
Then I get: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'description.vm' Obviously Velocity can't find the template because in my deployment it is packaged in the jar file under WEB-INF/lib . Angelo Chen wrote: > > how about just : > > emplate template =

Re: T5: Using resources

2008-02-22 Thread Angelo Chen
Hi, my deployment is also packaged into jar file under WEB-INF/lib, except i don't have the templates directory, in my case the *.vm files are in the place where log4j.properties is, try to move those *.vm files into that place and see if velocity can find it. a.c. MoritzGilsdorf wrote: > >

Re: Only reload components?

2008-02-22 Thread Sabine K.
Hi Francois, thank you for that link. On the page: * zone parameter for Form components * Extending a Form with a Zone * Additional Tapestry.ZoneEffect functions, plus documentation * Real examples ... So i think i have to wait for the zome parameter for Form components impl

Re: T5: Using resources

2008-02-22 Thread Hugo Palma
I think the problem is that your referecing your template by path and not by it's place in the classpath. Velocity.getTemplate("templates/description.vm"); should work. MoritzGilsdorf wrote: > Hi, > > I have that. Here is my code: > > props.setProperty(VelocityEngine.RESOURCE_LOADER, "classpat

T5: Put template in other directory

2008-02-22 Thread Joshua Jackson
Dear all, Is it possible to place the templates inside other directory other than inside the package alongside with the Java class? Somehow this is not convenient for our webdesigner so we want to place our templates inside another folder just like T4. Thnx in advance -- Let's show the world wha

Re: t5: utf8(chinese) in form

2008-02-22 Thread Angelo Chen
Hi Lauri, no, i'm not using tapesry-upload in this case, thanks for the coming sample code. Lauri Benno wrote: > > Hi Angelo, > > Are you using tapestry-upload on the same page? If yes then it's the > culprit. You can patch it contributing a service alias in your app module > but I don't have

Re: t5: utf8(chinese) in form

2008-02-22 Thread Lauri Benno
Hi Angelo, Are you using tapestry-upload on the same page? If yes then it's the culprit. You can patch it contributing a service alias in your app module but I don't have a sample at hand right now. Maybe I can dig up something in the evening (it's afternoon right now). Lauri Angelo Chen wrote

JumpStart 3.3.1 now available - fixes 3.3.0 bugs

2008-02-22 Thread Geoff Callender
Hi all, JumpStart 3.3.1 is now available. It fixes these bugs that were in 3.3.0 which was released 2 days ago: * Database was not updating. Due to not replacing onValidateFromForm() with onValidateForm() everywhere. * Links to components reference were using the old reference, not the

Re: [T5] slashes in context parameters messing up

2008-02-22 Thread Hugo Palma
I'm also getting this behaviour on Jetty. If a pass a value with '%2' in it to the activation context it gets translated into an empty string. Fernando Padilla wrote: > Wait.. so what is the expected/correct behavior?? > > the url coming in is /%2Fblah/ > > how should that be interpreted? > > and

Re: T4: Using @EventListener to capture a javascript method call

2008-02-22 Thread carlos f
Chris, take everything i say with a grain a salt. I am having limited success getting this to work with tap 4.1.3. I can get the client side JS call to trigger . . . however i can't see to get it to execute the right server side listener method. Chris Norris-2 wrote: > > The first question i

Re: T5: Put template in other directory

2008-02-22 Thread Robert Zeigler
Page templates can be placed in the context root (or appropriate subfolders, depending on your package structure). Component templates are (currently) required to be on the classpath. Robert On Feb 22, 2008, at 2/224:24 AM , Joshua Jackson wrote: Dear all, Is it possible to place the templa

Re: Callbacks in Tap5

2008-02-22 Thread Hugo Palma
Maybe i'm missing something but i'm not seeing an easy way to solve this. Well, in it's simplest form i can just pass a page name to the activation context of the redirection target page and then use that String value to return to the original page. Works fine. But, a little more complex use case.

Re: Callbacks in Tap5

2008-02-22 Thread Robert Zeigler
Isn't the set of return value handlers extensible? Couldn't you contribute your own "url handler" that handles java.net.URL (or java.net.URI)? Then you could pass in the string value, and return the string as a URL? Robert On Feb 22, 2008, at 2/2210:01 AM , Hugo Palma wrote: Maybe i'm missi

t5 GridModelProvider 5.0.10 missing

2008-02-22 Thread riccaruf
Hi Guys, sorry for this question but I was trying the new t5 release and I can't find GridModelProvider in any packages. Did I miss something ? The new release api provide a doc for this interface but I can't find it anywhere. Thanks -Rick -- View this message in context: http://www.nabble.c

injecting services in T5

2008-02-22 Thread Mahen Perera
Hi all, A quick one, Can we inject services using @Inject in any class,, or is it restricted to only Page classes. I mean classes which are in web.pages package. Thanks in advance for all replies. The information contained in this email is strictly confidential and for the use of t

Re: Callbacks in Tap5

2008-02-22 Thread Howard Lewis Ship
Can you capture the activation context as an Object[] and pass that to the eventual Form? On Fri, Feb 22, 2008 at 8:01 AM, Hugo Palma <[EMAIL PROTECTED]> wrote: > Maybe i'm missing something but i'm not seeing an easy way to solve this. > Well, in it's simplest form i can just pass a page name to

Re: injecting services in T5

2008-02-22 Thread Ted Steen
You can only use @Inject in classes that are under the control of tapestry. that is classes under .base .components and .pages If you want to use services in other classes you have to inject them yourself. see http://tapestry.apache.org/tapestry5/tapestry-ioc/index.html 2008/2/22, Mahen Perera <

Re: injecting services in T5

2008-02-22 Thread Howard Lewis Ship
This is a big stumbling point in Tapestry that injection is different from components (including pages, mixins, and base component classes) and for services. Injection for services is part of the Inversion of Control container, and its a bit less "magic". Tapestry takes it as far as providing the

Re: Grid in form and pager

2008-02-22 Thread Adriaan Joubert
Thanks for the example, Francois. I'll have a play with these ideas and see how I get on. Cheers, Adriaan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5: Put template in other directory

2008-02-22 Thread Martin Grotzke
Hi, it should be possible to resolve templates as you want, see http://www.nabble.com/T5%3A-Personalizing-page-and-component-template-td14098291.html for example. Cheers, Martin On Fri, 2008-02-22 at 09:23 -0600, Robert Zeigler wrote: > Page templates can be placed in the context root (or appro

Re: Callbacks in Tap5

2008-02-22 Thread Hugo Palma
I'll have to look into the code a little deeper to find that one Robert Zeigler wrote: > Isn't the set of return value handlers extensible? Couldn't you > contribute your own "url handler" that handles java.net.URL (or > java.net.URI)? > Then you could pass in the string value, and return the

Re: Callbacks in Tap5

2008-02-22 Thread Hugo Palma
I can, but how do i then pass the Object[] to the context parameter of the createPageLink method in order to created the original Link ? Howard Lewis Ship wrote: > Can you capture the activation context as an Object[] and pass that to > the eventual Form? > > On Fri, Feb 22, 2008 at 8:01 AM, Hugo

Re: Callbacks in Tap5

2008-02-22 Thread Josh Canfield
Hi Hugo, I'm not familiar with ICallback, but it sounds like what you are trying to do matches something I use to keep track of the referring page within my application. http://www.nabble.com/Re%3A-page-navigation-%28return-to-arbitrary-page%29-p14155874.html Essentially you create the Link obje

Re: [T5] slashes in context parameters messing up

2008-02-22 Thread Fernando Padilla
So.. I've been thinking about this.. and I suppose use URL encoding to encode the context parameters is what's getting us into trouble.. Should we be using a modified url encoding? Like instead of using "%" as our escape character, use something like = or *, and also escape any occurance of t

Re: Vista problem

2008-02-22 Thread Daniel Leffel
Check your logs. The app isn't starting. [TOMCAT_HOME]/logs/catalina.out Hard to say what's wrong without looking at the error. On Fri, Feb 22, 2008 at 1:50 PM, draxtor <[EMAIL PROTECTED]> wrote: > > Hi I have problem with tapestry. > Recentrly I got new laptop with windows vista. I migrated my

Vista problem

2008-02-22 Thread draxtor
Hi I have problem with tapestry. Recentrly I got new laptop with windows vista. I migrated my tapestry projects, install netbeans 6 (first amd 5.5.1 later) and stuck with this error: HTTP Status 404 - /ProbaTap/ t

Re: injecting services in T5

2008-02-22 Thread Angelo Chen
Hi Howard, Since service does not subject to run time manipulation of Tapestry, does that mean we can debug a service easier than a page class? for the page class, it's strict that they have to be placed inside the pages package, same with components, but we can place a service class anywhere, is

Re: injecting services in T5

2008-02-22 Thread Howard Lewis Ship
No special handling, no special class loader, no transformation of classes. The only debugging issues is when trying to debug through the various runtime generated proxies. On Fri, Feb 22, 2008 at 3:05 PM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi Howard, > > Since service does not subject

Re: t5 GridModelProvider 5.0.10 missing

2008-02-22 Thread Howard Lewis Ship
I believe the name switch to just "GridModel". Often, out of date JavaDoc gets left around when we publish the site. On Fri, Feb 22, 2008 at 7:53 AM, riccaruf <[EMAIL PROTECTED]> wrote: > > Hi Guys, > > sorry for this question but I was trying the new t5 release and I can't find > GridModelPro

T5: PageTester and TextStreamResponse

2008-02-22 Thread Angelo Chen
Hi, I have this simple page that I'd like to test: TestPage1.java: public class TestPage1 { private String test; // getter/setter omitted TextStreamResponse onSuccess() { return new TextStreamResponse("text/html", test); } } TestPage1.tml: here

Re: T5: Put template in other directory

2008-02-22 Thread Joshua Jackson
On Fri, Feb 22, 2008 at 10:23 PM, Robert Zeigler <[EMAIL PROTECTED]> wrote: > Page templates can be placed in the context root (or appropriate > subfolders, depending on your package structure). > Component templates are (currently) required to be on the classpath. > That's exactly the problem w