Re: Tapestry 5.0.18 -> 5.1.0.5 Upgrade: Session IllegalStateException

2009-06-03 Thread Peter Stavrinides
Hi Kristian, I experienced similar problems between Tapestry versions (5.0.18 and 5.1) with exactly the same use case, I never took the time to dig more deeply though as I simply had to find a quick fix, which was to destroy / remove all ASO's explicitly... not elegant but efficient, and have h

Re: Tapestry 5.0.18 -> 5.1.0.5 Upgrade: Session IllegalStateException

2009-06-03 Thread Kristian Marinkovic
i already use the Tapestry Request service. But the RequestImpl wont create a new HttpSession even i tell it ;) i think it is a bug. maybe someone can take a look at it to verify it. the code and the problem: if the session has been set once it will never be cleared, thus ignoring the create par

Re: Error on page request: Construction of service 'PropertyConduitSource' has failed due to recursion

2009-06-03 Thread Jonathan Barker
Double check to make sure you don't have any old libraries in your classpath. Jonathan On Wed, Jun 3, 2009 at 6:49 AM, Alexey Chmutov wrote: > Hi, > > > > I'm not experienced Tap5 user and I faced with some kind of > misconfiguration (or even critical bug in Tap5.1?) > > My helloworld app copie

Re: [Tapestry Central] Vendor Client Relationship Video

2009-06-03 Thread Jonathan Barker
Or just search on YouTube for "Vendor Client Relationship". LMAO On Wed, Jun 3, 2009 at 6:20 PM, Howard Lewis Ship wrote: > Nope; this is just a side-effect of how blogger.com sends the mail, > and how gmail.com presents it. Zip over to my blog for the full thing > (it's worth it!). > > On Wed

Re: where would I start if I wanted to add support for cached javascript minification?

2009-06-03 Thread Andreas Andreou
No real answers, but if you want to run jawr 'offline' check out http://github.com/andyhot/maven-jawr-plugin/ or this thread in jawr ML http://markmail.org/message/ef4vtu7xl75fe3ra On Thu, Jun 4, 2009 at 5:56 AM, Josh Long wrote: > Where would I start if I wanted to add support for cached javascr

where would I start if I wanted to add support for cached javascript minification?

2009-06-03 Thread Josh Long
Where would I start if I wanted to add support for cached javascript minification a la JAWR? I know that Tapestry 5.1 ships with intrinsic support for combined JS files. Does that combination happen on each request? Or is it cached? What of the gzip support? Cached or not cached in memory? Finally,

Re: overriding dateeditor

2009-06-03 Thread DH
BeanBlockSourceImpl call BeanBlockOverrideSource first to find the display/edit block, so contribute to BeanBlockOverrideSource give you the chance to overwrite the default. DH - Original Message - From: "Moritz Gmelin" Sent: Thursday, June 04, 2009 4:01 AM Subject: Re: overriding datee

Re: Authentification in Tapestry

2009-06-03 Thread Thiago H. de Paula Figueiredo
Em Wed, 03 Jun 2009 22:07:28 -0300, Onno Scheffers escreveu: I'm also using a custom dispatcher. The thing I don't like about most of the current examples/solutions I've seen so far is that access is allowed by default if the developer forgets to add a specific annotation. I'd like the pag

Re: T5: Host and cookies

2009-06-03 Thread Thiago H. de Paula Figueiredo
Em Wed, 03 Jun 2009 21:02:06 -0300, Angelo Chen escreveu: Hi, Hi! My App has a url: http://example.com, then user can also visit it http://www.example.com. I use T5's cookie service to write some visitor's related info back to the visitor's browser. the problem now is, if user uses http

Re: Authentification in Tapestry

2009-06-03 Thread Onno Scheffers
> > All you have to do is to annotate the desired page with > "@Secured(Role.ADMIN)" I'm also using a custom dispatcher. The thing I don't like about most of the current examples/solutions I've seen so far is that access is allowed by default if the developer forgets to add a specific annotation

T5: Host and cookies

2009-06-03 Thread Angelo Chen
Hi, My App has a url: http://example.com, then user can also visit it http://www.example.com. I use T5's cookie service to write some visitor's related info back to the visitor's browser. the problem now is, if user uses http://example.com, cookie will be under example.com, if he uses www.example

Re: [Tapestry Central] Vendor Client Relationship Video

2009-06-03 Thread Howard Lewis Ship
Nope; this is just a side-effect of how blogger.com sends the mail, and how gmail.com presents it. Zip over to my blog for the full thing (it's worth it!). On Wed, Jun 3, 2009 at 6:17 AM, Ivano Luberti wrote: > Howard: in the message I hve got from the list there is no link. My > problem only? >

Re: Authentification in Tapestry

2009-06-03 Thread Thibaut Gadiolet
Thank you guys, I like the idea of implementing my own dispatcher. BTW, Thiago, ACEGI is what I am using, as I said at the top of this conversation. I think it is still the best way to solve Authentication/authorization issues with Tapestry... but it's always interesting to see if a full T5 solut

Re: Authentification in Tapestry

2009-06-03 Thread Joost Schouten (mailing lists)
We have build our own using a custom RequestFilter which is not dissimilar to Christians Dispatcher approach. Cheers, Joost PS: I love the simple way to also check for ajax requests to secure pages and forward to the login if needed: PrintWriter writer = response.getPrintWriter("application/json

Re: overriding dateeditor

2009-06-03 Thread Moritz Gmelin
Wow, found a strange solution: calling the method contributeBeanBlockOverrideSource instead of contributeBeanBlockSource fixes it. My method is called after tapestrys'. I got this from tapx-datefield where the method has this name. Can anyone explain this? M. Am 03.06.2009 um 21:36 schrieb

Re: overriding dateeditor

2009-06-03 Thread Thiago H. de Paula Figueiredo
Em Wed, 03 Jun 2009 16:36:22 -0300, Moritz Gmelin escreveu: Well yes, I'm using 5.1.0.5 too. Your example is working for the DataTypeAnalyzer whicht takes an ordered List. BeanBlockContribution unfortunately only takes an unorderedList. You're right, but I am too. :) As far as I know, yo

Re: overriding dateeditor

2009-06-03 Thread Moritz Gmelin
Well yes, I'm using 5.1.0.5 too. Your example is working for the DataTypeAnalyzer whicht takes an ordered List. BeanBlockContribution unfortunately only takes an unorderedList. M. Am 03.06.2009 um 21:29 schrieb Thiago H. de Paula Figueiredo: Em Wed, 03 Jun 2009 16:16:19 -0300, Moritz Gmelin

Re: Authentification in Tapestry

2009-06-03 Thread Thiago H. de Paula Figueiredo
Em Wed, 03 Jun 2009 16:13:18 -0300, Thibaut Gadiolet escreveu: OK, I stop using a full T5 solution to handle authentication/authorization. I am using ACEGI with a basic configuration, you can easily integrate it to your T5 projects, It's not as heavy as I thought, and it turned out to b

Re: overriding dateeditor

2009-06-03 Thread Thiago H. de Paula Figueiredo
Em Wed, 03 Jun 2009 16:16:19 -0300, Moritz Gmelin escreveu: Sorry, does not work. org.apache.tapestry5.ioc.internal.OperationException Service 'BeanBlockSource' is configured using org.apache.tapestry5.ioc.Configuration, not org.apache.tapestry5.ioc.OrderedConfiguration. What Tapestry

Re: Authentification in Tapestry

2009-06-03 Thread Christian Senk
We are using a custom dispatcher called "AccessControlDispatcher". It is like the AccessDispatcher described in the howto-wiki, but in addition it checks for certain roles. This works through a SessionState object that implements an interface used by the dispatcher to determine if the SessionStat

Re: overriding dateeditor

2009-06-03 Thread Moritz Gmelin
Sorry, does not work. org.apache.tapestry5.ioc.internal.OperationException Service 'BeanBlockSource' is configured using org.apache.tapestry5.ioc.Configuration, not org.apache.tapestry5.ioc.OrderedConfiguration. What is funny is that the order of execution of those contributeBeanBlockSour

Re: Authentification in Tapestry

2009-06-03 Thread Thibaut Gadiolet
OK, I stop using a full T5 solution to handle authentication/authorization. I am using ACEGI with a basic configuration, you can easily integrate it to your T5 projects, It's not as heavy as I thought, and it turned out to be very efficient. But if someone gets a better solution full T5, I'm open

Re: overriding dateeditor

2009-06-03 Thread Thiago H. de Paula Figueiredo
Em Wed, 03 Jun 2009 15:49:13 -0300, Moritz Gmelin escreveu: Hi, HI! public static void contributeBeanBlockSource(Configuration configuration) You should use an OrderedConfiguration as a parameter, not a Configuration. Example: Tapestry CRUD provides an editing block for entity classes

overriding dateeditor

2009-06-03 Thread Moritz Gmelin
Hi, I am still trying to find the proper way to override the default date editor component. I have tried to do the following in my AppModule class public static void contributeBeanBlockSource(Configuration configuration) { configuration.add(new BeanBlock

Re: removing a property from grid component

2009-06-03 Thread Thiago H. de Paula Figueiredo
Em Wed, 03 Jun 2009 14:33:07 -0300, spaway escreveu: Grid has no remove parameter: use exclude instead. ;) -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago -

removing a property from grid component

2009-06-03 Thread spaway
Dear all, I have a grid component and I do not want the id property of the object to be displayed. I have used remove="id" as can be seen below but it is still getting displayed. pls advise on how to remove a property from being displayed on a grid. Thanks SPA

Re: T5.1.0.5 Component's body not rendered

2009-06-03 Thread Lukasz Jazgar
Hi, It won't help to find a cause, but I can confirm that I observe exactly the same behaviour in my application. Regards Lukasz W dniu 3 czerwca 2009 00:35 użytkownik grabarz napisał: > hi, > thanks for that solution! > > i will try to find a reason of this strange behaviour debugging > tapest

Re: Serializing a component as the value of a textarea

2009-06-03 Thread ownedthx
That sounds dead on with what I need. I'll give it a try! Thanks. The closest *cough* solution I have at the moment is the following template: Notice I'm using a non-tapestry textarea. This successfully populates the form with the right text... but, on submi

Re: Tapestry 5.0.18 -> 5.1.0.5 Upgrade: Session IllegalStateException

2009-06-03 Thread Joachim Van der Auwera
You should invalidate the session from the (injected) Request object (not the HTTPServletRequest). This does the necessary bookkeeping. Kind regards, Joachim Kristian Marinkovic wrote: hi, using 5.0.18 it was able to invalidate a HttpSession (via the Request) and then to create a new one to

Re: [Tapestry Central] Vendor Client Relationship Video

2009-06-03 Thread Ivano Luberti
Howard: in the message I hve got from the list there is no link. My problem only? Howard ha scritto: > This has been making the rounds on YouTube: > > > > > > > > As a vendor, I can identify with this ... but I think a lot of clients > out there (those not using Formos, for example) are ordering a

Tapestry 5.0.18 -> 5.1.0.5 Upgrade: Session IllegalStateException

2009-06-03 Thread Kristian Marinkovic
hi, using 5.0.18 it was able to invalidate a HttpSession (via the Request) and then to create a new one to store a new object (subject). in 5.1.0.5 this changed because the Request will always cache the old Tapestry Session object and not attempt to create a new Http Session as long as the refer

Re: permGen Space

2009-06-03 Thread Javier Molina
spaway escribió: many thanks, I am using netbeans IDE and have updated netbeans.conf file in my home user netbeans/6.1/etc folder as follows: -J-Xss2m -J-Xms32m -J-XX:PermSize=64m -J-XX:MaxPermSize=1024m That will only affect Netbeans itself, not the tomcat server your application runs on,

Re: T5: Validation title message

2009-06-03 Thread Thiago H. de Paula Figueiredo
On Wed, Jun 3, 2009 at 4:12 AM, wrote: > Hi, Hi! > On top of the validation messages there is an english sentence: "You must > correct the following errors before you may continue." > Is it possible to override this message? You can use the message parameter of the Errors component. Tapestry h

Error on page request: Construction of service 'PropertyConduitSource' has failed due to recursion

2009-06-03 Thread Alexey Chmutov
Hi, I'm not experienced Tap5 user and I faced with some kind of misconfiguration (or even critical bug in Tap5.1?) My helloworld app copied from http://tapestry.apache.org/tapestry5.1/tutorial1/index.html doesn't work on Tomcat 5.5 when I'm using Tap 5.1.0.5. And It works fine with Tap 5.0.18

Re: T5: Validation title message

2009-06-03 Thread Ulrich Stärk
Yes, I do ;-) - Changing your browser's locale AND the list of supported locales (SymbolConstants.SUPPORTED_LOCALES, see the Configuration section in the user's guide) will display that message in the desired locale - to overwrite it for a specific locale put a file Errors_.properties inside a

Re: T5: Validation title message

2009-06-03 Thread Borut Bolčina
Hi, see this wiki entry: http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner Cheers, Borut 2009/6/3 > Hi, > > On top of the validation messages there is an english sentence: "You must > correct the following errors before you may continue." > > Is it possible to

Re: T5: Validation title message

2009-06-03 Thread kasper
Thanks, but do you also know how? Yours, Kasper On Wed, 03 Jun 2009 09:29:58 +0200, Ulrich Stärk wrote: > Yes it is. > > Uli > > kas...@nekoconeko.nl schrieb: >> Hi, >> >> On top of the validation messages there is an english sentence: "You > must >> correct the following errors before you may

Re: T5: Validation title message

2009-06-03 Thread Ulrich Stärk
Yes it is. Uli kas...@nekoconeko.nl schrieb: Hi, On top of the validation messages there is an english sentence: "You must correct the following errors before you may continue." Is it possible to override this message? Thanks in common, Yours, Kasper --

Re: Serializing a component as the value of a textarea

2009-06-03 Thread Ulrich Stärk
I haven't worked with it before and thus don't know if it supports what you need, but maybe the tapx-templating module may help (http://tapestry.formos.com/nightly/tapx/tapx-templating/). Basically you'd want it to render your component structure into a String or some other object and bind that

T5: Validation title message

2009-06-03 Thread kasper
Hi, On top of the validation messages there is an english sentence: "You must correct the following errors before you may continue." Is it possible to override this message? Thanks in common, Yours, Kasper - To unsubscribe, e