struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kenton <gies...@gmail.com>
Subject Re: [S2] Do AJAX features work?
Date Tue, 03 Jul 2007 17:07:23 GMT

This is perfect.

I've investigated the Yui library and it looks perfect. It has all the
functionality I need, the documentation is great, and the examples work
perfectly. I haven't had time to integrate with Struts and use the mentioned
plugin, but that's definitely on my list.

That's also great news about Struts 2.1.

Thank you Musachy. I'm very happy. Issue resolved.


Musachy Barroso wrote:
> 
> On 2.0 you would be stuck with Dojo(which seems to be the source of your
> problems), for 2.1 Dojo will be on it's own plugin so you won't have to
> carry it around. As for using other libraries, you just need to stay away
> from the ajax theme, and include  the javascript files in your app. Some
> work is going on the YUI plugin, but there are only 2 tags, and it is
> quite
> new :)
> 
> http://cwiki.apache.org/S2PLUGINS/yui-plugin.html
> 
> musachy
> 
> On 7/2/07, Kenton <giesen2@gmail.com> wrote:
>>
>>
>> Struts: 2.0.8
>> Browser: Firefox 2.0.0.4
>> App Server: Glassfish v2 beta 2
>> OS: Windows XP SP2
>>
>> I'm trying to add some simple AJAX functionality to my Struts 2
>> application.
>>
>> I've copy/pasted a few snippets from the Struts 2 documentation. I've
>> tried
>> several variations on this:
>>
>>                 <head>
>>                         <title>Test</title>
>>
>>                         <s:head theme="ajax" debug="true"/>
>>                 </head>
>>
>>                 <body>
>>                         <h2>This is a test page</h2>
>>
>>                         <p>
>>                                 <s:form id="form" action="AJAXTest">
>>                                         <s:submit type="button"
>> theme="ajax" targets="div1" label="Submit
>> Button"/>
>>
>>                                         <s:a theme="ajax">Submit
>> form</s:a>
>>                                 </s:form>
>>                         </p>
>>                 </body>
>>
>> When I try this, I see the following in my browser:
>>
>> DEBUG:  dojo.widget.Parse: error:TypeError: impl is not a constructor
>> DEBUG:  dojo.widget.Parse: error:TypeError: impl is not a constructor
>>
>> I also see this in the Firefox JavaScript error console:
>>
>> Error: uncaught exception: [Exception... "Object cannot be created in
>> this
>> context"  code: "9" nsresult: "0x80530009
>> (NS_ERROR_DOM_NOT_SUPPORTED_ERR)"
>> location: "http://localhost:8080/vgstats/struts/dojo/src/browser_debug.js
>> Line: 168"]
>>
>> Anyone have any ideas?
>>
>> Also, I've tried to get some static web apps working with Dojo in hopes
>> that
>> I could better understand the Dojo library and possibly debug this. I've
>> tried both the 0.4.3 and 0.9M2 releases and have had a variety of
>> problems
>> with both. Also, the online demos are broken and the documentation is
>> exceptionally poor (grammar errors, many omissions, unprofessional
>> writing).
>>
>> Can I use any of Struts 2 AJAX features with a JavaScript library other
>> than
>> Dojo? I have used Prototype/Scriptaculous in the past and it was
>> extremely
>> easy. I'd also be happy with YUI or any other alternative.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-S2--Do-AJAX-features-work--tf4013653.html#a11398152
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?" Pink Floyd
> 
> 

-- 
View this message in context: http://www.nabble.com/-S2--Do-AJAX-features-work--tf4013653.html#a11416630
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message