Redirects

2008-05-30 Thread Russell Brown
Hi All, New to Tapestry 5. I have read the Building Web Apps Tapestry 5 book by Alexander Kolesnikov and am working through the documentation and Wiki too and I have a functional little web app at the moment that took me all of a few hours to build and test so I am very pleased with the productivi

Re: T5: ETA for t5-acegi and t5-components to work with SNAPSHOT?

2008-05-30 Thread Stephane Decleire
In wich version ? 0.5.12-SNAPSHOT ? on the usual repository ? Stephane Sven Homburg a écrit : t5components SNAPSHOT reflects the package renaming 2008/5/28 Franz Amador-2 <[EMAIL PROTECTED]>: Unsurprisingly, due to the package-name changes, t5-acegi and t5-components no longer work with t

Re: Redirects

2008-05-30 Thread Bill Holloway
Hi Russell, I do this in the SetupRender phase. @Inject private org.apache.tapestry.services.Response _response; void setupRender () throws Exception { if (/* condition satisfied */) _response.sendRedirect( "http://example.com"; ); } Cheers, Bill On Fri, May 30, 200

Re: t5 - Classloader issues with System classpath

2008-05-30 Thread Ben Gidley
no-probs I will move it shortly. On Thu, May 29, 2008 at 4:24 AM, Richard Clark <[EMAIL PROTECTED]> wrote: > Hi Ben, > > Would you consider moving that to its own page and linking from the > "Tapestry 5 How Tos" page? Since this works with all IDEs, it probably > deserves its own page. > > ...Ric

Re: Regexp validation

2008-05-30 Thread Brian Long
Sura, take a look at this example here http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/TextField.html you'll have to put your regular expression in your classes properties file for it to work . . . /Brian. Sura, Bhupesh wrote: I am usin

Re: T5 Creating a Library of Custom Components

2008-05-30 Thread Jesper Zedlitz
Marcus wrote: > I'm trying to create a T5 library using Eclipse, but... :( > I had a similar problem. Do you use Maven2 for dependency handling? The Maven Eclipse plugin will use the Eclipse project (containing the component) instead of the jar file. If you close the Eclipse project containing

T5: released?

2008-05-30 Thread Angelo Chen
Hi, Any chance this t5 will be released soon? it's time to release so that books/tools will be available for T5, and a stronger user community can be built. please, release it. Angelo -- View this message in context: http://www.nabble.com/T5%3A-released--tp17555946p17555946.html Sent from the

RE: Redirects

2008-05-30 Thread Russell Brown
Thanks Bill. -Original Message- From: Bill Holloway [mailto:[EMAIL PROTECTED] Sent: 30 May 2008 10:23 To: Tapestry users Subject: Re: Redirects Hi Russell, I do this in the SetupRender phase. @Inject private org.apache.tapestry.services.Response _response; void setupRender () throws E

Re: Redirects

2008-05-30 Thread Christian Gorbach
or more elegant:: http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html just return an java.net.URL object c)hristian Hi Russell, I do this in the SetupRender phase. @Inject private org.apache.tapestry.services.Response _response; void setupRender () throws Exception {

Service Configuration, ApplicationDefaults and String parameter in constructor

2008-05-30 Thread Russell Brown
Hi Again, Now I have a Service that I want to configure with a string parameter and an int parameter. I add a couple of values to the ApplicationDefaults like this: configuration.add("my.long.key.string-value", "aStringINeedInMyService"); configuration.add("my.long.key.int-value", "180");

Extending Base Pages

2008-05-30 Thread David Roberts
Hi, I tried to create a base page which encapsulated a flash persistent value used on all/most of my Tapestry pages: class BasePage { @Persist(value="flash") private boolean isError; . getters and setters } However, though the variable was being used it wasn't being stored in

Re: Redirects

2008-05-30 Thread Bill Holloway
I'm not sure you can do that from a lifecycle method, although you can return Components. bill On Fri, May 30, 2008 at 6:13 AM, Christian Gorbach <[EMAIL PROTECTED]> wrote: > or more elegant:: > http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html > just return an java.net.URL o

Re: T5: ETA for t5-acegi and t5-components to work with SNAPSHOT?

2008-05-30 Thread Sven Homburg
look at http://code.google.com/p/tapestry5-components/ 2008/5/30 Stephane Decleire <[EMAIL PROTECTED]>: > In wich version ? 0.5.12-SNAPSHOT ? on the usual repository ? > > Stephane > > Sven Homburg a écrit : > > t5components SNAPSHOT reflects the package renaming >> >> 2008/5/28 Franz Amador-2 <

How to call service during startup?

2008-05-30 Thread 9902468
Hi! My parameter service needs to connect to database, inspect that all parameters are inplace, and if there are missing (new) parameters I have to create them and assign default values. This should occur every time that the application is started. How do I do it? I read the IoC Registry startup

Re: How to call service during startup?

2008-05-30 Thread Ted Steen
Take a look at the @EagerLoad annotation, it might be what you are looking for. http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html 2008/5/30 9902468 <[EMAIL PROTECTED]>: > > Hi! > > My parameter service needs to connect to database, inspect that all > parameters are inplace, and if th

RE: Service Configuration, ApplicationDefaults and String parameter in constructor

2008-05-30 Thread Russell Brown
Ok, Sorry all. Scratch that. I RTFM. Here http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html#Injecting %20Dependencies at the bottom of the page it says " Every once and a while, you'll have a conflict between a resource type and an object injection. For example, the following does not

Re: T5.0.12: No Ajax Refresh

2008-05-30 Thread raulmt
Hi, Are you using Java 6 on Windows?? On my Mac, with Java 5, this works perfectly, but on my Windows machine, using Java 6, I have exactly the same problem with inPlace="true" in the Grid component. I downgraded my Windows machine to Java 5 and it worked fine. Apparently, Java 6 doesn't have eno

Re: t5-components MultipleSelect use

2008-05-30 Thread zack1403
@ http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/MultipleSelect.html the docs say its not required but I guess I need it. Do you have a snippet similar to what you gave for selectModel? Or further documentation on initiating an instance of a select

Re: How to call service during startup?

2008-05-30 Thread Lubor Gajda
Hi, Just inject your service to the 'contributeRegistryStartup' method as final parameter and directly use in Runnable inner class. For instance: public static void contributeRegistryStartup(OrderedConfiguration configuration, final Scheduler scheduler) { configuration.add("SchedulerStartu

T3: Stop back button

2008-05-30 Thread James Sherwood
Hello all, We are using tapestry 3. We need to make it so when a user submits a form and then presses the back button, it does not show them the form. Any ideas? --James - To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: T3: Stop back button

2008-05-30 Thread Javier Sanchez
Isn't obvious? What exactly do you want your application to do? On Fri, May 30, 2008 at 1:46 PM, James Sherwood <[EMAIL PROTECTED]> wrote: > Hello all, > > We are using tapestry 3. We need to make it so when a user submits a form > and then presses the back button, it does not show them the for