Re: Map backed Struts Action Form and multiple select values issue

2011-08-16 Thread manishkashyap09
use the following getter and setter

public void setValues(String key, Object[] value) {
values.put(key, value);
}

public Object[] getValues(String key) {
return values.get(key);
}

it works for me.

--
View this message in context: 
http://struts.1045723.n5.nabble.com/Map-backed-Struts-Action-Form-and-multiple-select-values-issue-tp3476210p4703806.html
Sent from the Struts - User mailing list archive at Nabble.com.

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



Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Anjib Mulepati
I have following code with drop-list name agencyName. But event 
.change() attached to this object never called. So i was wondering does 
jQuery ever work with Struts custom tag? or Am I doing something wrong?

Thanks in advance.

Anjib

script type=text/javascript src=js/jquery.js/script
script

$('#agencyName').change( function() {
/* Never called here */
alert($('select#agencyName').val());
$.ajax({
url: getGroupList.do,
data: agencyName= + $('select#agencyName').val()
})
} );

/script

div id=topOptions
table
tr valign=top
td width=49%
html:form action=/addUserToAgencyAndGroup  styleId=addBulkEmail

h1bean:message key=title.addToAgency //h1

label for=agencyName class=formLabel
bean:message key=common.organizationalUnit /
/label
html:select title=Agency Name styleId=agencyName 
property=agencyName tabindex=1

% ArrayListString agencyList = new ArrayListString();
agencyList = (ArrayListString) 
request.getAttribute(agencyList);

for (int i = 0; i  agencyList.size(); i++) {%
html:option value='%= agencyList.get(i)%'/
% }%
/html:select

label for=groupName class=formLabel
bean:message key=common.group /
/label
html:select title=Group styleId=groupName property=groupName 
tabindex=2

/html:selectbr/

label for=bulkEmail
bean:message key=option2.msg /
/label
html:textarea cols=70 rows=5  property=emails styleId=emails 
value= /br/


input title=Add Emails type=submit value=Add All /

/html:form
/td
/tr
/table
/div

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



Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Eric Lentz
 I have following code with drop-list name agencyName. But 
event.change() attached to this object never called.

Make sure that the rendered form is actually creating a HTML object with 
an ID of agencyName. That's usually the problem that I encounter - using 
the wrong name. Also, make sure that your script is actually being loaded. 
Firebug would be a good way to check that. That's another common issue 
(for me anyway). jQuery is independent of any server-side framework, so it 
definitely works with S1. 

Re: How to StrutsJUnit4TestCase?

2011-08-16 Thread Maurizio Cucchiara
Hi guys,
I updated the wiki section of Struts 2 JUnit Plugin [1], now there is
the capability to override the struts config location.
Feel free to correct/integrate the paragraph I inserted.

[1] http://s.apache.org/jun

Maurizio Cucchiara

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



[OT] JQuery or dojo?

2011-08-16 Thread Balwinder

Hi All,

Can any one suggest, for ajax which framework is better?

Regards,
Balwinder Kumar

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



Re: [OT] JQuery or dojo?

2011-08-16 Thread Christian Grobmeier
 Can any one suggest, for ajax which framework is better?

Every answer is highly subjective, but I have made great experiences
with jQuery.
In addition, I was able to use jQuery mobile without pain later and
there seems to be a huge community around jQuery.

My current js combination is jQuery + https://github.com/janl/mustache.js

CHeers


 Regards,
 Balwinder Kumar

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





-- 
http://www.grobmeier.de

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



Re: [OT] JQuery or dojo?

2011-08-16 Thread Brian Thompson
I prefer jquery.  Even back in 2007, using dojo with Struts seemed clunky.

AFAIK the Struts dojo plugin is deprecated, but I'm sure Dave can tell you
more about that :)

Brian



On Tue, Aug 16, 2011 at 11:37 AM, Balwinder balwinder@gmail.com wrote:

 Hi All,

 Can any one suggest, for ajax which framework is better?

 Regards,
 Balwinder Kumar




Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Anjib Mulepati

On 8/16/2011 10:51 AM, Eric Lentz wrote:

I have following code with drop-list name agencyName. But

event.change() attached to this object never called.

Make sure that the rendered form is actually creating a HTML object with
an ID of agencyName. That's usually the problem that I encounter - using
the wrong name. Also, make sure that your script is actually being loaded.
Firebug would be a good way to check that. That's another common issue
(for me anyway). jQuery is independent of any server-side framework, so it
definitely works with S1.
1. Make sure that the rendered form is actually creating a HTML object 
with an ID of agencyName.
 It is rendered select name=agencyName tabindex=1 
id=agencyName title=Agency Name

2. Also, make sure that your script is actually being loaded.
 It is also loaded. I can see in the list of loaded script in Firebug.

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



Re: [OT] JQuery or dojo?

2011-08-16 Thread Paul Benedict
jQuery and Dojo are different programming models. jQuery is more like
a scripting tool; Dojo is more like an object-oriented programming
model. I've used jQuery for several months now and find it very
powerful. I haven't used Dojo because I don't want to learn another
OO-like technology on the front-end.

On Tue, Aug 16, 2011 at 11:39 AM, Christian Grobmeier
grobme...@gmail.com wrote:
 Can any one suggest, for ajax which framework is better?

 Every answer is highly subjective, but I have made great experiences
 with jQuery.
 In addition, I was able to use jQuery mobile without pain later and
 there seems to be a huge community around jQuery.

 My current js combination is jQuery + https://github.com/janl/mustache.js

 CHeers


 Regards,
 Balwinder Kumar

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





 --
 http://www.grobmeier.de

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



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



Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Dave Newton
Check for JS errors in the console then, jQuery works fine with S1.

Dave
 On Aug 16, 2011 12:44 PM, Anjib Mulepati anji...@hotmail.com wrote:
 On 8/16/2011 10:51 AM, Eric Lentz wrote:
 I have following code with drop-list name agencyName. But
 event.change() attached to this object never called.

 Make sure that the rendered form is actually creating a HTML object with
 an ID of agencyName. That's usually the problem that I encounter - using
 the wrong name. Also, make sure that your script is actually being
loaded.
 Firebug would be a good way to check that. That's another common issue
 (for me anyway). jQuery is independent of any server-side framework, so
it
 definitely works with S1.
 1. Make sure that the rendered form is actually creating a HTML object
 with an ID of agencyName.
 It is rendered select name=agencyName tabindex=1
 id=agencyName title=Agency Name
 2. Also, make sure that your script is actually being loaded.
 It is also loaded. I can see in the list of loaded script in Firebug.

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



Re: [OT] JQuery or dojo?

2011-08-16 Thread Dave Newton
What are your criteria?

IMO they're different things, Dojo is more of an app framework, although
there's overlap in functionality at the low level.

Dave
 On Aug 16, 2011 12:38 PM, Balwinder balwinder@gmail.com wrote:
 Hi All,

 Can any one suggest, for ajax which framework is better?

 Regards,
 Balwinder Kumar

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



Re: [OT] JQuery or dojo?

2011-08-16 Thread Maurizio Cucchiara
I think it's a matter of taste, I personally prefer jquery (is lesser
intrusive).

Maurizio Cucchiara



On 16 August 2011 18:45, Paul Benedict pbened...@apache.org wrote:
 jQuery and Dojo are different programming models. jQuery is more like
 a scripting tool; Dojo is more like an object-oriented programming
 model. I've used jQuery for several months now and find it very
 powerful. I haven't used Dojo because I don't want to learn another
 OO-like technology on the front-end.

 On Tue, Aug 16, 2011 at 11:39 AM, Christian Grobmeier
 grobme...@gmail.com wrote:
 Can any one suggest, for ajax which framework is better?

 Every answer is highly subjective, but I have made great experiences
 with jQuery.
 In addition, I was able to use jQuery mobile without pain later and
 there seems to be a huge community around jQuery.

 My current js combination is jQuery + https://github.com/janl/mustache.js

 CHeers


 Regards,
 Balwinder Kumar

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





 --
 http://www.grobmeier.de

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



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



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



Re: [OT] JQuery or dojo?

2011-08-16 Thread Balwinder

Dave,

My criteria is:

Able to ajaxify my app seamlessly.
Quick in implementation.
Ease of maintenance.
Quick to learn.


Regards,
Balwinder Kumar

On 8/16/2011 10:26 PM, Dave Newton wrote:

What are your criteria?

IMO they're different things, Dojo is more of an app framework, although
there's overlap in functionality at the low level.

Dave
  On Aug 16, 2011 12:38 PM, Balwinderbalwinder@gmail.com  wrote:

Hi All,

Can any one suggest, for ajax which framework is better?

Regards,
Balwinder Kumar

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




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



Re: [OT] JQuery or dojo?

2011-08-16 Thread Dave Newton
jQuery.

Dave
 On Aug 16, 2011 1:01 PM, Balwinder balwinder@gmail.com wrote:
 Dave,

 My criteria is:

 Able to ajaxify my app seamlessly.
 Quick in implementation.
 Ease of maintenance.
 Quick to learn.


 Regards,
 Balwinder Kumar

 On 8/16/2011 10:26 PM, Dave Newton wrote:
 What are your criteria?

 IMO they're different things, Dojo is more of an app framework, although
 there's overlap in functionality at the low level.

 Dave
 On Aug 16, 2011 12:38 PM, Balwinderbalwinder@gmail.com wrote:
 Hi All,

 Can any one suggest, for ajax which framework is better?

 Regards,
 Balwinder Kumar

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



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



Re: [OT] JQuery or dojo?

2011-08-16 Thread Christian Grobmeier
Out of curiosity.
What are the criteria which speak for Dojo, in your opinion?

On Tue, Aug 16, 2011 at 7:07 PM, Dave Newton davelnew...@gmail.com wrote:
 jQuery.

 Dave
  On Aug 16, 2011 1:01 PM, Balwinder balwinder@gmail.com wrote:
 Dave,

 My criteria is:

 Able to ajaxify my app seamlessly.
 Quick in implementation.
 Ease of maintenance.
 Quick to learn.


 Regards,
 Balwinder Kumar

 On 8/16/2011 10:26 PM, Dave Newton wrote:
 What are your criteria?

 IMO they're different things, Dojo is more of an app framework, although
 there's overlap in functionality at the low level.

 Dave
 On Aug 16, 2011 12:38 PM, Balwinderbalwinder@gmail.com wrote:
 Hi All,

 Can any one suggest, for ajax which framework is better?

 Regards,
 Balwinder Kumar

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



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





-- 
http://www.grobmeier.de

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



Re: [OT] JQuery or dojo?

2011-08-16 Thread Dave Newton
Full-stack GUIs.

IMO jQuery is better for minor ajaxification of apps. For strong GUI needs
I'd lean towards more complete, pre-packaged solutions rather than trying to
mash jQueryUI things together, which can be painful at times.

Dave
 On Aug 16, 2011 1:10 PM, Christian Grobmeier grobme...@gmail.com wrote:
 Out of curiosity.
 What are the criteria which speak for Dojo, in your opinion?

 On Tue, Aug 16, 2011 at 7:07 PM, Dave Newton davelnew...@gmail.com
wrote:
 jQuery.

 Dave
  On Aug 16, 2011 1:01 PM, Balwinder balwinder@gmail.com wrote:
 Dave,

 My criteria is:

 Able to ajaxify my app seamlessly.
 Quick in implementation.
 Ease of maintenance.
 Quick to learn.


 Regards,
 Balwinder Kumar

 On 8/16/2011 10:26 PM, Dave Newton wrote:
 What are your criteria?

 IMO they're different things, Dojo is more of an app framework,
although
 there's overlap in functionality at the low level.

 Dave
 On Aug 16, 2011 12:38 PM, Balwinderbalwinder@gmail.com wrote:
 Hi All,

 Can any one suggest, for ajax which framework is better?

 Regards,
 Balwinder Kumar

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



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





 --
 http://www.grobmeier.de

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



Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Anjib Mulepati
There is no error at console but can run the script in console itself. 
Any suggestion?


On 8/16/2011 12:53 PM, Dave Newton wrote:

Check for JS errors in the console then, jQuery works fine with S1.

Dave
  On Aug 16, 2011 12:44 PM, Anjib Mulepatianji...@hotmail.com  wrote:

On 8/16/2011 10:51 AM, Eric Lentz wrote:

I have following code with drop-list name agencyName. But

event.change() attached to this object never called.

Make sure that the rendered form is actually creating a HTML object with
an ID of agencyName. That's usually the problem that I encounter - using
the wrong name. Also, make sure that your script is actually being

loaded.

Firebug would be a good way to check that. That's another common issue
(for me anyway). jQuery is independent of any server-side framework, so

it

definitely works with S1.

1. Make sure that the rendered form is actually creating a HTML object
with an ID of agencyName.
It is renderedselect name=agencyName tabindex=1
id=agencyName title=Agency Name
2. Also, make sure that your script is actually being loaded.
It is also loaded. I can see in the list of loaded script in Firebug.

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




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



Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Eric Lentz
 There is no error at console but can run the script in console itself.
 Any suggestion?

Are you saying that you can verify that the script is executing? For 
example, if you alert, breakpoint or print to console before the 
installation of the change event, do you get the expected feedback from 
the script?

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Anjib Mulepati

Yes script runs fine.
On 8/16/2011 1:19 PM, Eric Lentz wrote:

There is no error at console but can run the script in console itself.
Any suggestion?

Are you saying that you can verify that the script is executing? For
example, if you alert, breakpoint or print to console before the
installation of the change event, do you get the expected feedback from
the script?



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



Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Dave Newton
What script? The script that attaches the handler?

Dave
 On Aug 16, 2011 1:46 PM, Anjib Mulepati anji...@hotmail.com wrote:
 Yes script runs fine.
 On 8/16/2011 1:19 PM, Eric Lentz wrote:
 There is no error at console but can run the script in console itself.
 Any suggestion?
 Are you saying that you can verify that the script is executing? For
 example, if you alert, breakpoint or print to console before the
 installation of the change event, do you get the expected feedback from
 the script?


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



Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Eric Lentz
 Yes script runs fine.

I would suggest making it as simple as possible. For example, take your 
rendered form and make a html file out it and take your script and the 
jQuery framework and place them all on a file system and attempt to get 
that working (comment the ajax part out). If that works, then start laying 
in complexity until it breaks and then you'll know where the problem is.


Re: [OT] JQuery or dojo?

2011-08-16 Thread Vishwa Sahan
dojo plugin is no longer supported i think...




-- 
Vishwa Rajakaruna

*...It does not take a new day to make a brand new start
It only takes a deep desire to try with all your heart...*


Re: [OT] JQuery or dojo?

2011-08-16 Thread Dave Newton
But modern Dojo can be used on its own.

Dave
 On Aug 16, 2011 10:20 PM, Vishwa Sahan vishwa.sa...@gmail.com wrote:
 dojo plugin is no longer supported i think...




 --
 Vishwa Rajakaruna

 *...It does not take a new day to make a brand new start
 It only takes a deep desire to try with all your heart...*


Re: [OT] JQuery or dojo?

2011-08-16 Thread Vishwa Sahan
Thanks dave. I think  I should check on that.

On Wed, Aug 17, 2011 at 8:29 AM, Dave Newton davelnew...@gmail.com wrote:

 But modern Dojo can be used on its own.

 Dave
  On Aug 16, 2011 10:20 PM, Vishwa Sahan vishwa.sa...@gmail.com wrote:
  dojo plugin is no longer supported i think...
 
 
 
 
  --
  Vishwa Rajakaruna
 
  *...It does not take a new day to make a brand new start
  It only takes a deep desire to try with all your heart...*




-- 
Vishwa Rajakaruna

*...It does not take a new day to make a brand new start
It only takes a deep desire to try with all your heart...*


convention-plugin not work in jboss7

2011-08-16 Thread Lwen.ma
I report an issue at 19/Jul and get no response till today. Is the 
convention-plugin stoped?

issue url: 
https://issues.apache.org/jira/browse/WW-3662 


2011-08-17 



Best Regards,
Lwen Ma