newbie: how to use tapestry component

2006-04-28 Thread [EMAIL PROTECTED]
Hi, I am new to tapestry. I would like to know how/what component if i want to develop a photo album like application. Basically, I am doing something like this: * have a grid of images (a table of 3 X 3). * have a 'next', 'previous' page button to move from page to page. Is there a similar exam

Re: Performance problem : simple tapestry page takes long time to show up

2006-04-28 Thread Konstantin Iignatyev
This is very strange. Could it be that you have tied Hibernate SessionFactory creation to the Visit object creation. In this case first attempt to access Visit will take a long time especially if Hibernate configuration has hbm2ddl set to create/validate DB schema. Normally you would need on

RE: One question concerning Tapernate

2006-04-28 Thread James Carman
Well, I implemented it and another feature. Tapernate now includes support for transaction-per-request (turned on by default) and session-per-conversation (turned off by default). You can turn on/off these features by doing: This would turn off transaction-per-request and turn on sessi

Re: Performance problem : simple tapestry page takes long time to show up

2006-04-28 Thread Javier Sanchez
I am suffering the same problem on my current project (Tapestry 3.0.4, Hibernate 2.1.8, Oracle 9iR2, JBoss 3.2.7, Tomcat 5.0). We have been doing intensive testing on every thing for weeks without results. Did you ever solve this problem? Any comments are welcome. JAVIER SANCHEZ Bogota, Colom

Tapestry.register_form problem

2006-04-28 Thread Craig Hamilton
The line Tapestry.register_form('order'); in the below script element is causing problems for an embedded IE browser I am rendering my all in. It is difficult to explain the effects of the problem, it is in a 3rd party package which has a browser, and the error shows up later in the app. Does any

Re: One question concerning Tapernate

2006-04-28 Thread Andreas Bulling
On 28. Apr 2006 - 17:47:09, James Carman wrote: | Well, it'd be quite easy. I'll write it tonight over a couple of beers. :-) *lol You're a bit crazy if I may say that ;-) Not that I want to complain about it because I'd really appreciate it if this fixes the problem I have. You're really doing

RE: One question concerning Tapernate

2006-04-28 Thread James Carman
Well, it'd be quite easy. I'll write it tonight over a couple of beers. :-) -Original Message- From: Andreas Bulling [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Bulling Sent: Friday, April 28, 2006 5:36 PM To: Tapestry users Subject: Re: One question concerning Tapernate On 28. Apr 20

Re: One question concerning Tapernate

2006-04-28 Thread Andreas Bulling
On 28. Apr 2006 - 10:33:11, James Carman wrote: | You have to make sure your changes go on within a transaction. I'm going to | add transaction-per-request support in Tapernate soon. Well, I'm urgently waiting for this feature then ;) -

RE: Conditional validation

2006-04-28 Thread Tony Herstell
I also asked for this kind of functionality and raised a formal Tap bug on it so vote for that... Jesse did a great job improving the Validation for Tap 4 but I believe what you want to do is still not possible on the front end; i.e. your solution is to catch this in back end validation and return

Re: HOW TO validate the first choice of IPropertySelectionModel

2006-04-28 Thread Ted Steen
Another way to do it is to wrap it in the LabeledPropertySelectionModel and then use "required" as validator, like this: /** .java **/ public abstract String getSex(); public IPropertySelectionModel getSexSelectionModel() { return new

Re: Maintaining a bookmarkable URL after submitting a form

2006-04-28 Thread Barry Books
I would make the form listener do a redirect to an external page with the search parms

Maintaining a bookmarkable URL after submitting a form

2006-04-28 Thread Michael Lake
Hello, I'm using Tapestry 4 on Tomcat 5.5 I would like my users to be able to bookmark a URL after doing a search using @Form from within a custom component. I've tried setting the the @Form binding of the "stateful" parameter. It seems the difference is in outputting the JSESSIONID. This

Re: Navigate in the object graph in tapestry!!!

2006-04-28 Thread Eduardo Valentim
Andy, I have the same issue, but a have found a solution (I think). I made a little modification in this class http://fisheye5.cenqua.com/viewrep/xwork/src/java/com/opensymphony/xwork/util/InstantiatingNullHandler.java from WebWork to work for me and override the method readCompile

unique urls for assets (to make them permanently cacheable) ??

2006-04-28 Thread Fernando Padilla
So. We have this image we use for the navbar. We changed the navbar image, but because we had set the expires to be a day, the change wasn't apparent to people for a day after we deployed. I proposed to our team to leverage the tapestry's Asset system to have normal context assets add a nonce

RE: HOW TO validate the first choice of IPropertySelectionModel

2006-04-28 Thread Bode, Bianca
The validator doesnt reject it because 'choice' is a value as well, and thus valid. A validator cannot on it is own determine that 'choice' is an invalid value for a 'gender' field Besides that you also need to set an actual validator on your PropertySelection component, otherwise it will never wor

HOW TO validate the first choice of IPropertySelectionModel

2006-04-28 Thread Carl Pelletier
Hi everyone. I'm new to Tapestry 4 (never use Tapestry before) and I would like to say that I love it! But now, I'm trying to do a simple thing: I would like to display a combo box on my page with 3 values: "choice", "man", "women" and validate the value selected. The dropdown is required so if th

RE: One question concerning Tapernate

2006-04-28 Thread James Carman
You have to make sure your changes go on within a transaction. I'm going to add transaction-per-request support in Tapernate soon. -Original Message- From: Andreas Bulling [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Bulling Sent: Friday, April 28, 2006 10:31 AM To: Tapestry users Subje

One question concerning Tapernate

2006-04-28 Thread Andreas Bulling
Hi folks, after having successfully changed my web application to Tapernate (Honeycomb just didn't work for me and it was too complex to change everything so that it works) there is one problem left I don't know a solution to: Using Persist("entity") on all the edit-pages doesn't seem to work as

Re: Templated Components do not render in BaseComponentTestCase

2006-04-28 Thread Kevin C. Dorff
Nobody is trying to test their templated components? No thoughts on this? Kevin On 4/24/06, Kevin C. Dorff <[EMAIL PROTECTED]> wrote: I am trying to test my components which use templates (.html/.jwc/.java files) using BaseComponentTestCase. I am creating the controls using the standard "newIns

Re: How to inject ASO in service?

2006-04-28 Thread Kevin C. Dorff
Add to your service's .java private ApplicationStateManager applicationStateManager; public final void setApplicationStateManager( final ApplicationStateManager applicationStateManager) { this.applicationStateManager = applicationStateManager; } then when you want to

RE: re-initialize ASO objects

2006-04-28 Thread Bode, Bianca
If you have set the ASO in the hivemodule.xml like this: You can inject it in a page like this: Add this to your class: public abstract Visit getVisitObject(); Now you can access the object in a method like this: Visit v = getVisitObject(); Don't know if this is what you meant

Conditional validation

2006-04-28 Thread Bode, Bianca
Hi all, I was wondering if anyone has ever done the following, and if so, how :) The situation is pretty complex, but basically it comes down to this: I want to validate an Insert component, but only if another component, a CheckBox, is checked... Anyone? Kind regards, Bianca.

Re: Hivemind service registration configuration

2006-04-28 Thread Paul Field
You need to prefix the id of the module onto the 'simple' id of the service point to get the full id. For example: ... etc... In this example, the full service id is mymodule.MyService And you'd do this in Tapestry: @InjectObject("service:mymodule.MyService") Paul "sp y" <[EMA

RE: SqueezeAdaptor heads up

2006-04-28 Thread James Carman
This is another reason for changing the squeezer framework to a pipeline. -Original Message- From: Jun Tsai [mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 7:00 AM To: Tapestry users; [EMAIL PROTECTED] Subject: Re: SqueezeAdaptor heads up Thank you very much !! 2006/2/7, A

Re: SqueezeAdaptor heads up

2006-04-28 Thread Jun Tsai
Thank you very much !! 2006/2/7, Aslak Gronflaten <[EMAIL PROTECTED]>: Hi, for anyone having problems with the SqueezeAdaptor. I tried to implement an adaptor for Hibernate persisted objects, following the instructions in the wiki. I just couldn't get it to work, until I changed the ord

RE: Separate language file for each customer

2006-04-28 Thread James Carman
That would be the way to go. > I think overriding the service > "tapestry.ComponentMessagesSource" > especially its getMessages() method may be a good point to start. > You'll have to inject some Application-State into your version of it > to get your company-id. > >> -Original Message-

RE: Separate language file for each customer

2006-04-28 Thread Schulte Marcus
I think overriding the service "tapestry.ComponentMessagesSource" especially its getMessages() method may be a good point to start. You'll have to inject some Application-State into your version of it to get your company-id. > -Original Message- > From: Inge Solvoll [mailto:[EMAIL PROTEC

RE: [HoneyComb] problems to get started...

2006-04-28 Thread Schulte Marcus
the service "de.plattform.web.HibernateSession" you're missing should be defined in you core project (PlatformCore in you case, I suppose). So please make sure that 1. platform-core.jar contains a META-INF/hivemodule.xml with the above service. 2. platform-core.jar is on the classpath of the WE

Re: Separate language file for each customer

2006-04-28 Thread Inge Solvoll
Yes, that's what I'm talking about. I've done this for the Struts part of the application, it was a lot of work an involved a great deal of hacking, but it works (hopefully). I believe the same solution for Tapestry is easier, because of the configuration possibilities in Hivemind. But for now, I

Re: Separate language file for each customer

2006-04-28 Thread Sam Gendler
Sorry, I don't have an answer for you. Kludging up a solution using unlikely locale's could work, but not if you need to do number formatting and such. Perhaps there is a way, via Hivemind, to replace the default message lookup mechanism with one of your own construction? --sam On 4/28/06, Ing

re-initialize ASO objects

2006-04-28 Thread ABC
Hi, Anyone have the idea of how to re-initialize an ASO object. I have a situation where i need to reset all the values of an ASO object that i m using.Is there any way to do that?. Any help is appreciated :) - To unsu