Re: T5 5.0.10: ComponentResources.createActionLink broke after upgrade from 5.0.6 to 5.0.10

2008-02-20 Thread jeffrey ai
Sorry, I don't quite get how is that related. In this case, I am not using onActivate and onPassivate at all. I am just trying to get an action link in an event handler method. Cheers, Jeffrey Ai quick guess are you returning any null values in onPassivate ? Davor Hrg -- View

Re: T5 5.0.10: ComponentResources.createActionLink broke after upgrade from 5.0.6 to 5.0.10

2008-02-20 Thread jeffrey ai
Right. The javadoc of "createActionLink" doesn't tell anything when it should be used. To my opinion, it makes sense to allow it be used in event handler methods. Cheers, Jeffrey Ai -- View this message in context: http://www.nabble.com/T5-5.0.10%3A---ComponentResources.c

T5 5.0.10: ComponentResources.createActionLink broke after upgrade from 5.0.6 to 5.0.10

2008-02-19 Thread jeffrey ai
gic // Navigation logic } } == What I noticed in 5.0.10 source code is that "ComponentResources.createActionLink" is either called from "beginRender" or "afterRender" method only. Does that imply that we cannot use it in event handlers? Cheers, Jeffrey

Re: T5: A web flow idea on T5

2007-12-27 Thread jeffrey ai
milar. Basically you could choose the session strategy, flash strategy or client strategy. Also fields annotated as ApplicationState are shared by all pages. You could find more information in the T5 guide. Cheers, Jeffrey Ai Martino Piccinato wrote: > > This is exactly what I'm trying

Re: T5: A web flow idea on T5

2007-12-24 Thread jeffrey ai
You are right. So far, I think our system will only support one flow at a time. This will not only make design simpler, but also save some server resource. If a system needs to support multiple flows, it needs a way to identify different flows in one session. Cheers, Jeffrey Ai Martino

Re: [T5] best practice to cancel edit page

2007-12-21 Thread jeffrey ai
That's great to know! Thanks for your tips, Geoff. Cheers, Jeffrey Ai Geoff Callender-2 wrote: > > Hi Jeffrey, > > What you do is change the submits and the links to look the same, > which is not quite the same as the browser-generated button, but on > the plus-sid

Re: [T5] best practice to cancel edit page

2007-12-21 Thread jeffrey ai
Geoff, I am not quite familiar with CSS. I think ActionLink or PageLink could only be rendered to an Anchor Link. I doubt CSS can change its look like to a button. Cheers, Jeffrey Ai Geoff Callender-2 wrote: > > Another technique is to use an ActionLink or PageLink for canc

Re: T5: A web flow idea on T5

2007-12-21 Thread jeffrey ai
n the data user inputed so far. Therefore, the next page might not be DeleteConfirmationPage, but some other page. Spring framework webflow supports this by configuring conditions in XML. But I think using Java is much simpler and testable to developers. Cheers, Jeffrey Ai -- View this message in context: http:

Re: T5: A web flow idea on T5

2007-12-21 Thread jeffrey ai
I don't like xml configurations of web flow in Spring too. Also another beauty to make a WEBFLOW a normal T5 page is : multiple WEBFLOWs can be easily composed together to create a new WEBFLOW, just as described in the Composite pattern of GOF. Cheers, Jeffrey Ai Joshua Jackson-3

Re: T5: redirect page in a Dispatcher

2007-12-21 Thread jeffrey ai
Yes, that's the one. You could use it rewrite inbound and outbound URLs. Cheers, Jeffrey Ai Angelo Chen wrote: > > Hi Jeffrey, > > do you meant the third party URLRewriter, http://tuckey.org/urlrewrite/ > this one? > > jeffrey ai wrote: >> >> Angelo

T5: A web flow idea on T5

2007-12-20 Thread jeffrey ai
nings("unused") private Object onActionFromPreviousPage() { ... return previousPage; } @SuppressWarnings("unused") private Object onActionFromCancel() { return cancelLink; }

Re: T5: redirect page in a Dispatcher

2007-12-20 Thread jeffrey ai
Angelo, You could use URLRewriter to do this job for you. For details, pls see my post at the following thread: http://www.nabble.com/url-rewriting-in-Tapestry-5-to12823397.html#a12823397 Cheers, Jeffrey Ai Angelo Chen wrote: > > Hi, > > T5's url is nice looking, however

Re: [T5] best practice to cancel edit page

2007-12-20 Thread jeffrey ai
. It's almost the same with the ActionLink component, Instead of create a normal link, it creates a button link like below: In your page, you could have an onActionFromCancel() method to do whatever redirection you want. Cheers, Jeffrey Ai Sven Homburg-2 wrote: > > hi there, >

Re: T5: JumpStart 3.0.0 Preview ready for comments

2007-12-17 Thread jeffrey ai
web flow feature. Cheers, Jeffrey Ai Geoff Callender-2 wrote: > > Hi all, > > I've reworked JumpStart to address Tapestry 5, and I need feedback on > how to make it as good as it can be... > > If you don't know JumpStart, its purpose is to get newcomers up-to-

Re: T5: Edit page best practice - Mk III

2007-12-11 Thread jeffrey ai
Geoff, I think your code is great for **ONE** edit-page. Our project is looking for a web flow from T5, like the Spring one. Do you have any idea about it? Howard mentioned he may add this feature in the next release. Might be a little late to us, but I am expecting to see it. Cheers, Jeffrey

Re: T5 : NULL (no data)display for SELECT component ?

2007-12-11 Thread jeffrey ai
There are several examples of how to use "Select" component in the following link. They may help you to figure out what's wrong with your code. http://lombok.demon.co.uk/tapestry5Demo/ Cheers, Jeffrey Ai Penyihir Kecil-2 wrote: > > i tried select component but i have dif

Re: [T5] injecting services into Domain Objects

2007-12-11 Thread jeffrey ai
tation in your system for domain object use, you might choose the 2nd or the 3rd way. In this case, I am favoring the 3rd way. P.S. We have used the combination of 1st and 3rd way in a medium-scale e-commerce software. Cheers, Jeffrey Ai -- View this message in context: http://www.nabble.com/-T5

Re: [T5] injecting services into Domain Objects

2007-12-10 Thread jeffrey ai
yBuilder and publish it somehow, but I don't think that's a good practice to have a registry in your class and retrieve services from it. Cheers, Jeffrey Ai kristian.marinkovic wrote: > > hi all, > > is it possible to use tapestry-ioc to inject services into domain >

Re: T5: Possible Literal Binding bug

2007-12-05 Thread jeffrey ai
It's hardly to say it's a bug. I guess T5 will assume you meant to use literal binding when you use a value with expansions, like "... ${val1} ... ${val2}". So "literal" prefix is only necessary for a simple value, like "abc". Cheers, Jeffrey Ai Andre

Re: Nightly docs fixed - and some general notes

2007-12-04 Thread jeffrey ai
. Besides that, performance is a minor concern of mine. I did see some code are commented as "naive implementation" when I went through some source code. Cheers, Jeffrey Ai Howard Lewis Ship wrote: > > The nightly docs are now fixed. > > My hatred of Maven is growing

Re: T5: Tapestry message localization, java.util.Formatter vs. java.text.MessageFormat

2007-12-04 Thread jeffrey ai
( "mymsg", new MyMessageBindingFactoryImpl() ); } --- Cheers, Jeffrey Ai Doug Hauge wrote: > > Is there some reason Tapestry chose to use 'java.util.Formatter' style > formatting as opposed to 'java.text.MessageFormat' style? The latter > seems prefera

Re: T5: outputRaw and bbcode

2007-12-04 Thread jeffrey ai
Sorry, I have no ideas about that. Cheers, Jeffrey Ai Angelo Chen wrote: > > hi jeffrey, > > thanks for the response, what I want to do is, the text has some bbcode , > I'd like to convert that to html tags, then use outputRaw to display it, > any existing comp

Re: T5: outputRaw and bbcode

2007-12-03 Thread jeffrey ai
Maybe I got your question wrong, could you just create a component to escape special chars in your BBCode text. One choice is to use StringEscapeUtils in Jakarta Commons-Lang. Cheers, Jeffrey Ai Angelo Chen wrote: > > Hi, > I'd like to know know if there is a component that can

Re: T5: Personalizing page and component template

2007-12-03 Thread jeffrey ai
Anybody, any advice? jeffrey ai wrote: > > Hi Folks, > > We have a need to provide personalized page for different user groups, so > I tweaked some T5 services to make it possible to use personalized > template based on a request parameter. > > I would like put the g

T5: Personalizing page and component template

2007-11-30 Thread jeffrey ai
templates componentTemplateSource.addInvalidationListener( service ); return service; } -- Thanks for any advice. Jeffrey Ai -- View this message in context: http://www.nabble.com/T5%3A-Personalizing-page-and-component-template-tf4925841.html#a14098291 Sen

Re: T5: radio button

2007-11-29 Thread jeffrey ai
Angelo, You could find an example of radiogroup at the following great site created by SH Man. http://lombok.demon.co.uk/tapestry5Demo/ Cheers, Jeffrey Ai Angelo Chen wrote: > > Hi, > > How to use radio/radiogroup? I have following: > > >

Re: T5: Is there a way to make a BindingFactory request-aware

2007-11-28 Thread jeffrey ai
estGlobals requestGlobals ) { configuration.add( "pmsg", new PersonalizedMessageBindingFactory(requestGlobals) ); } === Cheers, Jeffrey Ai Howard Lewis Ship wrote: > > Remember that service injection is ONLY through the constructor, > whereas compon

Re: T5: Is there a way to make a BindingFactory request-aware

2007-11-27 Thread jeffrey ai
Thanks, Filip. I tried to inject RequestGlobals, like I did for normal component, but that doesn't work. It's not correctly injected. Filip S. Adamsen-2 wrote: > > Have you tried injecting the request directly into your BindingFactory? > > -Filip > > jeffrey ai

T5: Is there a way to make a BindingFactory request-aware

2007-11-27 Thread jeffrey ai
page expansion phase. Thanks for any advice, Jeffrey Ai -- View this message in context: http://www.nabble.com/T5%3A-Is-there-a-way-to-make-a-BindingFactory-request-aware-tf4884618.html#a13980504 Sent from the Tapestry - User mailing list a

T5: Why value of CheckBox get lost at validation result page

2007-11-26 Thread jeffrey ai
Box fields Persist("flash"). The same problem applies to Select component too. Is this a problem? Why it's happening? Is my walk-around of this problem good? Thanks, Jeffrey Ai -- View this message in context: http://www.nabble.com/T5%3A-Why-value-of-CheckBox-get-lost-at-validat

Re: T5 - validation of composite components

2007-11-22 Thread jeffrey ai
I havn't tried this, but I think it will work. If your composite component inherits AbstractField, you could override processSubmission() method to do your own validation. Actually, this is how TextField component do the validation. Cheers, Jeffrey Ai Markus Fischer wrote: > &g

Re: [T5] Cannot persist field exception

2007-11-21 Thread jeffrey ai
I think you are missing "t:value" in your template. It should be : Jeffrey Ai Jean-Philippe Steinmetz-2 wrote: > > Hi All, > > I'm getting the following error > > Error persisting field Users/Create:username: > java.lang.NullPointerExc

Re: T5 persisting select component selection after form submission

2007-11-20 Thread jeffrey ai
in your page? Jeffrey Ai Ritesh.S wrote: > > Hello everybody, > > I am newbie to Tapestry. I am using Tapestry 5 for developing > an application and I encountered following problem if anyone > suggest a solution it will be very helpful for me. :) > > I have a select c

Re: How to initialize a session variable in a page render request?

2007-11-20 Thread jeffrey ai
Well, in the life cycle guide, it is said it could be used for initializations or caching. Actually, I have confirmed it could do that, but just it doesn't work to retrieve and mutate persistent variables. Cheers, Jeffrey Ai Michael Courcy wrote: > > I may be wrong as I'm a

Re: [T5] tapestry-spring and WebApplicationContext

2007-11-20 Thread jeffrey ai
things going. Cheers, Jeffrey Ai Stephane Decleire wrote: > > Yes, i've set this configuration. > But my injection of the WebApplicationContext is not in a page but in > another class. Is it a problem ? > > Stephane > > Ezra Epstein a é

Re: How to initialize a session variable in a page render request?

2007-11-20 Thread jeffrey ai
Thanks Lasitha. I did a search later of all guide. It's only mentioned in the page navigation guide. I still think it should be mentioned in the life cycle guide. I think that's the first place for developers to look for that information. Cheers, Jeffrey Ai lasitha wrote: > > O

Re: How to initialize a session variable in a page render request?

2007-11-20 Thread jeffrey ai
No Carlos. Actually, you reminded me. The original message title is without T5. I added it later after reading your message. Thanks, Jeffrey Ai carlos f wrote: > > > > carlos f wrote: >> >> If you are using tap 4.x . . . >> > > Maybe if I looked at t

Re: How to initialize a session variable in a page render request?

2007-11-19 Thread jeffrey ai
#x27;t tell you why pageAttached doesn't work (haven't tried it) but you > can use onActivate, or if it's for a form onPrepare. > > Josh > > On Nov 19, 2007 12:15 PM, jeffrey ai <[EMAIL PROTECTED]> wrote: > >> >> Hi Folks, >> >> I am lo

How to initialize a session variable in a page render request?

2007-11-19 Thread jeffrey ai
urn someOtherVar; } Although it works, apparently, this is not a good place. Is there a better place to do session variable initialization? I believe it should not be put into constructor too because it will be viewable to other sessions. Thanks, Jeffrey Ai -- View this message in cont

Re: T5.0.6: Table with input fields inside a form?

2007-11-19 Thread jeffrey ai
ction request will be automatically populated to . cheers, Jeffrey Ai CarstenM wrote: > > Hello, > > I'd like to create a table with input fields (checkbox, textfield) inside > a form. > Does someone have an example? > > Help would be very nice. Need a solution for

Re: T5: grid's column's width

2007-11-15 Thread jeffrey ai
That's right. Thanks for you suggestion! Cheers, Jeffrey Ai nirvdrum wrote: > > Couldn't you just provide your own stylesheet? The header and cell class > names are predictable. > > -- > Kevin > > > On 11/15/07 1:26 PM, in article [EMAIL PROTECTED

Re: T5: grid's column's width

2007-11-15 Thread jeffrey ai
width is to write your own component. Is there anybody could provide some hints? Jeffrey Ai Angelo Chen wrote: > > Hi, > > Is there a way to set the grid's column's width to a fixed size? without > that, the grid changes its width from page to page. Thanks. > &g

Re: T5: grid's column's width

2007-11-15 Thread jeffrey ai
I do noticed that the Grid component is not defined as "final" like some other components. I guess we could just inherit it and add a new template to extend its feature. Jeffrey Ai jeffrey ai wrote: > > I am looking for the answer of the same question too. > The template of

Re: Tapestry 5: running tutoriel

2007-11-14 Thread Jeffrey ai
en central repository, which should work. Good luck! Jeffrey Ai GUERARD Elisabeth wrote: Dear all, I try to run the tutoriel for Tapestry 5 at the following address: http://tapestry.apache.org/tapestry5/tutorial1/first.html I have problem with the first step: create an empty application by using

Re: url-rewriting in Tapestry 5

2007-10-30 Thread jeffrey ai
this method. Cheers, Jeffrey Ai Britske wrote: > > Thanks these all seem valid approaches. > What i'm looking for is a stretching the possibilities i guess but here it > goes anyway: I want a way in which I can plug a 'rewrite strategy'. This > means that not