Re: WebWork and XWork

"Chris Miller" <[email protected]>
Newsgroups gmane.comp.java.open-symphony.devel
Message-ID <[email protected]>
Ahhhh.... I've just done some further digging and I now see why the code is
the way it is (and why it should all still be removed :-).

The file webwork/src/webapp/tags.vm holds the key... Seems that at some
point in the past there was a (nasty) solution to allow an arbitrary set of
parameters to be passed to a UI widget. All those icky methods were there to
allow the tag properties to be set one after the other, all chained together
(hence the "return this;"). But the newer (and far far cleaner) approach is
to use the #tag() macro. The tags.vm file says the chaining approach is
deprecated, however since the WW code has never been released even as beta
shouldn't that code have been removed completely back when #tag() was
implemented?

Mathias sorry for coming down so hard on you in my last post, in hindsight
it was a little unfair given the circumstances. However I'd still hope that
seeing code like that would trigger off a few alarm bells and cause a
developer to step back to question why it was like that rather than blindly
follow the example. Especially during this phase of WW2 development where
bad architectural decisions will likely become something everyone will have
to live with for a long time should they make it into the release version.

OK, enough ranting from me, I'm sure you'll all have ample opportunity to
fire rants back my way should I ever find the time to actually contribute
something myself!

Chris





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.