Posted by Baubak Gandomi <b....@castsoftware.com>.
Thanks all
This does seem to be plausible.
-----Original Message-----
From: Dave Newton [mailto:davelnewton@gmail.com]
Sent: lundi 9 mai 2011 16:26
To: Struts Users Mailing List
Subject: Re: where does <s:reset action="X" go?
Yeah, all the UI components extend a base that have a bunch of
attributes, not all of which make sense for each UI components.
Dave
On Mon, May 9, 2011 at 10:19 AM, Maurizio Cucchiara
<ma...@gmail.com> wrote:
> Maybe this docs was auto generated and action is inherited from
another
> component.
>
>
> On 9 May 2011 15:41, Baubak Gandomi <b....@castsoftware.com>
wrote:
>
>> Thanks for the answer. I'll take a look at <s:button then.
>>
>> But the reason I ask is that the documentation :
>> http://struts.apache.org/2.x/docs/reset.html mentions the attribute
>> "action". Is this a doc error?
>>
>> Baubak Gandomi
>>
>>
>> -----Original Message-----
>> From: Maurizio Cucchiara [mailto:maurizio.cucchiara@gmail.com]
>> Sent: lundi 9 mai 2011 15:22
>> To: Struts Users Mailing List
>> Subject: Re: where does <s:reset action="X" go?
>>
>> On 9 May 2011 15:06, Baubak Gandomi <b....@castsoftware.com>
wrote:
>> > Does anyone know when the "action" attribute of "<s:reset" is
>> > used/invoked?
>> Never,
>> maybe s:button is the best candidate in order to obtain what you're
>> looking for.
>> --
>> Maurizio Cucchiara
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
>
> --
> Maurizio Cucchiara
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: where does
Posted by Dave Newton <da...@gmail.com>.
Yeah, all the UI components extend a base that have a bunch of
attributes, not all of which make sense for each UI components.
Dave
On Mon, May 9, 2011 at 10:19 AM, Maurizio Cucchiara
<ma...@gmail.com> wrote:
> Maybe this docs was auto generated and action is inherited from another
> component.
>
>
> On 9 May 2011 15:41, Baubak Gandomi <b....@castsoftware.com> wrote:
>
>> Thanks for the answer. I'll take a look at <s:button then.
>>
>> But the reason I ask is that the documentation :
>> http://struts.apache.org/2.x/docs/reset.html mentions the attribute
>> "action". Is this a doc error?
>>
>> Baubak Gandomi
>>
>>
>> -----Original Message-----
>> From: Maurizio Cucchiara [mailto:maurizio.cucchiara@gmail.com]
>> Sent: lundi 9 mai 2011 15:22
>> To: Struts Users Mailing List
>> Subject: Re: where does <s:reset action="X" go?
>>
>> On 9 May 2011 15:06, Baubak Gandomi <b....@castsoftware.com> wrote:
>> > Does anyone know when the "action" attribute of "<s:reset" is
>> > used/invoked?
>> Never,
>> maybe s:button is the best candidate in order to obtain what you're
>> looking for.
>> --
>> Maurizio Cucchiara
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
>
> --
> Maurizio Cucchiara
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: where does
Posted by Maurizio Cucchiara <ma...@gmail.com>.
Maybe this docs was auto generated and action is inherited from another
component.
On 9 May 2011 15:41, Baubak Gandomi <b....@castsoftware.com> wrote:
> Thanks for the answer. I'll take a look at <s:button then.
>
> But the reason I ask is that the documentation :
> http://struts.apache.org/2.x/docs/reset.html mentions the attribute
> "action". Is this a doc error?
>
> Baubak Gandomi
>
>
> -----Original Message-----
> From: Maurizio Cucchiara [mailto:maurizio.cucchiara@gmail.com]
> Sent: lundi 9 mai 2011 15:22
> To: Struts Users Mailing List
> Subject: Re: where does <s:reset action="X" go?
>
> On 9 May 2011 15:06, Baubak Gandomi <b....@castsoftware.com> wrote:
> > Does anyone know when the "action" attribute of "<s:reset" is
> > used/invoked?
> Never,
> maybe s:button is the best candidate in order to obtain what you're
> looking for.
> --
> Maurizio Cucchiara
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Maurizio Cucchiara
RE: where does
Posted by Baubak Gandomi <b....@castsoftware.com>.
Thanks for the answer. I'll take a look at <s:button then.
But the reason I ask is that the documentation :
http://struts.apache.org/2.x/docs/reset.html mentions the attribute
"action". Is this a doc error?
Baubak Gandomi
-----Original Message-----
From: Maurizio Cucchiara [mailto:maurizio.cucchiara@gmail.com]
Sent: lundi 9 mai 2011 15:22
To: Struts Users Mailing List
Subject: Re: where does <s:reset action="X" go?
On 9 May 2011 15:06, Baubak Gandomi <b....@castsoftware.com> wrote:
> Does anyone know when the "action" attribute of "<s:reset" is
> used/invoked?
Never,
maybe s:button is the best candidate in order to obtain what you're
looking for.
--
Maurizio Cucchiara
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: where does
Posted by Maurizio Cucchiara <ma...@gmail.com>.
On 9 May 2011 15:06, Baubak Gandomi <b....@castsoftware.com> wrote:
> Does anyone know when the "action" attribute of "<s:reset" is
> used/invoked?
Never,
maybe s:button is the best candidate in order to obtain what you're looking for.
--
Maurizio Cucchiara
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
where does
Posted by Baubak Gandomi <b....@castsoftware.com>.
Hi All,
I'm currently fiddling with <s:reset and have discovered that just like
the taglib "<s:submit" it also contains the attributes "method" and
"action".
Testing it, they do not seem to have any effect:
Here is my Action :
<action name="startResetTest"
class="org.cast.tests.struts2.misc.tld_tests.ResetClass"
method="fillList">
<result
name="startReset">/WEB-INF/pages/TLD_Tests/5.5.Reset.jsp</result>
</action>
<action name="TLDTests.5.5.2.Reset"
class="org.cast.tests.struts2.misc.tld_tests.ResetClass">
<result>/WEB-INF/pages/endZone.jsp</result>
</action>
In my view I have :
<h2>Reset Case 2</h2>
We specify the action and method through the reset button :
<s:form>
<s:textfield label="test 2 : " name="resetTest2Field"/>
<s:reset action="TLDTests.5.5.2.Reset" method="resetCase2"/>
</s:form>
My assumption would be that if I press "rest" here I should be send to
the action "TLDTests.5.5.2.Reset" and the method "resetCase2" in the
class "org.cast.tests.struts2.misc.tld_tests.ResetClass".
But when I press "reset", it just empties the field values of my form
and nothing else. I keep the context I even tested this in debug mode.
When I press "Reset" I do not enter the action class.
Does anyone know when the "action" attribute of "<s:reset" is
used/invoked?
Best regards,
Baubak Gandomi
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org