Tim Azzopardi wrote:
BUT I still cannot make my simple dojo *button* work. It fails at this
javascript line:
                dojo.require("dojo.widget.Button");
which tries to include
"struts/dojo/src/widget/templates/HtmlButtonTemplate.html"
and I get the good old message
"There is no Action mapped for action name
struts/dojo/src/widget/templates/HtmlButtonTemplate."


So, could you post your filter code, so I can give that a go?

I was unable to figure out how to get either of Mr. Horwitz's suggestions to work. The first just adds additional locations from where struts might pull static content. The problem wasn't that the content wasn't there, but that the .html extension prevented it from getting far enough along to look for the static content. I did not understand how to transform his filter code from a servlet based process to a filter based process.

Since I still hold out hope that http://issues.apache.org/struts/browse/WW-1451 will get addressed sooner than later, I've found a temporary hack that seems to work for now: I exploded the struts-all-2.0.1.jar, changed practically every reference in the packaged dojo from ".html" to ".htm" (and renamed some files/directories to match) and re-jar-ed it. I recognize that this is ugly, and I'm not especially proud of it, but the up side is that it's finally working!

Now I just need to figure out how to put both a date and a time in a form and get the results back out on the server side. (Doesn't help that I keep changing my mind about what form these values should take in the model -- I just changed to Calendar.) Looks like there's a timepicker widget in dojo, but the struts-tags.tld in 2.0.1 had not yet been completely transformed for dojo.

Peeking at the struts2 svn trunk gives me hope for 2.0.2, though :-). Anyone know when that might become available?

http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/META-INF/struts-tags.tld?view=markup

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to