Re: Tapestry Programmer wanted

2005-07-12 Thread sarah . simbad
well, in the end the application will be tested thouroughly if it works everything is fine ;-) I like the global objects and url friendly patch > --- Ursprüngliche Nachricht --- > Von: Ivano <[EMAIL PROTECTED]> > An: Tapestry users > Betreff: Re: Tapestry Programmer wanted > Datum: Tue, 1

Tapestry Programmer wanted

2005-07-12 Thread sarah . simbad
I was looking on all kinds of freelance programmer websites like elance.com for experiences tapestry developers but it is really hard to find some...most are php or jsp programmers... Could you maybe send me links to your homepages if you are freelance programmers yourself and you are looking for

Re: .page file for BasePage

2005-07-08 Thread sarah . simbad
Thanks for your suggestionsi only really find it hard to learn without examples. Is there already an example application for tapestry4, like the petshop or hispacta ? > --- Ursprüngliche Nachricht --- > Von: Norbert Sándor <[EMAIL PROTECTED]> > An: "Tapestry users" > Betreff: Re: .page file

.page file for BasePage

2005-07-08 Thread sarah . simbad
How do I declare persistent properties for a BasePage once so that it will be the same as if I declare it in every single .page file? How can I do that at all within a BasePage.java class ? There is no file for that to specify properties --

Tapestry framework and thread issues on pages

2005-06-13 Thread sarah . simbad
>It's thread safe. But it will NOT WORK. The same user for different >request can get different Page instances. And different users can get >the same page instance. So whats the point of the tapestry framework then? I thought this was exactly the kind of "plumbing work", Tapestry wants to avoid

Configuring URLRewriteFilter (Tuckey) for Tapestry in web.xml

2005-06-11 Thread sarah . simbad
I only want to use the UrlRewriteFilter for *.html How do I tell within web.xml to use for all other requests the tapestry filter? Usually it is set to "/"and you can only work with "*" within url-pattern. UrlRewriteFilter org.tuckey.web.filters.urlrewrite.UrlRewriteFilter

Re: Is that the way to do it ?

2005-06-09 Thread sarah . simbad
Ok, I agree. For a simple image it is the way to do it. But what, if it is some piece of html, that is generated from several attributes from the User class ? Something like: Firstname, Lastname, age Or would you create an extra component for that? > --- Ursprüngliche Nachricht --- > Von: An

Is that the way to do it ?

2005-06-09 Thread sarah . simbad
Hello everyone! My User class has a field called gender which is 0 or 1 for male or female. In order to display it as an Icon for "male" or "female" I am using the following approach and i wonder whether that is good practise and thread-safe etc... My hibernate class is called HibernateUser I ha

Caching Lookup Tables with Tapestry and Hibernate

2005-06-07 Thread sarah . simbad
How would you handle lookup tables with tapestry and hibernate ? The analogues approach using Cayenne is described here: http://www.objectstyle.org/cayenne/userguide/perform/caching-lookup.html What about the hibernate approach for tapestry applications that need to cache lookup tables? -

Re: Persistent data outside of page scope (setupForRequest...)

2005-06-07 Thread sarah . simbad
Found something similiar using Cayenne... http://www.objectstyle.org/cayenne/userguide/perform/caching-lookup.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Persistent data outside of page scope (setupForRequest...)

2005-06-07 Thread sarah . simbad
What about the following: - a static synchronized hashmap within the global - initialize it within the constructor of the global object ? Sarah > --- Ursprüngliche Nachricht --- > Von: Pablo Ruggia <[EMAIL PROTECTED]> > An: Tapestry users > Betreff: Re: Persistent data outside of page scope (se

Persistent data outside of page scope (setupForRequest...)

2005-06-05 Thread sarah . simbad
If I want to "remember" data within the global object in a map and generate it within setupForRequest, it is called and generated for every page requestalthough it should be held within the webserver somewhere. Where would I generate it if I only want to generate it once for the whole web appl

Re: ThreadLocal example pleeeeease!

2005-06-02 Thread sarah . simbad
Imagine you are within a component. You need to get the global object. Then you need to get the specific HashMap. Then you need to get the object from inside the HashMap. Then you need to call the method on the object to get the property you want to know. These are too many steps, especially whe

RE: ThreadLocal example pleeeeease!

2005-06-02 Thread sarah . simbad
Thanks. Ok, I try again. The following assumptions are made: 1. The number of groups can change on the database without having to change the java code. (It is not a problem to restart the web application if that happens.) 2. All the data is loaded on start-up, independent on how many members are

Re: ThreadLocal example pleeeeease!

2005-06-01 Thread sarah . simbad
Thank you! The problem however is the following. Assuming I have 30,000 members online at the same time, 10,000 belong to group A, 10,000 belong to group B, and 10,000 belong to group C. I would then keep in memory 10,000 instances of configuration data for group A people, 10,000 for group B pe

RE: ThreadLocal example pleeeeease!

2005-05-31 Thread sarah . simbad
Yes, I do, but only for logged in users. I read on the Tapestry website or docs, that the visit should be created as late as possible and that it is bad practise to create it for every visitor... The example was maybe not quite good...as most roles are only known after login... > --- Ursprünglic

ThreadLocal example pleeeeease!

2005-05-31 Thread sarah . simbad
Could anyone of you post a quick example how to correctly use ThreadLocal within a Tapestry page and a Tapestry component? My global object currently is a map of group data and the key is the group key. Different page getter methods need parameters that is derived from the group data . E.g. a

Re: BasePage, BaseComponent and thread issues with database queries

2005-05-29 Thread sarah . simbad
Thanks! So how would such a ThreadLocal example look like ? The problem with the Visit object is that is should not be created until it is really necessary > --- Ursprüngliche Nachricht --- > Von: Pablo Ruggia <[EMAIL PROTECTED]> > An: Tapestry users > Betreff: Re: BasePage, BaseComponent a

BasePage, BaseComponent and thread issues with database queries

2005-05-28 Thread sarah . simbad
Hello everyone! Both all my pages and components need to perform the same database queries where client specific stuff (language, country) determines how they are rendered. (a) would it be a good idea to do everything in BasePage and let BaseComponent do a getPage() and then call all methods on t

Betterpetshop update for Picasso ?

2005-05-03 Thread sarah . simbad
It would be cool, if the Betterpetshop or some other example tapestry application was updated whenever things are updated for Tapestry. As the documentation is never up to date, people could at least learn by examples. Or does anyone know a tapestry application that uses hivemind, hibermate&mysql