Chat transcript, 01:23 AM CDT

<[email protected]>
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <27264595.1150266226582.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
chatbot> New reply by Philip Luppens: How do you catch exceptions in an Ajax a-tag call to an action (http://forums.opensymphony.com/thread.jspa?messageID=66408)
chatbot> New thread by Richard Lawrence: ww:tabPanel embedded ww:div or ww:action (http://forums.opensymphony.com/thread.jspa?threadID=34152)
chatbot> New thread by Martin Berg: using global-results = no Action mapped for namespace / and action n., why? (http://forums.opensymphony.com/thread.jspa?threadID=34156)
chatbot> New reply by teknokrat: problem executing action in jsp on input (http://forums.opensymphony.com/thread.jspa?messageID=66432)
chatbot> New thread by Thirunavukkarasu: Query regarding action chaining and validation framework. (http://forums.opensymphony.com/thread.jspa?threadID=34162)
chatbot> New reply by Philip Luppens: using global-results = no Action mapped for namespace / and action n., (http://forums.opensymphony.com/thread.jspa?messageID=66435)
chatbot> New reply by teknokrat: problem executing action in jsp on input (http://forums.opensymphony.com/thread.jspa?messageID=66437)
chatbot> New reply by Wesslan: using global-results = no Action mapped for namespace / and action n., (http://forums.opensymphony.com/thread.jspa?messageID=66440)
chatbot> New reply by Ian Roughley: ww:tabPanel embedded ww:div or ww:action (http://forums.opensymphony.com/thread.jspa?messageID=66459)
chatbot> New reply by Martin Berg: using global-results = no Action mapped for namespace / and action n., (http://forums.opensymphony.com/thread.jspa?messageID=66465)
chatbot> New reply by Philip Luppens: using global-results = no Action mapped for namespace / and action n., (http://forums.opensymphony.com/thread.jspa?messageID=66466)
chatbot> New reply by Martin Berg: using global-results = no Action mapped for namespace / and action n., (http://forums.opensymphony.com/thread.jspa?messageID=66474)
chatbot> New thread by Andrea: Framework error when using select (http://forums.opensymphony.com/thread.jspa?threadID=34189)
chatbot> New reply by tm_jee: ww:component (JSP) isn't outputting anything (http://forums.opensymphony.com/thread.jspa?messageID=66500)
chatbot> New reply by Jennifer Grucza: Framework error when using select (http://forums.opensymphony.com/thread.jspa?messageID=66502)
chatbot> New reply by Jennifer Grucza: ww:component (JSP) isn't outputting anything (http://forums.opensymphony.com/thread.jspa?messageID=66504)
chatbot> New reply by Jennifer Grucza: Framework error when using select (http://forums.opensymphony.com/thread.jspa?messageID=66505)
chatbot> New reply by tm_jee: howto? freemarker + ajax (dojo?) + webwork 2.2.2 : anyone done this? (http://forums.opensymphony.com/thread.jspa?messageID=66507)
chatbot> New reply by Ghetto Java: Basic Unit test for a WW Action? (http://forums.opensymphony.com/thread.jspa?messageID=66515)
chatbot> New reply by Alexandru Popescu: Basic Unit test for a WW Action? (http://forums.opensymphony.com/thread.jspa?messageID=66526)
chatbot> New reply by Andrea: Framework error when using select (http://forums.opensymphony.com/thread.jspa?messageID=66529)
chatbot> New reply by tm_jee: ww:component (JSP) isn't outputting anything (http://forums.opensymphony.com/thread.jspa?messageID=66539)
plightbo> hey guys
plightbo> how's it going?
chatbot> New reply by Jennifer Grucza: ww:component (JSP) isn't outputting anything (http://forums.opensymphony.com/thread.jspa?messageID=66544)
plightbo> don: around?
mrdon> yep
plightbo> just checking - bob was looking for you i think
plightbo> or perhaps you were looking for him
plightbo> either way, you're both here
mrdon> cool
mrdon> yeah, he ignores my pings :)
plightbo> well, his wife and kid are out of town for a few days, so i can only imagine how much hookers and blow he's gotten a hold of. can't fault him for not wanting to do programming :)
mrdon> nice
mrdon> but programming is what I do when my wife is away :(
plightbo> don't worry, once you have that kid you'll turn to the drugs
crazybob> Ha ha, ditto, Don. 
crazybob> I didn't ignore your ping--I just left my IM on at work. ;)
mrdon> ok, I forgive you...but just this once!
crazybob> Actually, when I saw it this morning, I though it was one of the 15 spam messages I get a day on AOL.
crazybob> "Hey."
crazybob> "Wanna check out my site?"
mrdon> really?
plightbo> "i have transvestite sex. you want?"
mrdon> I never get those
plightbo> me neither
plightbo> i get them on MSN and ICQ
plightbo> not aol
crazybob> Weird.
mrdon> yeah, I thought about that afterwards that "Hey" probably isn't the best first message
mrdon> did anyone get on the webbeans jsr?
plightbo> nope
plightbo> maybe jason did
crazybob> Ummm... I can.
plightbo> bob, can you send me that parameters interceptor you guys wrote that applies in the order of depth?
plightbo> i need that shiz
crazybob> I actually don't like the final code the guy wrote. Here's what I suggested for him:
crazybob> Buckets<Map.Entry<String, String[]>> buckets =
 new Buckets<Map.Entry<String, String[]>>();

for (Map.Entry<String, String[]> entry : parameters) {
 int depth = calculateDepth(entry.getKey());
 List<Map.Entry<String, String[]>> bucket = buckets.get(depth);
 bucket.add(entry);
}

for (List<Map.Entry<String, String[]>> bucket : buckets) {
 for (Map.Entry<String, String[]> entry : bucket) {
   mapToAction(entry, ...);
 }
}

static class Buckets<T> {

 List<T> buckets = Lists.newArrayList();

 List<T> getBucket(int depth) {
   for (int i = buckets.size() - 1; i < depth; i++) {
     buckets.add(Lists.newArrayList());
   }
   return buckets.get(depth);
 }

 Iterator<List<T>> iterator() {
   return buckets.iterator();
 }
}


plightbo> we need to add that to Juice :)
crazybob> Should scale well.
plightbo> btw guys, i have nice checkbox handling code
plightbo> just requires an override of the checkbox.ftl template and an interceptor at the start of the stack
plightbo> works very well
plightbo> uses a <hidden> element to do the magic
mrdon> oh, for detection of unchecked boxes?
mrdon> yeah, I've used a hidden of the same name before
mrdon> but it had a weakness..can't remember what it was...
plightbo> weakness that it was just too awesome that no one can handle it?
mrdon> oh, I wrote about it in the book
mrdon> well, the first one
mrdon> still forget what I wrote though :)
crazybob> Hidden field of the same name. It will send the parameter twice when the checkbox is checked.
mrdon> that's fine as long as you order the fields right
plightbo> i don't use the same name
plightbo> i use: <input type="hidden" name="__checkbox_${parameters.name?html}" value="${parameters.fieldValue?html}"/>
plightbo> and then remove those __checkbox_* params with the interceptor
plightbo> so they never get applied directly
mrdon> oh, that solution is definitely lacking in awesomeness :(
plightbo> it is? doh!
crazybob> Yeah. Yuck.
mrdon> isn't there a way to define the field such that it is always ignored?
crazybob> :)(
mrdon> _* or whatever?
plightbo> sure, you could do that too
mrdon> I would write the interceptor that way
plightbo> but the interceptor has to do more than just strip the shit out
plightbo> it also has to check if the checkbox was submitted
mrdon> such as...
mrdon> right
plightbo> and if not, insert the value in the hidden field as the checkbox value
mrdon> I like the same name idea better
crazybob> Ditto.
plightbo> bah
crazybob> :)
plightbo> you're both idiots obviously
mrdon> and you are can't handle the awesomeness
plightbo> :(
crazybob> Ha ha.
plightbo> you know what is crazy
plightbo> on the windows JVM (doesn't happen on the mac JVM), you can not proxy to localhost
plightbo> even if -Dhttp.proxyHost is set and -Dhttp.nonProxyHosts doesn't contain localhost
plightbo> pretty crazy
ghettojava> yello

plightbo> ghetto
plightbo> you never answered my question in #maven
ghettojava> Hello guys

plightbo> how was that an endless loop? :)
ghettojava> oh, I missed it

ghettojava> oh, the loop

ghettojava> ?

ghettojava> lol

plightbo> in your blog :)
ghettojava> it's all on the first line of that code

plightbo> li.hasNext() ?
ghettojava> look closer

ghettojava> you missed one char

ghettojava> paste that line here

plightbo> while(li.hasNext());
plightbo> oh
plightbo> haha
ghettojava> hehe

plightbo> yeah, you need an IDE
plightbo> that shit gets highlighted by IDEA
ghettojava> 
it drove me nuts

ghettojava> I do have IDE

plightbo> it didn't highlight that?
ghettojava> it  did , in yellow

ghettojava> not red

ghettojava> my developer thought it was one of those useless warnings 

plightbo> i try to get rid of all yellows and reds :)
plightbo> either by fixing them or by putting ignore comments above them
ghettojava> like change "convert + to append()" 

ghettojava> yeah, in the end that's what I told him to start doing, examine all the warnings

ghettojava> or  change the setting like you saiid

plightbo> they have a feature in there that will let you ignore warnings on a one-off basis
plightbo> it'll add a comment (or annotation) to the code
ghettojava> yeah

ghettojava> I love IDEA

ghettojava> I'd pay for it if I had to

ghettojava> but I don't

ghettojava> now I have a WW question

ghettojava> not the silly one I asked on the forum

ghettojava> IOC

ghettojava> I bought the book

ghettojava> I was digging the chapter on IOC till I learned that you guys deprecated yours

plightbo> yeah, sorry about that :(
ghettojava> in favor of Spring

ghettojava> it's all good

plightbo> we're on a mission to consolidate (struts+webwork, etc)
ghettojava> a diff of that chapter with a Spring example would be nice

ghettojava> but that's not my question

ghettojava> I see that you can do IOC with the Aware Interfaces and that is cool

ghettojava> but can I do IOC on my actions on my own ?

plightbo> i don't understand what you mean?
ghettojava> ModelDriven is cool, but it would be nice to Inject service classes, daos...etc

plightbo> still not following
plightbo> the old xwork ioc lets you inject anything in the components.xml file
ghettojava> Can you treat an action like a Spring bean

plightbo> in what way?
ghettojava> put it in the applicationContext.xml 

ghettojava> and inject suff

plightbo> yes
ghettojava> stuff

plightbo> spring integration supports that
ghettojava> really?

plightbo> you can specify the full class in xwork.xml
plightbo> or
ghettojava> niiice

plightbo> specify the bean name in the "class" attribute in xwork.xlm
ghettojava> that's the missing chapter right there

plightbo> and it'll get looked up
plightbo> yeah, we didn't cover spring integration in the book
plightbo> it'll be covered in the next edition (which will also cover SAF2)
ghettojava> very cool

ghettojava> August still looking good for a release date

ghettojava> ?

plightbo> we hope so
plightbo> woo hoo, public reports are available now for the struts project:
plightbo> https://struts.hostedqa.com/project/7/session/suite/list
plightbo> now to just write some tests :)
ghettojava> so just  get this straight.   I can make an action the regular way (in xwork.xml)   or I can declare in the spring config then reference it in xwork.xml  by substituting the class="fqcn" with class="beanId"

plightbo> correct
ghettojava> nice

ghettojava> I skipped most of the interceptor chapter

ghettojava> I guess I need to go back

plightbo> i'm glad you like the book. a nice amazon.com review would be appreciated :)
ghettojava> yeah, good idea

ghettojava> the ww:form tags make <table> tags 

plightbo> by default, yes
plightbo> the xhtml theme does
ghettojava> I'm assuming that can turn off , yah?

plightbo> yes, you can use a different theme (simple or css) or just override the controlheader.ftl and controlfooter.ftl templates
ghettojava> cool

ghettojava> tomorrow, I'll focus on oogle

ghettojava> I mean OGNL

ghettojava> OGNL: because the world needs more acronyms

ghettojava> ;)

ghettojava> I appreciate all the work you guys put in

plightbo> thanks
plightbo> good luck
ghettojava> I'm excited about the merger, gonna make struts fun again

ghettojava> later, I'll try to write up a decent reviiew on Amazon this week

ghettojava> later

plightbo> thanks. see ya
plightbo> don: around?
mrdon> yep
plightbo> CI is all set up for struts, and hostedqa runs for the showcase app are done every hour. once i get a smoke test in place, then we'll be able to know immediately if someone broke SAF2
mrdon> cool
plightbo> where should emails go to?
mrdon> dev@?
mrdon> should only be sent out on a fail
plightbo> well, a fail or a success after the first fail
plightbo> wendy thinks the commits list
mrdon> ok, commits it is then
chatbot> New thread by gene: Webwork 2.2.2 and Sybase EAServer? (http://forums.opensymphony.com/thread.jspa?threadID=34216)
mrdon> what CI app?
mrdon> anthill?
plightbo> contonuum
mrdon> ok
mrdon> should be easy to run on the zone if it ever gets set up
plightbo> yeah, very easy to get going
plightbo> don: do you have a google talk/xmpp account you want me to add to the notifications list?
plightbo> it's nicer than email :)
mrdon> sure, but I'm rarely on
mrdon> since work blocks it
mrdon> [email protected] I believe
plightbo> lameness
lastexile> can someone point me to a good custion ActionMapper howto?
lastexile> i'll read the chatbot transcripts later. thanx in advance
chatbot> New reply by tm_jee: ww:component (JSP) isn't outputting anything (http://forums.opensymphony.com/thread.jspa?messageID=66651)
chatbot> New reply by tm_jee: ww:component (JSP) isn't outputting anything (http://forums.opensymphony.com/thread.jspa?messageID=66655)

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=34253&messageID=66661#66661

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
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.