Re: tapestry web app , deployed in tomcat. Need to set as default web app

2008-05-01 Thread Peter Stavrinides
Without knowing exactly how you are deploying its difficult to help you, but you should avoid modifying server.xml directly. The easiest way to deploy a war is to use the deployer in the Host manager, if you don't want to do this, place your context in META-INF folder, which is the preferred way

Re: T5 pagelink problem

2008-05-01 Thread Bill Holloway
It sounds like currentPhoto.id is returning the string "images" and "classes" rather than a Long. Might want to check the return type and value of the getId() method of your Photo class. I'd be tempted to put a debug breakpoint in getId() somewhere and watch the value being returned. On Thu, May

T5: Passing (looped) component blocks to layout for (looped) rendering

2008-05-01 Thread Bill Holloway
Hi All, I have a component Foo in a loop on my TestPage. Foo has a block on it which Foo's template renders and which Foo's page class also picks up and adds to a list of blocks on the TestPage's surrounding Layout component. Layout loops over these blocks and renders them just before the tag.

Re: [ANN] JumpStart 3.6: Wizards, Conversations, and more

2008-05-01 Thread Geoff Callender
Sounds interesting. Any doco in the nightlies? On 02/05/2008, at 5:17 AM, Howard Lewis Ship wrote: I can't wait to see what you put together using the new method advice support in 5.0.12; it makes doing interesting things with methods and annotations much, much easier. On Thu, May 1, 2008 at

T5 Override/Replace DefaultHibernateConfigurer

2008-05-01 Thread Daniel Jue
Has anyone else tried replacing the DefaultHibernateConfigurer? I can add another configurator in my app module like this: public static void contributeHibernateSessionSource( OrderedConfiguration config, ClassNameLocator classNameLocator,

Re: [ANN] JumpStart 3.6: Wizards, Conversations, and more

2008-05-01 Thread Adam Zimowski
Does that mean we'll have T5AOP in 5.0.12 ? Is this going to be a new module or built into core? On Thu, May 1, 2008 at 2:17 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > I can't wait to see what you put together using the new method advice > support in 5.0.12; it makes doing interesting thi

Re: T5: Ajax update of one form field based on change to another form field?

2008-05-01 Thread Chris Lewis
Sorry I was vague on that, and I was referring to the t5components OnEvent mixin (http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/mixins/OnEvent.html). Here's a quick example of ajax-based data retrieval. Note that where I use hard-coded strings, you'd be using y

Re: [ANN] JumpStart 3.6: Wizards, Conversations, and more

2008-05-01 Thread Howard Lewis Ship
I can't wait to see what you put together using the new method advice support in 5.0.12; it makes doing interesting things with methods and annotations much, much easier. On Thu, May 1, 2008 at 5:01 AM, Geoff Callender <[EMAIL PROTECTED]> wrote: > Hi all, > > JumpStart 3.6 is now available. It's

Re: T5 custom component params

2008-05-01 Thread Robert Zeigler
One of two ways. 1) Change page="home" to: page="literal:home" 2) Change the default binding prefix for page as in: @Parameter(defaultPrefix="literal") private String page Robert On May 1, 2008, at 5/11:16 PM , Toby Hobson wrote: Sorry ... that should read "But tapestry is complaining becau

Re: T5 custom component params

2008-05-01 Thread Toby Hobson
Sorry ... that should read "But tapestry is complaining because it can't find a property called home on the ViewPhoto page " - Original Message From: Toby Hobson <[EMAIL PROTECTED]> To: users@tapestry.apache.org Sent: Thursday, 1 May, 2008 7:07:22 PM Subject: T5 custom component params

Re: T5 custom component params

2008-05-01 Thread Sven Homburg
try or declare the page paremeter in component as @Parameter(defaultPrefix = TapestryConstants.LITERAL_BINDING_PREFIX) private String page; 2008/5/1 Toby Hobson <[EMAIL PROTECTED]>: > I am trying to create my first tapestry component. Basically I want to > take a collection of keywords and fo

T5 custom component params

2008-05-01 Thread Toby Hobson
I am trying to create my first tapestry component. Basically I want to take a collection of keywords and for each keyword generate a link to a tapestry page. I'd like to use the component in page templates like I have written the component class and template: public class Keywords { @Param

Re: T5: Ajax update of one form field based on change to another form field?

2008-05-01 Thread Franz Amador
On Thu, May 1, 2008 at 4:25 AM, Chris Lewis <[EMAIL PROTECTED]> wrote: > Why would you need to submit the form when a value is selected from the > list? If you know the available DBs before hand, then you know the > default ports. Store those as a client-side JSON object and use the > select's

Re: Question about ApplicationInitializerFilter

2008-05-01 Thread Howard Lewis Ship
The most common case for this is that the module class defining the service, or the module class containing the contribution to the service, is not being loaded. Please refer to the docs on how to ensure that modules are loaded. On Tue, Apr 29, 2008 at 2:10 AM, Michael Gerzabek <[EMAIL PROTECTED]

Re: T5 pagelink problem

2008-05-01 Thread Szemere Szemere
It is generally wise to have your links in the form: ${asset:context:styles/style.css} Then the links will work even if you have parameters that change the relative depth of the URL path. Szemere

Re: T5 pagelink problem

2008-05-01 Thread Toby Hobson
It seems if i change all the hrefs to /myapp/images/... or /myapp/styles/... things work ok. Is there a tapestry version of ? Thanks Toby - Original Message From: Toby Hobson <[EMAIL PROTECTED]> To: users@tapestry.apache.org Sent: Thursday, 1 May, 2008 1:53:11 PM Subject: T5 pagelink

T5 pagelink problem

2008-05-01 Thread Toby Hobson
I have a strange problem with the pagelink component. I am trying to navigate from the start page to the ViewPhoto page but I get an exception: [ERROR] RequestExceptionHandler Processing of request failed withuncaught exception: Exception in methodcom.thc.web.pages.ViewPhoto.onActivate(java.lan

[ANN] JumpStart 3.6: Wizards, Conversations, and more

2008-05-01 Thread Geoff Callender
Hi all, JumpStart 3.6 is now available. It's for Tapestry 5.0.11. New in this release: * Wizards - 3 styles explored: with form fragments, with components, and with separate pages. * Conversations - implemented in the wizards to handle the Back and Reload buttons and sessions shared b

Re: T5: Ajax update of one form field based on change to another form field?

2008-05-01 Thread Chris Lewis
Franz Amador wrote: > Hi, all. I asked about this a while ago, and there was no good answer > then, but I'm hoping that there are new options now. I have a bean > that holds information about a database connection. I'm editing it > with BeanEditForm. One of the fields is the database type, an

Re: T5: Why isn't there any validate property for RadioGroup ?

2008-05-01 Thread Filip S. Adamsen
Putting an issue in JIRA would be a start. -Filip On 2008-05-01 05:47, Partogi, Joshua wrote: So Howard, Will there be any plans in the future to support validation for RadioGroup? :) Thanks in advance -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Wednesd

Re: page activation + components

2008-05-01 Thread Chris Lewis
Josh, Yeah that looks like it would do it, working much like what proposed with pagelinks. Given a choice I would use the pagelink based way because architecturally it works the same (news page collects the id via context), but using pagelinks reduces the round-trips and the need to deal with even