Searchable grid question

2008-12-16 Thread José Paumard
Hello all, I have a pretty basic problem to solve, but I'm stuck with a "no-solution" and would ne happy to get hints from the list. I would like to write a "searchable grid" component. It's a plain T5 grid, with a first line made of textdields, instrumented with autocomplete mixins. When on

Re: PageLinkTarget, where did it go?

2008-12-16 Thread nille hammer
Hi Mark, first I have to admit I am not familliar with Tapestry´s testing mechanisms so this information is based on browsing through the javadocs rather than experience. I think this is the class you are looking for: http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/internal/ser

[ANN] tapestry-spring-security 2.0.1

2008-12-16 Thread Robin Helgelin
Hi, I've just put up a new release of tapestry-spring-security. It's mostly about syncing with the latest Tapestry and Spring Security releases. More information, example usage and documentation can be found here: http://www.localhost.nu/java/tapestry-spring-security/ -- regards,

Re: T5: a default notification page

2008-12-16 Thread Angelo Chen
Thanks to all replies, I think good idea to have Apache in front of tomcat. a related question is, say you need to backup the database at certain time in a day, this has to be automated, you can't manually pointing the page to another location, any good practice on this? I'm thinking of putting a

Re: T5: a default notification page

2008-12-16 Thread Olle Hallin
I think that you can do this with Apache mod_rewrite and use the presence of a certain file as an indicator that the site is in maintenance mode. Search for the ContPattern -F in http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html This will make it extremely simple to maintain. The backup scrip

Tap 5.0.18 : OnActivate method no longer get called from PageLink.

2008-12-16 Thread Shing Hing Man
I have a pageLink component in update.tml Update and contextParams is an int [2]. In Tap 5.0.15, when I click the above page link in update.tml, the following onActivate method in UpdateFile.java is called as expected. public Object onActivate(int folderId, int fileId) {

Re: Tap 5.0.18 : OnActivate method no longer get called from PageLink.

2008-12-16 Thread Mark Horn
I'm running into the same issue while trying to upgrade to 5.0.18 from 5.0.15 and using PageTester On Tue, Dec 16, 2008 at 7:41 AM, Shing Hing Man wrote: > I have a pageLink component in update.tml > > > context="contextParams">Update > > and contextParams is

Re: Tap 5.0.18 : OnActivate method no longer get called from PageLink.

2008-12-16 Thread Shing Hing Man
Thanks for the reply! Changing from public int[] getContextParams() { return new int[]{folder.getId(), file.getId()}; } to public Object[] getContextParams() { return new Integer[]{folder.getId(), file.getId()};

Re: Tap 5.0.18 : OnActivate method no longer get called from PageLink.

2008-12-16 Thread Mark Horn
Actually I found out what my issue was. The constructor to ComponentInvocationImpl (http://tapestry.apache.org/tapestry5/apidocs/index.html?org/apache/tapestry5/internal/services/ComponentInvocationImpl.html) changed to ComponentInvocationImpl(ContextPathEncoder encoder, InvocationTarget target,

Re: [ANN] tapestry-spring-security 2.0.1

2008-12-16 Thread kawes
Hi Robin, I have just noticed that both MyUserDetailsImpl.java and MyUserDetailsService.java links on the page http://www.localhost.nu/java/tapestry-spring-security/conf.html lead to the same MyUserDetailsImpl.java source code. Cheers Robin Helgelin wrote: > > > Hi, > > I've just put up a

Re: T5: a default notification page

2008-12-16 Thread Peter Stavrinides
> IMO it is recommended to do a cold start of Tomcat after *each* redeploy of > webapps. Else you will sooner or later run into mysterious problems, caused > by memory >leaks and such. This is good advice, but not exactly due to Memory leaks as such, what does happen when you hot deploy is that

Re: T5 cluster PropertyAdapterImpl not serializable error

2008-12-16 Thread Kristian Marinkovic
hi, do you push an instance of PropertyAdapterImpl onto the http session (or ApplicationStateObject)? directly or indirectly? g, kris Riccardo Ruffilli 16.12.2008 11:39 Bitte antworten an "Tapestry users" An users@tapestry.apache.org Kopie Thema T5 cluster PropertyAdapterImpl not seria

Re: [T5]: query regarding streaming data

2008-12-16 Thread tapestryphoto
Thanks Julian - that did the trick. Much appreciated. p. Quoting Julian Wood : It works fine. Try something like this: public class TestPage { public Object onPDF(Long id) { return new PDFStreamResponse(dao.getPDF(id)); } public Link getPDFLink() { return resou

Re: [T5 5.0.18] - How to 'turn on' dynamic validation

2008-12-16 Thread Howard Lewis Ship
The accepted approach is to use an ActionLink for the cancel button. You can use CSS to style it like a submit button. On Mon, Dec 15, 2008 at 11:49 AM, kawes wrote: > > Hi Guys, > > I have a following piece of code in my *.tml file: > > >t:validate="required"/> > > > > > > As you can

Re: [T5 5.0.18] - How to 'turn on' dynamic validation

2008-12-16 Thread kawes
Hi, thanks, I did not think of that ;) Howard Lewis Ship wrote: > > The accepted approach is to use an ActionLink for the cancel button. > You can use CSS to style it like a submit button. > > On Mon, Dec 15, 2008 at 11:49 AM, kawes wrote: >> >> Hi Guys, >> >> I have a following piece of co

[T5] How to handle a variable number of input fields in a form

2008-12-16 Thread Eric Ma
Forgive me if this question has been asked a million and one times. Coming from a Struts background, one of the feature I find useful over there is the easiness for handling a non-fixed number of form fields that are rendered through a loop, using the "indexed properties" approach. What is the e

T5 cluster PropertyAdapterImpl not serializable error

2008-12-16 Thread Riccardo Ruffilli
Hi everybody, I'm trying to test our tapestry based application in a jboss cluster behind an apache web server with ajp protocol enabled. The application works fine in a single server mode but in cluster mode it gives me a java.io.NotSerializableException: org.apache.tapestry.ioc.internal.service

Re: T5 cluster PropertyAdapterImpl not serializable error

2008-12-16 Thread Riccardo Ruffilli
You are right Kris, we store a list of property adapter in session, to retrieve back dinamically information from our back bean. So we need to make them serializable to use all in cluster I suppose. Thanks a lot. Riccardo kristian.marinkovic wrote: > > hi, > > do you push an instance of Pro

Re: [T5] How to handle a variable number of input fields in a form

2008-12-16 Thread Igor Drobiazko
The component SubmitNotifier is the solution. http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/SubmitNotifier.html Put this component inside a form. When the form is submited the component will fire two events for every iteration of your loop. Handle

Re: Tapestry 5.0 Final Release - 5.0.18

2008-12-16 Thread Igor Drobiazko
Howard, why don't you post this annoncement at TSS and/or InfoQ? The whole world should know that competitor frameworks will die hard :) On Fri, Dec 12, 2008 at 7:52 PM, Howard Lewis Ship wrote: > Apache Tapestry 5.0 final release (5.0.18) > > After nearly three years of development, the final r

Re: [T5] How to handle a variable number of input fields in a form

2008-12-16 Thread Shing Hing Man
You might like to take a look at the following example on allowing users to input up to 5 numbers. http://lombok.demon.co.uk/tapestry5Demo/test/sum The source code is available on the same page. Shing --- On Wed, 17/12/08, Eric Ma wrote: > From: Eric Ma > Subject: [T5] How to handle a var

JBoss 5 deployment

2008-12-16 Thread jthompson209
Hello all, trying to deploy a T5 app in jboss 5 and get the following error any thoughts? Exception starting filter app java.lang.RuntimeException: java.io.IOException: Cannot find child, root=delegatinghand...@24158319[path= context=file:/ C:/p4/views/ws-jklein-javaee/application-servers/jboss

Re: [ANN] tapestry-spring-security 2.0.1

2008-12-16 Thread Robin Helgelin
On Tue, Dec 16, 2008 at 15:53, kawes wrote: > > Hi Robin, > > I have just noticed that both > MyUserDetailsImpl.java and MyUserDetailsService.java > > on the page http://www.localhost.nu/java/tapestry-spring-security/conf.html > lead to the same MyUserDetailsImpl.java source code. Thanks, fix in

JBoss5 and T5 configuration?

2008-12-16 Thread jeffk99
Trying to migrate our Tapestry5 webapp from JBoss 4.2.1 to JBoss 5.0.0 Had some errors deploying the app, so I decided to try a simple T5 app. Created the new app with using the Quickstart Archetype. The simple application deploys without error. However, when I try to access a page with a browser

IntelliJ IDEA and Tapestry Pages

2008-12-16 Thread Josh Long
Hello, When I load the .tml pages inside of IntelliJ IDEA, and import the namespace for tapestry, I cant get validation to work. I tried associating the .tmls to XML, associating it with XHTML, etc. I let it import any and all resources it needed to. It prompted me to add the HTML namespace, whi

Re: [T5] Is is possible to add Delete and Cancel buttons to BeanEditForm Component?

2008-12-16 Thread mraible
luther.baker wrote: > > You can also add parameters to the t:beaneditform. > > something like ... > > > > > > > > > > > or > > > > Cancel > Delete > > > > Generally, you can put most anything you'd like within the t:parameter > ta