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.createActionLink-broke

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

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

2008-02-19 Thread jeffrey ai
} } == 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 Ai -- View this message in context: http://www.nabble.com/T5-5.0.10%3A

Re: T5: A web flow idea on T5

2007-12-27 Thread jeffrey ai
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 to do for T4, it should be quite inobstrusive so

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: 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 wrote

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, You could use URLRewriter to do this job

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 cancel and refresh

Re: T5: A web flow idea on T5

2007-12-21 Thread jeffrey ai
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://www.nabble.com/T5%3A-A-web-flow-idea-on-T5-tp14442158p14459461.html Sent from

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-side they'll look the same

Re: [T5] best practice to cancel edit page

2007-12-20 Thread jeffrey ai
you want. Cheers, Jeffrey Ai Sven Homburg-2 wrote: hi there, who can me explain the best practice to cancel edit page? i have a save- and cancel button (both submit components) surrounded by a form component. if user press the cancel button, the edit form should make nothing than

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 I have a need to have

T5: A web flow idea on T5

2007-12-20 Thread jeffrey ai
; } @SuppressWarnings(unused) private Object onActionFromCancel() { return cancelLink; } ... } Cheers, Jeffrey Ai -- View this message in context: http://www.nabble.com/T5%3A-A-web-flow-idea-on-T5-tp14442158p14442158.html Sent from

Re: T5: JumpStart 3.0.0 Preview ready for comments

2007-12-17 Thread jeffrey ai
for the 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- speed with Tapestry as fast

Re: [T5] injecting services into Domain Objects

2007-12-11 Thread jeffrey ai
, 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--injecting-services-into-Domain

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 difficulty and got stuck

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] injecting services into Domain Objects

2007-12-10 Thread jeffrey ai
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 objects? i'm thinking of something like @Configurable in spring

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 Andrew Pietsch wrote: Hi there, I'm new to T5 so

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 components that can do that? jeffrey

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

2007-12-04 Thread jeffrey ai
) { configuration.add( 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 preferable for localization

Re: Nightly docs fixed - and some general notes

2007-12-04 Thread jeffrey ai
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 quickly. You may not be aware

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 display BBCode

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 general idea here in case you

T5: Personalizing page and component template

2007-11-30 Thread jeffrey ai
to changes to 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

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: t:radiogroup value=optn t:id=optn

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

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

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

2007-11-27 Thread jeffrey ai
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 archive at Nabble.com

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 skrev: Hi Folks, I think I'm

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

2007-11-26 Thread jeffrey ai
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-validation-result-page-tf4876723.html

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: I have a problem

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 : input t:type=TextField t:id=username t:value=username t:validate=required size=30/ Jeffrey Ai Jean-Philippe Steinmetz-2 wrote: Hi All, I'm getting the following error Error persisting field Users/Create:username

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 the subject of the original message I would have

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: On Nov 20, 2007 4

Re: [T5] tapestry-spring and WebApplicationContext

2007-11-20 Thread jeffrey ai
. 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 écrit : And your web.xml file has: listener listener

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 tapestry newbie

Re: T5 persisting select component selection after form submission

2007-11-20 Thread jeffrey ai
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 component with GenericSelectModel which

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

2007-11-19 Thread jeffrey ai
will be automatically populated to your_value_list. 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 it to finish first version of my

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

2007-11-19 Thread jeffrey ai
, 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 context: http://www.nabble.com/How-to-initialize

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

2007-11-19 Thread jeffrey ai
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 looking for the best way to initialize a session variable(@Persist) in a page render request once, so I could access it in the next action request. I tried

Re: T5: grid's column's width

2007-11-15 Thread jeffrey ai
/ /tbody /table - It seems to me that the only way to add column 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

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 the Grid component

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], jeffrey ai [EMAIL PROTECTED] wrote: I

Re: Tapestry 5: running tutoriel

2007-11-14 Thread Jeffrey ai
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 feature

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 only I have to translate urls from