Re: new submitType parameter

2006-08-11 Thread Bernard Lange
Jesse Kuhnert wrote: > It is required with a default value, so no one actually ever needs to > specify it if they don't want to. I wonder how I couldn't have noticed this... it must be from tiredness... sorry about that. Bernard ---

Re: new submitType parameter

2006-08-10 Thread Bernard Lange
Jesse Kuhnert wrote: > I've added a new "submitType" parameter to all of the form submission > components. (http://tapestry.apache.org/tapestry4.1/components/Submit.html) I see it is a required parameter. Please do update the enclosed example accordingly, as now it does not use this param. Regard

Re: Tacos4 Live Demo is down?

2006-08-04 Thread Bernard Lange
Bernard Lange wrote: > I forgot to add that I'm talking about live demo referenced from Tacos > home page <http://tacos.sourceforge.net/> > > Demo link > <http://opencomponentry.com:8080/tacos/> Yeah right. As I wrote in other post. Above link is OK. But <htt

Re: Tacos4 Live Demo is down?

2006-08-04 Thread Bernard Lange
Josh Long wrote: > download tacos and the war for the demo is available ont he sam page > from sourceforge as the tacos lib itself. plop it in a container and > you're all set. ;-) Thanks. I've just noticed what is wrong. The links in tacos component reference are wrong. I.e. Dialog component pag

Re: Tacos4 Live Demo is down?

2006-08-04 Thread Bernard Lange
I forgot to add that I'm talking about live demo referenced from Tacos home page Demo link regards, Bernard - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Tacos4 Live Demo is down?

2006-08-04 Thread Bernard Lange
Hello, My colleague is doing Tapestry/JSF evaluation in terms of their suitability for his project. To support my argument, that Tapestry would be a great choice I wanted to show him some cool features, he asked about, that can be obtained in Tap 4 / 4.1 using Tacos. Unfortunately it seems that T

Re: recursive rendering

2006-08-03 Thread Bernard Lange
Dan Adams wrote: > Thanks Bernard. Your template seems really straight forward. No problem :) > The problem I having right now is that the block that is rendered is returned > via an > ognl expression and the expression is only being evaluated once. Do you > know a way around this? I'm not sur

Re: recursive rendering

2006-08-02 Thread Bernard Lange
Dan Adams wrote: > Every once in a while I'll need to do some recursive rendering. Does > anyone know of a simple example of this using @Block? We do it that way. This renders tree-like, no folding though, recursive structure of report groups containing other report groups (which are compound node

Re: Order by which events and listeners are called

2006-07-18 Thread Bernard Lange
Rui Pacheco wrote: > And this is another very good idea. But if I stick with the abstract > authenticated class, I'll have to update code in one single place, while > the component will force me to copy/paste it accross all the templates. Yes indeed. Decision is up to you, what's more convienient

Re: Order by which events and listeners are called

2006-07-18 Thread Bernard Lange
Rui Pacheco wrote: > I implement a class called AbstractWebPage that extends BasePage and I > store > all functionality common to webpages there. > > I guess, as Geoff sugested, I'll created another abstract web page that > deals uniquely with pages that need authentication. This is what I sugges

Re: Order by which events and listeners are called

2006-07-18 Thread Bernard Lange
Rui Pacheco wrote: > I implement a class called AbstractWebPage that extends BasePage and I > store > all functionality common to webpages there. > > I guess, as Geoff sugested, I'll created another abstract web page that > deals uniquely with pages that need authentication. This is what I sugges

Re: Order by which events and listeners are called

2006-07-18 Thread Bernard Lange
Bernard Lange wrote: > redirects him to Login page. Login page does have pageValidate Correction: Login page *DOES NOT* have such pageValidate authentication listener. Forgive me this important typo :) Cheers, Bernard -

Re: Order by which events and listeners are called

2006-07-18 Thread Bernard Lange
Rui Pacheco wrote: > Hi all Hi, > My problem is, pageValidate, the natural place to check whether the user > has > permissions to load that page or not, is being called before doLogin and > this makes it impossible for the user to login. You mean that the form does not start rewinding cause lis

Re: Basic HTTP Authentication in Tap 3 = Acegi + Spring ?

2006-07-18 Thread Bernard Lange
Hugo Palma wrote: > I think the fastest way to achieve what you need would be to use > declarative > security(in the web.xml) together with friendly URLs. Ok. I've done it differently. As I don't want to rely on page urls (whether friendly or not) I've implemented simple authentication page valida

Re: Basic HTTP Authentication in Tap 3 = Acegi + Spring ?

2006-07-18 Thread Bernard Lange
Hugo Palma wrote: > I think the fastest way to achieve what you need would be to use > declarative security(in the web.xml) together with friendly URLs. Thanks, I'll take a look at it. > There's problably an example of this in the wiki(sorry, don't have much > time to search it myself) Ok. I wil

Basic HTTP Authentication in Tap 3 = Acegi + Spring ?

2006-07-18 Thread Bernard Lange
Hello all, My production system still runs on Tapestry 3.0.4/Hibernate/Spring. I would like to setup Basic HTTP Authentication scheme for some non-critical, but administrator-only pages (ie. usage stats etc.). For normal user pages we currently use authentication mechanism, but what I need is fas

Re: NullPointerException in cleanupAfterRender()

2006-07-06 Thread Bernard Lange
Petter Måhlén wrote: > Hi again, > > It struck me that maybe the problem was related to how the page was invoked, > and it turned out to be right: > > The editPageMap was initialised during pageBeginRender(): > > @InjectPage("EditItem") > public abstract EditItemPage getEditItemPage(

Re: ValidationDelegate doesn't decorate

2006-07-06 Thread Bernard Lange
Christian Dutaret wrote: > What I do is create a new instance of the delegate only if there isn't > one yet, and make it available to the form component through a page > property. You can make a delegate a page bean which would free you from managing delegate instance. regards, Bernard --

Re: Tapestry JumpStart - calling all armchair critics!

2006-07-05 Thread Bernard Lange
Geoff Callender wrote: > And if you spot any poor Tapestry practises in the code then please let > me know ASAP! I'd hate to be responsible for spreading bad techniques. I would suggest adding redirect-after-POST pattern ,

Re: Tapestry 3.0.4 and Friendly URLs patch problem

2006-05-31 Thread Bernard Lange
Bernard Lange wrote: 'http://localhost:8080/edu-high/oswiata/?sp=logo.gif&sp=MDSUMGOESHERE' Correction. The link goes of course as: 'http://localhost:8080/edu-high/oswiata/asset.do?sp=logo.gif&sp=MDSUMGOESHERE'

Tapestry 3.0.4 and Friendly URLs patch problem

2006-05-31 Thread Bernard Lange
Hello all, I'm trying to set our Tapestry 3.0.4-based system to work with FURLs. I've followed information from the tutorial - applied patch and created Link and services implementations. So far so good. It seems to ALMOST work if I set up my se