Yeah, overriding themes is a big ticket that needs to be addressed. The
bottom line is you have to ensure, manually, all the content from the
original template is in the new one.
While WW also suffers this overriding problem, the reason you are seeing
it in Struts is that we had to remove the tooltip, editor, and calendar
Javascript widgets from WW and replace them with non-LGPL versions. We
chose to use Dojo, and therefore, dojo is now required for those tags.
Don
Matt Raible wrote:
On 8/30/06, Don Brown <[EMAIL PROTECTED]> wrote:
ATM, Dojo is required for the XHtml theme, due to its use in tooltips
and several other features. The head tag should inject the proper dojo
setup script elements.
Hmmm, I've customized a couple of the FreeMarker templates for both
xhtml and css_xhtml. I'm assuming I'm not overriding something
properly?
https://appfuse.dev.java.net/svn/appfuse/trunk/web/struts-war/src/main/webapp/template/
It worked in WW. ;-)
Matt
Don
Matt Raible wrote:
> I tried renaming my doDefault() to start() and changing my URL to:
>
> http://localhost:8080/appfuse-struts-war/uploadFile!start.html
>
> ... and it works.
>
> Now I'm onto a new issue - it seems like Dojo is getting included at
> the bottom of my signup form.
>
> <!-- javascript that is needed for tooltips -->
> <script language="JavaScript"
>
type="text/javascript">dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");</script>
>
>
> This results in the following error in my Canoo WebTest:
>
> Signup:
>
> BUILD FAILED
> /Users/mraible/Work/appfuse-webwork/build.xml:585: The following error
> occurred while executing this line:
> /Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:160: Canoo
> Webtest: R_1263.
> Test failed.
> Test step invoke
> (/Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:166: )
> named "click signup link" failed with message "Step[invoke "click
> signup link" (2/19)]: Script error loading page executing webtest at:
> invoke TypeError: Cannot call method "require" of null (Embedded
> script in http://localhost:8080/appfuse-struts-war/signup.html#1)
> Source code:
>
dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");"
>
> Total time: 11 seconds
>
> Is this something that's new in Struts 2.0.0? Do I need to include
> Dojo includes in my <head>?
>
> Thanks,
>
> Matt
>
>
> On 8/30/06, Ted Husted <[EMAIL PROTECTED]> wrote:
>> Thanks, Matt. I've added both points to the release notes.
>>
>> Let us know if you find anything else.
>>
>> -Ted.
>>
>> On 8/30/06, Matt Raible <[EMAIL PROTECTED]> wrote:
>> > I think it's fine to refactor, as long as it's documented.
Currently,
>> > it's not listed on the release notes.
>> >
>> > http://cwiki.apache.org/confluence/display/WW/Release+Notes+2.0.0
>> >
>> > Another item missing is the need to rename com.opensymphony.xwork
>> > references to com.opensymphony.xwork2.
>> >
>> > Matt
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]