Convention plugin

2007-12-28 Thread Brian Pontarelli
I have the first rough version of the convention plugin checked into the sandbox. Feel free to take a look. I haven't completed the unit tests yet, but I did get most of the Javadoc updated and added all the new features and support that was discussed. The most major change I'm trying to deter

Re: Would like more flexibility in Result

2007-12-28 Thread Brian Pontarelli
Adam Hardy wrote: Brian Pontarelli on 28/12/07 18:12, wrote: In an ideal world I would be happiest to retrieve dropdown lists in my Actions, but there is a clear separation between the Actions and the JSPs, whose dropdown list requirements don't map one-to-one to the Actions. So I turned to

Re: Accessing ActionMessages from a Tag Library

2007-12-28 Thread Chris Pratt
On Dec 28, 2007 4:48 PM, Chris Pratt <[EMAIL PROTECTED]> wrote: > On Dec 28, 2007 4:15 PM, Adam Hardy <[EMAIL PROTECTED]> wrote: > > Well, I guess I should have read your whole message. :S > > > > Can you get hold of the Action in your tag? If so, then you can do this: > > > > ValidationAware valid

Re: Accessing ActionMessages from a Tag Library

2007-12-28 Thread Adam Hardy
Pratt on 29/12/07 00:48, wrote: On Dec 28, 2007 4:15 PM, Adam Hardy <[EMAIL PROTECTED]> wrote: Well, I guess I should have read your whole message. :S Can you get hold of the Action in your tag? If so, then you can do this: ValidationAware validationAwareAction = (ValidationAware) action; val

Re: Accessing ActionMessages from a Tag Library

2007-12-28 Thread Chris Pratt
On Dec 28, 2007 4:15 PM, Adam Hardy <[EMAIL PROTECTED]> wrote: > Well, I guess I should have read your whole message. :S > > Can you get hold of the Action in your tag? If so, then you can do this: > > ValidationAware validationAwareAction = (ValidationAware) action; > validationAwareAction.getActi

Re: Would like more flexibility in Result

2007-12-28 Thread Adam Hardy
Brian Pontarelli on 28/12/07 18:12, wrote: In an ideal world I would be happiest to retrieve dropdown lists in my Actions, but there is a clear separation between the Actions and the JSPs, whose dropdown list requirements don't map one-to-one to the Actions. So I turned to Results to achieve

Re: Accessing ActionMessages from a Tag Library

2007-12-28 Thread Adam Hardy
Well, I guess I should have read your whole message. :S Can you get hold of the Action in your tag? If so, then you can do this: ValidationAware validationAwareAction = (ValidationAware) action; validationAwareAction.getActionErrors() validationAwareAction.getActionMessages() validationAwareActi

Re: Accessing ActionMessages from a Tag Library

2007-12-28 Thread Chris Pratt
On Dec 28, 2007 3:42 PM, Adam Hardy <[EMAIL PROTECTED]> wrote: > Here's one way, if you really don't want to use > > import javax.servlet.jsp.jstl.fmt.LocaleSupport; > > LocaleSupport.getLocalizedMessage(pageContext, key); > Please correct me if I'm wrong, but those get Localized messages from Re

Re: Accessing ActionMessages from a Tag Library

2007-12-28 Thread Adam Hardy
Here's one way, if you really don't want to use import javax.servlet.jsp.jstl.fmt.LocaleSupport; LocaleSupport.getLocalizedMessage(pageContext, key); Chris Pratt on 28/12/07 19:19, wrote: OK, I'm losing my mind trying to figure this out. I tried asking on the Users list, but no one there s

Accessing ActionMessages from a Tag Library

2007-12-28 Thread Chris Pratt
OK, I'm losing my mind trying to figure this out. I tried asking on the Users list, but no one there seemed to know the answer, so I figured I'd just ask the people who already know. I'm trying to write a tag library that mimics the old Struts 1 html tag library, I'm planning on open-sourcing it

Re: Would like more flexibility in Result

2007-12-28 Thread Brian Pontarelli
Adam Hardy wrote: Brian Pontarelli on 28/12/07 16:09, wrote: My requirements specify a mechanism that allows for: - caching of lists (countries again in ApplicationScope for example) - parameterization (e.g. a list of codes allowed in a particular category - requires the categoryId) - local

Re: Would like more flexibility in Result

2007-12-28 Thread Adam Hardy
Brian Pontarelli on 28/12/07 16:09, wrote: My requirements specify a mechanism that allows for: - caching of lists (countries again in ApplicationScope for example) - parameterization (e.g. a list of codes allowed in a particular category - requires the categoryId) - localization of dropdown

Re: Would like more flexibility in Result

2007-12-28 Thread Brian Pontarelli
My requirements specify a mechanism that allows for: - caching of lists (countries again in ApplicationScope for example) - parameterization (e.g. a list of codes allowed in a particular category - requires the categoryId) - localization of dropdown beans (i.e. country names) I handle the c

Would like more flexibility in Result

2007-12-28 Thread Adam Hardy
I'm using Tiles2 so I configured the TilesResult for my views. To set up the lists for dropdowns in those tiles, I am coding my own Result, rather than relying on a weakly related Action to do it. My result has to extend TilesResult, but it seems to be an unnecessary dependency, because reall