Re: [OS-webwork] Programmatic configuration

2003-02-28 Thread Rickard Öberg
Jason Carreira wrote: I was thinking it would be good to let them be able to do a series of modifications to the programmatic configuration side then commit them all at once. The runtime configuration is not really a cache, it's another set of data structures that is built from the first set. But,

Re: [OS-webwork] Commands implemented

2003-02-28 Thread Rickard Öberg
Jason Carreira wrote: action name=commandTest class=com.opensymphony.xwork.SimpleAction param name=foo123/param result name=error type=chain param name=actionNamebar/param /result interceptor-ref name=static-params/

[OS-webwork] Configuration questions

2003-02-28 Thread Rickard
Hi! I'm looking through the Configuration stuff in XWork, and have the following comments/questions: * What does it mean for a package to be abstract? * The ConfigurationProviderFactory is not a factory, so it's a bad name. Also, what is it's purpose? It seems that the current code only

RE: [OS-webwork] Commands implemented

2003-02-28 Thread Jason Carreira
-Original Message- From: Rickard Öberg [mailto:[EMAIL PROTECTED] Why are params declared explicitly? What's wrong with finding them implicitly, as is done in WebWork? Sounds like a refactoring disaster waiting to happen. Any configuration that is mostly just duplication of

RE: [OS-webwork] Programmatic configuration

2003-02-28 Thread Jason Carreira
-Original Message- From: Rickard Öberg [mailto:[EMAIL PROTECTED] But, that data structure could be created on each call to the configuration, i.e. there's a deterministic way to get it from the registered package contexts. So, in *effect* it *is* a cache. Sort of, but it's not

Re: [OS-webwork] Commands implemented

2003-02-28 Thread Rickard Öberg
Jason Carreira wrote: There are 2 types of parameterization, and you're free to use either or both. The params in the configuration are static params which are intended to parameterize a reusable Action for one or more aliases. For instance, if you had an email action you might parameterize it

Re: [OS-webwork] Programmatic configuration

2003-02-28 Thread Rickard Öberg
Jason Carreira wrote: Sort of, but it's not used that way. In what way is it not used as a cache? E.g.: xwork !-- Register subapp foo which uses XML config -- application name=foo param name=config.xmlfoo.xml/param /application !-- Register subapp bar which uses DB config -- application

[OS-webwork] Newbie Question

2003-02-28 Thread Jones, Marty B.
I have just started playing with webwork and I am using the examples as a guide on how everything works. I have created a small application that basically has one jsp called login.jsp . I have created a action.xml file and placed it in the classes folder of my webapp. Here is the snippet of my

RE: [OS-webwork] Commands implemented

2003-02-28 Thread Jason Carreira
-Original Message- From: Rickard Öberg [mailto:[EMAIL PROTECTED] IIRC we argued about this before, and I think my position was that you'd typically want configuration to live elsewhere, but, as you said just don't use it (except that it becomes a built-in anti-pattern).

RE: [OS-webwork] Programmatic configuration

2003-02-28 Thread Jason Carreira
-Original Message- From: Rickard Öberg [mailto:[EMAIL PROTECTED] Jason Carreira wrote: Sort of, but it's not used that way. In what way is it not used as a cache? In the way in which if it doesn't find it in the runtime configuration it fails back to the programmatic

Re: [OS-webwork] Commands implemented

2003-02-28 Thread Rickard Öberg
Jason Carreira wrote: We'll have to agree to disagree :-) I think it's useful for some cases. How about this one: You've got an action you want to alias multiple times with different defaults? If that ever comes up, I'll answer it. So far I've never come across such a situation, for me or

Re: [OS-webwork] Programmatic configuration

2003-02-28 Thread Rickard Öberg
Jason Carreira wrote: -Original Message- From: Rickard Öberg [mailto:[EMAIL PROTECTED] Yes, and the right way to do this is probably to enforce that views have this style /WEB-INF/foo where foo is the name of the subapp, i.e. do a hard prefixing. This will ensure that you can always

Re: [OS-webwork] Configuration questions

2003-02-28 Thread Rickard Öberg
Jason Carreira wrote: * This method in ConfigurationManager is wrong: Interceptor getInterceptor(String clazz) It assumes that there is only one instance of each interceptor class. This does not account for the case where one instance is used with many names (compare with servlets), and

RE: [OS-webwork] Configuration questions

2003-02-28 Thread Jason Carreira
-Original Message- From: Rickard Öberg [mailto:[EMAIL PROTECTED] Ok, well I guess this argument is the same as parameterized commands. I have a couple of interceptors in my own AOP application that are indeed parameterized, so at least in that context there's a need, and I

RE: [OS-webwork] Newbie Question

2003-02-28 Thread Andre Mermegas
I had a problem with jrun4 as well, but I didn't look into it much as I was not committed to using it, I just swapped in resin. Regards, -Andre Mermegas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Farquhar Sent: Friday, February 28, 2003

[OS-webwork] RE: Opensymphony-webwork digest, Vol 1 #433 - 1 msg

2003-02-28 Thread Jones, Marty B.
Dang, I was hoping that Jrun was not the problem. I am pretty much stuck with Jrun so I guess I will not be able to use this framework. When I get some free time I will try to see what is going with this framework and Jrun4. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

[OS-webwork] submitting from a form causes problems

2003-02-28 Thread Morten Wilken
hi all, i have problem, when i try to submit a form to an action, and one of the form fields is empty i get an odd message (ie. when the querystring is http://localhost/save.action?entryId= No view for result [input] exists for action [save] i am not sure how to handle this since it seems to

Re: [OS-webwork] DynamicActions

2003-02-28 Thread Andrew Lombardi
Someone already responded, check the ParameterAware interface. John Benediktsson wrote: I want to use Webwork for a project and I'm having trouble finding some similar capability to Struts DynamicActionForms. I would like to have an Action object be able to access all fields from a form

Re: [OS-webwork] DynamicActions

2003-02-28 Thread Francisco Hernandez
Messagesee: http://www.opensymphony.com/webwork/api/webwork/action/ActionContext.html#ge tParameters() ActionContext.getParameters() inside your action it returns a map of parameters, the map contains lists of the parameters see also ActionContext.getSingleValueParameters() if you dont want a

RE: [OS-webwork] submitting from a form causes problems

2003-02-28 Thread Jason Carreira
This is happening because you have an IllegalArgumentException being thrown when Webwork tries to set the field with a String value... Must be the field is a non-String which cannot accept a ? In validate() in ActionSupport it checks the errors and errormessages and if there are any, it throws a