Re: [OS-webwork] WW2 Tutorial - Call for Volunteers

2004-03-08 Thread Matt Raible
So everyone can read this w/o download and install it - I've (temporarily) deployed it to my demo server: http://demo.raibledesigns.com/ww2tutorial HTH, Matt On Mar 8, 2004, at 5:08 AM, Vítor Souza wrote: Hi all, As I mentioned in a previous message, I'm working on a WW2 Tut

Re: [OS-webwork] docs are important

2004-02-27 Thread Matt Raible
in the next few months - I'll try to document it as best I can when I do. From that - you should get a pretty good sample app. Matt On Feb 27, 2004, at 8:41 PM, Charlie Morss wrote: Just to put my 2 cents in here. I'm a huge fan of WebWork and XWork and I recently started a new pr

Re: [OS-webwork] Webwork2 tags not working on velocity

2004-02-19 Thread Matt Ho
Vítor Souza wrote: Hi, I'm getting an error from Velocity when I try to use Webwork UI tags in a VM template. If I write this (which was taken from Using+WebWork+2+Tags+from+Velocity in the wiki) in the script: #tag( TextField "label=Username" "name=username" ) This should be #tag(

Re: [OS-webwork] TurbineScreen implementation with WW

2004-02-15 Thread Matt Ho
Eliot Sykes wrote: Apologies if this isn't text only but Outlook or something else is playing up. I didn't raise the original question, but I do have a inkling of interest in it's answer. In Turbine, there is a concept of a screen. A screen is a combination of one velocity template and one s

Re: [OS-webwork] view data

2004-02-15 Thread Matt Ho
rname=matt 2. setUsername("matt") is called on our action 3. the execute() method of the action is called 4. velocity renders the result 5. in the velocity template, setuserpassword.vm, getUsername() is called to render dosetuserpassword.action?username=$username into dosetuser

RE: [OS-webwork] tomcat version 5

2004-02-14 Thread Matt Raible
and that might show you where your problems lie. HTH, Matt > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Jens Riboe > Sent: Friday, February 13, 2004 9:01 AM > To: [EMAIL PROTECTED] > Subject: RE: [OS-webwork] tomcat ve

Re: [OS-webwork] How to redirect from doExecute to a url and post some values?

2004-01-30 Thread Matt Raible
The only way that I've found do do this is using Commons HttpClient. Matt On Jan 28, 2004, at 11:52 AM, Jason Carreira wrote: I don't think you can redirect with a POST... Not sure... -Original Message- From: Leonidas Papadakis [mailto:[EMAIL PROTECTED] Sent: Monday, January

RE: [OS-webwork] sf.net cvs

2004-01-27 Thread Matt Raible
SourceForge's CVS has been hosed since last Friday. I've heard it'll be fixed by this weekend. A nice week long outage. If I were you, I'd wait until the issues are solved before messing with your repository. http://sourceforge.net/docman/display_doc.php?docid=2352&group_id=1 > -Original M

RE: [OS-webwork] example of using xwork with spring integration

2004-01-21 Thread Matt Raible
Google it: http://www.google.com/search?q=spring+xwork 3rd item... > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Francisco Hernandez > Sent: Tuesday, January 20, 2004 4:43 PM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] example of using xwo

Re: [OS-webwork] velocity tool support

2003-11-18 Thread Matt Ho
Rickard Öberg wrote: Matt Ho wrote: I've opted to move this to the webwork extensions rather than have it part of the webwork core. Although the VelocityServlet will be deprecated, that won't be til Velocity 1.5! One of the features that's extremely appealing about the velocit

Re: [OS-webwork] Problems with tags?

2003-11-18 Thread Matt Ho
Daniel Pfeifer wrote: There seem to be some problems with the Tags in the latest CVS checkout. Specifically IncludeTag and UrlTag cause exceptions when used. Is that a known problem? Nope, but it's fixed in CVS now :) M --- This SF.net emai

Re: [OS-webwork] Velocimacro registration?

2003-11-18 Thread Matt Ho
Drew McAuliffe wrote: Recent changes to webwork included the addition of some macros for backwards compatibility. As part of this change, though, I'm seeing problems with configuring other macros. I've been using a velocity.properties file that includes declarations of 2 additional macro files. Th

Re: [OS-webwork] Param directive

2003-11-18 Thread Matt Ho
Hani Suleiman wrote: +1, the valuestack is a neat thing and all that, but having random pushs/pops happen in UI tags of all things just feels wrong. Agreed. However, I'm unclear why pushes and pops are required though. #foreach( $number in $person.phoneNumbers ) $stack.push($number) #bo

[OS-webwork] velocity tool support

2003-11-18 Thread Matt Ho
I've opted to move this to the webwork extensions rather than have it part of the webwork core. Although the VelocityServlet will be deprecated, that won't be til Velocity 1.5! One of the features that's extremely appealing about the velocity tool project is the ability to easily add your own

Re: [OS-webwork] Param directive

2003-11-18 Thread Matt Ho
Fred Lamuette wrote: I dont think two #param directives are a good idea. What about a default behaviour defined in the webwork.properties ? With an attribute in param tag to override the default, it would be nice. This is now done in CVS. The param supports an optional eval attribute. If eval i

Re: [OS-webwork] Param directive

2003-11-17 Thread Matt Ho
Fred Lamuette wrote: As far as I am concerned this approach is not the correct one ! I explain my point of view with an example : With the latest XWork+WW2 cvs snapshot, you can write a select tag both ways : 1/ #tag(Select "name='nameValue'" ...) -> in this case, the parameter with key=name and

Re: [OS-webwork] Parametized tags question

2003-11-14 Thread Matt Ho
Patrick Lightbody wrote: Open a jira issue for this, but I suspect it'll be a post 2.0 thing. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Hall Sent: Wednesday, November 12, 2003 12:05 AM To: '[EMAIL PROTECTED]' Subject: [OS-webwork] Parametized ta

Re: [OS-webwork] EL Performance Between 1.3 and 2.0

2003-11-14 Thread Matt Ho
Dick Zetterberg wrote: Just out of curiosity, did you measure against the released version of 1.3 or the CVS version? Did you use JSP or Velocity for presentation? Could you perhaps post your testcases here so that we may have a look at them and perhaps try them ourselves? I'd also be interested

Re: [OS-webwork] More about velocity directives

2003-11-14 Thread Matt Ho
Drew McAuliffe wrote: I couldn't find my previous email on the SF list yet to keep this reply there, but I believe I understand now why the velocity directives act the way they do. In my post, I indicated that it would be easier to pass objects from the velocity context into bodytag params if you

Re: [OS-webwork] Best way to send email?

2003-10-27 Thread Matt Ho
Eric Pugh wrote: Okay, so there isn't anything "Out of the box" or "WebWork way" for doing this.. I guess what I am learning about WebWork is that it isn't the "garbage can" approach to providing everything.. I have used Turbine extensively, and in Turbe there are built in tools to for generating

Re: [OS-webwork] Big problems with rendering... (Velocity, tags) [remailing],

2003-10-27 Thread Matt Ho
Jonas Eriksson wrote: Any pointer of how a solution could be done would be greatly appreciated . I will of course submit my changes to JIRA (if the solution is nice enough) so others may download and try it out. Unfortunately there are a couple of properties in the VelocityLayoutServlet that ar

Re: [OS-webwork] findAncestorWithClass() in BodyTags

2003-10-26 Thread Matt Ho
Dag Liodden wrote: Juhu! :) It DOES work. :) I was using the latest, unstable build of CeWolf - works like a charm with 0.9.8. I'll update the Wiki with this. awesome :) M --- This SF.net email is sponsored by: The SF.net Donation Program. D

Re: [OS-webwork] findAncestorWithClass() in BodyTags

2003-10-26 Thread Matt Ho
, Dag Matt Ho wrote: Dag Liodden wrote: I'm trying to get the CeWolf taglib to work with WW/Velocity. However, findAncestorWithClass() fails with a null response. Does the #bodytag-directive support this and/or am I doing something wrong? Here's my template: $req.setAttribute("dat

Re: [OS-webwork] Big problems with rendering... (Velocity, tags) [remailing]

2003-10-25 Thread Matt Ho
Jonas Eriksson wrote: Hi Matt, Patric and all others! I've been using a special VelocityResult and WebWorkVelocityServlet (JIRA WW-288 (LARGE hack!)) in WW2 that is an extension of the VelocityLayoutServlet in Velocity Tools. Those files depended a lot on the old implementation of how the

Re: [OS-webwork] findAncestorWithClass() in BodyTags

2003-10-25 Thread Matt Ho
Dag Liodden wrote: I'm trying to get the CeWolf taglib to work with WW/Velocity. However, findAncestorWithClass() fails with a null response. Does the #bodytag-directive support this and/or am I doing something wrong? Here's my template: $req.setAttribute("dataset", $dataset) #bodytag(SimpleCh

Re: [OS-webwork] Hibernate with interceptor

2003-10-25 Thread Matt Ho
John Patterson wrote: I notice that in previous discussions on this list, people talk a lot about using ServletFilters to open a Session and ensure it is closed. Is there any problem with using an interceptor to do this? The main issue with using an interceptor is handling chaining. Consider t

Re: [OS-webwork] UI Tag overhaul - continued

2003-10-22 Thread Matt Ho
Francisco Hernandez wrote: this is great, being able to use any jsp tag in velocity but could you make an example of using a Jsp tag library in velocity? Sure. I added an example to the webwork-example that illustrates using the displaytag.org libraries to generate a table. To summarize what w

Re: [OS-webwork] UITags inflexible

2003-10-22 Thread Matt Ho
Dag Liodden wrote: Yup, and it's easy too! :) I ported the standard templates to support the tigris style-project (http://style.tigris.org/) in an hour or so. Works perfectly (well, worked before the latest refactorings) and looks good. I suppose this would be interesting to some of you, so if

[OS-webwork] added a NullHandler to the ParameterInterceptor

2003-10-22 Thread Matt Ho
parameter, person.name = "Matt" then the parameter interceptor would automatically instantiate the Person object (assuming Person has a default constructor) and then populate the name field with Matt. Previously, you had to create the Person object yo

Re: [OS-webwork] difficulty with WW2/Velocity Radio Tag

2003-10-22 Thread Matt Ho
Robert Douglass wrote: Hi all. I'm using Velocity with WW2 for the first time, and it's not going groovy for me. With the following radio tag, I am getting an OGNL exception because getLanguage gets called, and it throws and error because getLanguage is dependent on setLanguage being called first.

Re: [OS-webwork] NullPointerException in VelocityResult (Was: HTTP ERROR: 500 processing JSP Tags is not currently supported)

2003-10-22 Thread Matt Ho
Dag Liodden wrote: Figures. :) I've noticed and appreciated the checkins. The recent changes has removed the previous error, but introduced a NullPointerException in VelocityResult instead. Line 61: PageContext pageContext = jspFactory.getPageContext(servlet, request, response, null, true, 819

Re: [OS-webwork] select tag in Velocity

2003-10-21 Thread Matt Ho
Robert Douglass wrote: Hi all. If anyone can explain to me how to use the #tag(Select ...) without having to make my own inner-class Node implementations, I will update the Wiki with clear examples and a thorough and clear text. Don't do it for me. Do it for the next guy who downloads WW2 and asks

Re: [OS-webwork] Unsupported Operation using Velocity

2003-10-21 Thread Matt Ho
Patrick Lightbody wrote: Yup, CVS is broken for calling tags from velocity. We’re working on it. It's unbroke now. M --- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledg

Re: RES: [OS-webwork] actions from vm

2003-10-21 Thread Matt Ho
[EMAIL PROTECTED] wrote: -Mensagem original- From: Patrick Lightbody [mailto:[EMAIL PROTECTED] > It should be possible once we get the velocity tags all set up. Any idea how long could this take? I'm *really* missing the velocity tags here (to the point i have to actually write documentat

[OS-webwork] UI Tag overhaul - continued

2003-10-21 Thread Matt Ho
As Pat mentioned the upcoming beta2 release is gonna have a bunch of UI changes. Here's are some additional changes going into the mix: * Support for $ui in Velocity will be removed * The Renderer and RendererIteration classes used by Velocity have been removed. Instead, velocity will treat t

Re: [OS-webwork] Avalon Components w/ WebWork2

2003-10-10 Thread Matt Ho
Jason Carreira wrote: Matt, How do we get to the webwork-extensions module you created? Oops. It looks like it's still pending approval? (after 7 weeks?) I'll poke the java.net guys about pushing this through. M --- This SF

Re: [OS-webwork] Need help with WW2 form processing...

2003-10-10 Thread Matt Ho
Francisco Hernandez wrote: why do you use that OgnlList instead of just ArrayList? Ognl doesn't (currently) instantiate new objects when users submit info. OgnlList fills in this blank by instantiating objects of the specified instance. So, without OgnlList, that[0] would always resolve to null

Re: [OS-webwork] Avalon Components w/ WebWork2

2003-10-10 Thread Matt Ho
Patrick Lightbody wrote: Just to clear up any confusion -- Avalon nor Pico nor Spring will be included in WebWork. All of these may or may not be added to the very new (nothing in CVS, or very little) webwork-extensions project. Pico's already in there. I'll look toward adding others later. M

Re: [OS-webwork] Need help with WW2 form processing...

2003-10-10 Thread Matt Ho
I'm clearer now on what you're looking to do. If that[0].Cheetah.name that[1].Monkey.name works, then ModelDriven should work just fine. Having said that, the following code snippet should work for you (haven't tested it though). This is slightly different than what you asked for in that what

Re: [OS-webwork] Need help with WW2 form processing...

2003-10-10 Thread Matt Ho
I'm clearer now on what you're looking to do. If that[0].Cheetah.name that[1].Monkey.name works, then ModelDriven should work just fine. Having said that, the following code snippet should work for you (haven't tested it though). This is slightly different than what you asked for in that what

Re: [OS-webwork] Session and Application Maps at Velocity Template

2003-10-10 Thread Matt Ho
Samuel Mota wrote: Hi, How can I use the Session and Application maps within velocity? $req.session.getAttribute(...) $req.session.servletContext.getAttribute(...) M --- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.

Re: [OS-webwork] Need help with WW2 form processing...

2003-10-10 Thread Matt Ho
I'm not sure exactly of the problem you're having. However, there's a write up on model driven on http://wiki.opensymphony.com/space/Xwork+Interceptors To summarize, declaring something as ModelDriven just puts it on the top of the value stack so when your parameters get resolved, the model g

Re: [OS-webwork] UPDATED: hibernate/webwork2 best practices

2003-10-09 Thread Matt Ho
Fred Lamuette wrote: I'm using almost the same pattern as you, I've created an interceptor that loads the model in the action (detection of the id paramter and extension of the ModelDriven interface to add setModel(..) and getModelClass() method, thus I can load and store easily my entity in my Mod

Re: [OS-webwork] Advanced URL mapping?

2003-10-03 Thread Matt Ho
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Ho Sent: Friday, 3 October 2003 5:31 PM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] Advanced URL mapping? Cameron Braid wrote: Does this module exist at java.net or sf ? All code for xwork/webwork resides in java.net :) Jason or Patrick, can

Re: [OS-webwork] Advanced URL mapping?

2003-10-03 Thread Matt Ho
Cameron Braid wrote: Does this module exist at java.net or sf ? All code for xwork/webwork resides in java.net :) Jason or Patrick, can you put a readme file in the sf.net repository to this effect? I recently rebuilt my machine and forgot to save my ssh keys (doh). M -

Re: RES: [OS-webwork] Same property, 3 textfields

2003-10-03 Thread Matt Ho
#foreach( $email in $emails ) #tag( TextField "label='E-Mail'" "name=emails[$velocityCount].address" ) #end assuming velocityCount is configured to start @ 0 and that address is a List of OgnlList type (see previous email) You might want to check the jsp though as I think this might end up overw

Re: RES: [OS-webwork] Same property, 3 textfields

2003-10-03 Thread Matt Ho
Try this. This should work. class MyAction ... { private List emails = new OgnlList(); public List getEmails() { return this.emails ; } ... } class OgnlList extends ArrayList { private Class clazz; public OgnlList(Class clazz) { this

Re: [OS-webwork] Advanced URL mapping?

2003-10-02 Thread Matt Ho
Put it into webwork-optional module of the webwork repository. M Cameron Braid wrote: I don't mind where it goes. I can remove the CoolUriServletDispatcher if you want. Should we setup a WebWork2-extensions project on java.net ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMA

Re: [OS-webwork] Escaping

2003-10-02 Thread Matt Ho
Pat Lightbody wrote: There are a few open issues with regards to escaping -- none of which all agree how it should be handled. Some want UI tags to escape, some want them not to. Some want the URL tag to escape, others don't. I am leaning towards this: * UI tags, property, iterate, text, etc

Re: [OS-webwork] Advanced URL mapping?

2003-10-01 Thread Matt Ho
Cameron, Go ahead and check this in. M Cameron Braid wrote: I have madea patch to the servlet dispatcher to allow for extensability : the methods that can be overriden are protected void sendError(HttpServletRequest request, HttpServletResponse response, int code, Exception e) protected Map g

Re: [OS-webwork] Accessing the ValueStack

2003-10-01 Thread Matt Ho
<% OgnlValueStack stack = ActionContext.getContext().getStack(); %> M Adam Fleming wrote: I give up trying to work nicely with the ww:tags and OGNL (Thanks for your help though, Matt Ho :) How can I get the Value Stack within the jsp? I suspect somethin

Re: [OS-webwork] Value Stack Magic

2003-10-01 Thread Matt Ho
If you're trying to toString() [EMAIL PROTECTED], then call A value stack is essentially a List. Calling [1] on the stack, returns a substack beginning with the element at index 1. It's only when you call methods on the stack that your actual objects will be called. Said another way, let's

Re: [OS-webwork] interceptors as components?

2003-10-01 Thread Matt Ho
Currently, no. However, this is definitely a good suggestion. Although XW/WW supports IoC, it doesn't use it internally. I think once we get 2.0 squared away, we should definintely look at having XW/WW using IoC internally, which would include using it to create interceptors. M Anoop Rangan

Re: [OS-webwork] Application Components

2003-10-01 Thread Matt Ho
You actually will need to set up all 3 lifecycle handlers even if your app only uses application context objects. container com.opensymphony.webwork.lifecycle.RequestLifecycleFilter container /* com.opensymphony.webwork.lifecycle.SessionLifecycleListener M Samuel Mota wrote: Hi, I'

Re: [OS-webwork] how about returning invalid.token result only when the token tag is used

2003-09-20 Thread Matt Ho
Jason Carreira wrote: I believe the change Matt made to the TokenInterceptor to make the validToken() method return what the Javadoc said it should will make this possible (this is in CVS HEAD). I think :-) I still need to go in and fix the TokenInterceptorTest to pass (bad Matt ;-)) so don't

Re: [OS-webwork] Passing Iterator's value

2003-09-18 Thread Matt Ho
Hendrik van der Linde wrote: I am currently trying to pass the value of an iterator to an action. This is what it should look like (sort of): How do I get the value of the current top stack value passed to the edit action? Thi

Re: [OS-webwork] formbean vs. action

2003-09-18 Thread Matt Ho
Cameron Braid wrote: One problem that comes to mind with this approach is that if someone 'hacks' the request, specifying parameters that aren't meant to be coming in. i.e - using your example Public class CreateInvoiceAction extends ActionSupport { private Invoice invoice = new Invoice();

Re: [OS-webwork] Velocity support for non-ui tags?

2003-09-03 Thread Matt Ho
Velocity support for URL and bean and should be in CVS by the weekend. Velocity already supports Action. M Jonas Eriksson wrote: Yes, present as in existing classes in c.o.w.views.jsp, but they are not working from Velocity. A tag directive like #tag (URL "value=/d/a.action") results in an ex

Re: [OS-webwork] Velocity in ww2 beta... where/how?

2003-09-01 Thread Matt Ho
Jonas Eriksson wrote: Great! Now I have some questions :-) What IF the velocity template is accessed directly, how can one know, in the template, if this is happening? Do you mean how can one tell the difference between: #parse( "/my/template.vm" ) and #tag( Component "template=/my/templat

Re: [OS-webwork] Velocity in ww2 beta... where/how?

2003-08-30 Thread Matt Ho
With regards to the data contained within the ValueStack, I've posted the following up on the wiki under: http://wiki.opensymphony.com/space/Using+WebWork+2+Tags+from+Velocity cWebWork2 contains the following items by default in the ValueStack: * req - the current HttpServletRequest * r

Re: [OS-webwork] #tag( Form .... (again!)

2003-08-29 Thread Matt Ho
Ok, after looking through the code. It looks like when the AbstractClosingUITag was added, no corresponding support was built into velocity. This was also the case for the TokenTag. I've added support to both in CVS and added a showVelocityForm.action to the list of snippets on the front pag

Re: [OS-webwork] checkboxlist.vm bug

2003-08-28 Thread Matt Ho
I've added this to jira as WW-277. This should be resolved in CVS. M Francisco Hernandez wrote: found a bug in checkboxlist.vm if a List (of selected checkboxes) is passed to the value attribute in the tag it wont select those checkboxes. this: $!{itemKey} should be changed to this:

Re: [OS-webwork] Webwork in Swing Application?

2003-07-17 Thread Matt Ho
I'd love check out the code for this. This sounds like a really good thing to include as an optional package for webwork. M On Fri, 18 Jul 2003 08:34:43 +1000, Ben Alex <[EMAIL PROTECTED]> wrote: I've been working with Philipp Meier's WW2 Client dispatcher and have enhanced it to include thing

Re: [OS-webwork] Serialization and Framework Dependencies

2003-07-11 Thread Matt Ho
Ignore this email. My mail reader is doing weird things :( M On Fri, 11 Jul 2003 09:53:30 -0700, Matt Ho <[EMAIL PROTECTED]> wrote: On Wed, 9 Jul 2003 17:17:54 -0700, Brett Knights <[EMAIL PROTECTED]> wrote: In the discussion so far there are two examples of things I need to

Re: [OS-webwork] Decision: Xwork IoC

2003-07-11 Thread Matt Ho
that it's impossible to argue one way or the other. Smart people will argue for one side or the other till they turn blue, and no solid facts will ever be made. With that said, I'm making an executive decision (Matt and Jason, back me up here ;): just as we provided a simple valid

Re: [OS-webwork] Webwork with Tiles

2003-07-11 Thread Matt Ho
On Fri, 11 Jul 2003 12:56:21 +0100, John Patterson <[EMAIL PROTECTED]> wrote: I am looking into using Webwork for an upcoming web project. In the past I have used Struts with the Tiles extension which I really liked for its page layout abilities. It seems that with Webwork most people are usi

Re: [OS-webwork] Serialization and Framework Dependencies

2003-07-11 Thread Matt Ho
On Wed, 9 Jul 2003 17:17:54 -0700, Brett Knights <[EMAIL PROTECTED]> wrote: In the discussion so far there are two examples of things I need to do to in my business code that are mandated by the environment. Neither of these is in any way related to the business rules implemented by my model cl

RE: [OS-webwork] how to search this mailing list?

2003-07-10 Thread Raible, Matt
There's a search box in the top left corner. HTH, Matt -Original Message- From: Francisco Hernandez [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 3:17 PM To: [EMAIL PROTECTED] Subject: [OS-webwork] how to search this mailing list? I've been trying to find out how

Re: [OS-webwork] updated release date estimates?

2003-07-09 Thread Matt Ho
On Wed, 9 Jul 2003 08:03:52 -0700, Pat Lightbody <[EMAIL PROTECTED]> wrote: Matt and I were talking about releasing initial alphas maybe this week? Matt, does that sound about right? I'd like to plan on releasing it this weekend. That'll give me some time to write a getting s

Re: [OS-webwork] Serialization and Framework Dependencies [was] updated release da te estimates?

2003-07-09 Thread Matt Ho
On Wed, 9 Jul 2003 13:25:01 -0700, Brett Knights <[EMAIL PROTECTED]> wrote: dependencies on their framework. This is a good thing. This often translates to people wanting to write objects that don't know they will be used in a framework. This seems impossible if you actually want your objects to

[OS-webwork] spring lightweight container

2003-07-08 Thread Matt Ho
I just came across this today. His version of IoC has some really good point. http://www.springframework.org/docs/lightweight_container.html thoughts? M --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing

Re: [OS-webwork] Model Driven Actions

2003-07-08 Thread Matt Ho
BOGAERT Mathias wrote: This works fine as long as you do not have any child objects that need to be created. Yeah, I agree this is a problem for now. Hopefully, this will be fixed in the near future. The workaround I usually use is: public Foo getFoo() { if( this.foo == null ) { this.

Re: [OS-webwork] Model Driven Actions

2003-07-08 Thread Matt Ho
- From: Matt Ho [mailto:[EMAIL PROTECTED] Sent: dinsdag 8 juli 2003 19:18 To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] Model Driven Actions BOGAERT Mathias wrote: Also, currently our tag libraries don't support getting and setting business objects, only identifiers. So you still have to tran

Re: [OS-webwork] Model Driven Actions

2003-07-08 Thread Matt Ho
s doing this? Mathias -Original Message- From: Matt Ho [mailto:[EMAIL PROTECTED] Sent: dinsdag 8 juli 2003 18:29 To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] Model Driven Actions I've updated the wiki to include docs on ModelDriven and the ModelDrivenInterceptor. http://wiki.opensy

Re: [OS-webwork] Model Driven Actions

2003-07-08 Thread Matt Ho
d, and then in doExecute I manually do a lookup for the company and assign it to the customer object. How are you guys doing this? Mathias -----Original Message- From: Matt Ho [mailto:[EMAIL PROTECTED] Sent: dinsdag 8 juli 2003 18:29 To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] Model Drive

Re: [OS-webwork] Model Driven Actions

2003-07-08 Thread Matt Ho
omize the order of interceptors so that you can (and this is the example Matt had that led to us talking this through) set your static params (the params from your xwork.xml) then the action can use these params to decide which model type to build when getModel is called to get the model to put int

Re: [OS-webwork] OpenSymphony site down?

2003-07-07 Thread Matt Ho
Whoops ... this was intended as a personal message. M Matt Ho wrote: Scott, Thanks for all the work that you guys put in getting things put back together. I wanted to see if you guys needed a hand with any of the administration stuff. Also, I was interested in setting up cruise control

Re: [OS-webwork] OpenSymphony site down?

2003-07-07 Thread Matt Ho
Scott, Thanks for all the work that you guys put in getting things put back together. I wanted to see if you guys needed a hand with any of the administration stuff. Also, I was interested in setting up cruise control, but I heard that you were looking at that as well. I'd be interested in

Re: [OS-webwork] A Couple Observations

2003-07-06 Thread Matt Ho
Brett Knights wrote: I don't know if this helps but I used to get similar problems with Tomcat. One of the items I was putting into the session wasn't Serializable. I fixed that (just implemented the Serializable interface) and I haven't seen any problems since on context reloading. Yep. That's se

Re: [OS-webwork] A Couple Observations

2003-07-06 Thread Matt Ho
t a fix in CVS for this evening and make sure to include Tomcat as part of the build process. M Bjorn A wrote: On Sat, 05 Jul 2003 23:27:40 -0700, Matt Ho <[EMAIL PROTECTED]> wrote: Anthony Eden wrote: I just pulled down the current WebWork2 code from the CVS and have a couple of observ

Re: [OS-webwork] XWork Application Architecture

2003-07-06 Thread Matt Ho
Matthew E.Porter wrote: I am in the process of converting JLCP from some other, unnamed framework (cough... cough.. Struts) to Webwork2 and would like to solicit some feedback from those who using Webwork2/XWork. Right now, I am working on our Poll Module and see two possible roads to take fo

Re: [OS-webwork] A Couple Observations

2003-07-05 Thread Matt Ho
Anthony Eden wrote: I just pulled down the current WebWork2 code from the CVS and have a couple of observations: Whoops! Some of these were my fault. Thanks for catching them. I've gone ahead and fixed all the issues on your list that I could reproduce and updated associated the unit test. Th

[OS-webwork] deprecated items

2003-07-05 Thread Matt Ho
The existing avalon style IoC as well as the $ui based velocity tags should be considered deprecated. Unless there are objections, I'm going to remove them at the end of this month and either get rid of them or migrate them to another package if people express enough interest in keeping them a

Re: [OS-webwork] additional attributes for the tags

2003-07-04 Thread Matt Ho
Ugh ... I hates when that happens. M Scott Farquhar wrote: Matt, We've had the hard drive crash for the second time in 2 weeks on one of our boxes (the one hosting all open source jira projects, and javablogs). We're upgrading to a RAID box now, but it will take a little while

Re: [OS-webwork] additional attributes for the tags

2003-07-03 Thread Matt Ho
Looks like Jira is down. I'm just getting "Test Page" M Rainer Hermanns wrote: Most of those requested additional attributes like onchange, onblur etc have been added in WW-221 as well as the TLD generation with xdoclet. See Jira for details. cheers, Rainer Erik Hatcher wrote: On Thursday, J

[OS-webwork] additional attributes for the tags

2003-07-03 Thread Matt Ho
Ara brought up a really good point about the existing ui tags. There's really no mechanism to pass along additional presentation information such as onChange for HTML views or fetchhint for VoiceXML views. The param tag is available, but that seems a little heavy for this. It strikes me this

Re: [OS-webwork] WebWork2, here I come!

2003-07-02 Thread Matt Ho
Mike Cannon-Brookes wrote: Apologies for my Australian-ism - but your subclass structure is bullshit :) Hahaha. Ok, I'll just keep it to myself then :) Why do that? It's far too complex. Just have doCreate(), doRead() etc and use the code as is. This is exactly what it was designed for? This wher

Re: [OS-webwork] WebWork2, here I come!

2003-07-02 Thread Matt Ho
> Well, there are tonnes of use cases for this (you are talking about > commands right?) > > The most commonly quoted one is a CRUD action. You create different > methods like doCreate(), doUpdate() and have the same fields (ie name, > email etc). Ha! I've definitely spent too much time with Strut

Re: [OS-webwork] WebWork2, here I come!

2003-07-02 Thread Matt Ho
, here I come! The ModelDrivenInterceptor could access the ActionContext to get params and become totally independent of ordering. Just thought of that.. -Original Message- From: Matt Ho [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 5:25 PM To: [EMAIL PROTECTED] Subject: Re: [OS

Re: [OS-webwork] WebWork2, here I come!

2003-07-02 Thread Matt Ho
I think what would be really useful for the discussion are some concrete examples of pojos that would make use of multiple entry points. Certainly the workflow we've been talking about is one example, but I'd like to understand what some others are. M Jason Carreira wrote: Amen brother!

Re: [OS-webwork] Default workflow

2003-07-02 Thread Matt Ho
> If you DO want it, use ActionSupport - which subclasses the above and > provides a doValidation, doDefault, doExecute cycle. > > It _also_ provides backward compatibility (damn I sound like Hani > here!) which is a good thing as there is no real need to break it > unnecessarily? > > I maintain th

Re: [OS-webwork] WebWork2, here I come!

2003-07-02 Thread Matt Ho
This causes another ModelDriven problem. If the StaticParameterInterceptor comes after the ParametersInterceptor, then how can the proposed ModelDrivenInterceptor utilize static config information? M Jason Carreira wrote: If you set up your interceptors to have the StaticParameterInterceptor

Re: [OS-webwork] WebWork2, here I come!

2003-07-02 Thread Matt Ho
I agree with you on this. A good solution to this would be to allow Actions to implement Parameterizable. Actions marked as parameterizable would have the static params set via the this interface as well as through mechanism. You'd know that any params that were set via the Parameterizable i

Re: [OS-webwork] WW2 migration

2003-07-02 Thread Matt Ho
Yeah, we're definitely lacking on the docs. My schedule will be freeing up in two weeks so I'll be able to put more effort into that. M boxed wrote: I have tried migrating my quite large app to WW2, these are my issues with it: http://wiki.opensymphony.com/space/WebWork+2+Migration+Guide specif

Re: [OS-webwork] Default workflow

2003-07-02 Thread Matt Ho
+1. This type of behavior should be pluggable. M Jason Carreira wrote: While we're bringing up controversial topics A while back Mike refactored ActionSupport to have a parent class, BaseActionSupport, that does most of the work, and put the old workflow stuff into ActionSupport: public

Re: [OS-webwork] WebWork2, here I come!

2003-07-02 Thread Matt Ho
I made this argument before and I think it still stands. I may not like Struts, but I can pick up any piece of struts code and look for the execute (or perform for older stuts code) method and know that's a starting point. Without the Action interface, I'm forced to wander through the code tr

Re: [OS-webwork] WebWork2, here I come!

2003-07-02 Thread Matt Ho
Pat Lightbody wrote: While I'm not sure that the ActionProxy stuff is heading in that direction, believe me when I say I also don't think that getting rid of interfaces is a great thing. Pico is doing that (it calls start() and stop() using reflection rather than Startable and Stopable). Likewise

Re: [OS-webwork] WebWork2, here I come!

2003-07-02 Thread Matt Ho
If you pass false as the last argument to createActionProxy, it won't call the Result so you can save yourself to MockResult :) M Ara Abrahamian wrote: public void testSuccessfulLogin() throws Exception { parameters.put("username", new String[]{"savaki"}); parameters.put("password", new Stri

Re: [OS-webwork] pico support available

2003-07-02 Thread Matt Ho
03 7:51 AM Subject: RE: [OS-webwork] pico support available How are the Actions instantiated? Before, it was doing newInstance() from the class in the DefaultActionInvocation... I assume you replace the ActionProxyFactory in the lifecycle listener? -Original Message- From: Matt Ho [mai

Re: [OS-webwork] pico support available

2003-07-02 Thread Matt Ho
ginal Message- From: Matt Ho [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 10:34 AM To: [EMAIL PROTECTED] Subject: [OS-webwork] pico support available i've added pico support to xwork and webwork. i've also updated the sample application in webwork to use pico.

  1   2   3   >