lar to use and see how it behaves.
What do you use for the validation that is creating these keys? Struts
Validator?
Eric
-Original Message-
From: eugenebalt [mailto:eugeneb...@yahoo.com]
Sent: Tuesday, July 07, 2015 3:45 PM
To: user@struts.apache.org
Subject: Re: Struts 1.3 errorStyleC
7;t happen, and the style isn't applied.
Any thoughts on this?
--
View this message in context:
http://struts.1045723.n5.nabble.com/Struts-1-3-errorStyleClass-Not-Working-Error-Field-Highlighting-tp5717942p5717943.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
The errorStyleClass attribute on the Struts 1.3 tag is not
working for me. It's supposed to highlight the error fields accumulated
correctly in the ActionErrors collection.
In the output HTML I see the error style isn't included. It only has the
original class that came from style
s,
Hemant Singh
--
View this message in context:
http://struts.1045723.n5.nabble.com/Attribute-errorStyleClass-invalid-for-tag-text-according-to-TLD-tp5710620p5710622.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
On Wed, Sep 12, 2012 at 1:35 PM, wrote:
> User Name : errorStyleClass="error" errorKey="org.apache.struts.action.Error" />
>
I'll assume the question is "why is it telling me this attribute isn't in
the TLD?"
What version of Struts are you using?
Dave
User Name :
Password :
Login
--
View this message in context:
http://struts.1045723.n5.nabble.com/Attribute-errorStyleClass-invalid-for-tag-text-according-to-TLD-tp5710620.html
Sent from the Struts
ton wrote:
>> Cristian Peraferrer wrote:
>>> Is there a way in struts2 to point out that there was validation
>>> errors in each input field, like putting an error style using
>>> errorStyleClass (of struts1)?
>>>
>>> struts1 example:
>>&
>> errors in each input field, like putting an error style using
>> errorStyleClass (of struts1)?
>>
>> struts1 example:
>>
>> > errorStyleClass="frmError"/>
>
> The xhtml theme does this by default. The style can
Cristian Peraferrer wrote:
Is there a way in struts2 to point out that there was validation
errors in each input field, like putting an error style using
errorStyleClass (of struts1)?
struts1 example:
The xhtml theme does this by default. The style can be overridden by
including your own
Hi,
Is there a way in struts2 to point out that there was validation
errors in each input field, like putting an error style using
errorStyleClass (of struts1)?
struts1 example:
Thanks,
Cris.
--
GPG Key-ID: 0x564903FA - JID: corell...@swissjabber.ch
got this working too.
bundle="${appbundle}"/>
Thanks a lot David and Niall.
From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: user@struts.apache.org
Subject: Re: errorStyleClass not workin
Thanks.
From: "Niall Pemberton" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: Re: errorStyleClass not working
Date: Fri, 21 Jul 2006 23:29:47 +0100
On 7/21/06, David Friedman <[EMAIL PROTECT
(Unles Niall has any ideas).
Regards,
David
-Original Message-
From: fea jabi [mailto:[EMAIL PROTECTED]
Sent: Friday, July 21, 2006 9:13 AM
To: user@struts.apache.org
Subject: RE: errorStyleClass not working
I think the problem is on server side.
As in the dispatch aciton
Thanks a lot, David for your help.
From: "David Friedman" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: RE: errorStyleClass not working
Date: Fri, 21 Jul 2006 13:16:21 -0400
You should find out what
works right with your indexed properties.
I'm out of ideas at this point so good luck (Unles Niall has any ideas).
Regards,
David
-Original Message-
From: fea jabi [mailto:[EMAIL PROTECTED]
Sent: Friday, July 21, 2006 9:13 AM
To: user@struts.apache.org
Subject: RE: errorStyleClass n
uts Users Mailing List"
To: "Struts Users Mailing List"
Subject: RE: errorStyleClass not working
Date: Thu, 20 Jul 2006 17:23:48 -0400
Is your problem server side or client side? If you problem is client side
then you should read the struts javadocs:
http://struts.apache.org/1.2.7/api/
plugin property "stopOnFirstError":
*
Also, if you want to use the errorStyleClass with your validation I think I
understand your problem now. At the very bottom of this letter I left in a
copy of the code you described using in your dispatch action. You save
errors with
index
properties? how can this be done?
Thanks.
From: "Niall Pemberton" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: Re: errorStyleClass not working
Date: Thu, 20 Jul 2006 00:45:41 +0100
See "1. W
bi <[EMAIL PROTECTED]> wrote:
Yah, in the JSP where the errorStyleClass is working I am using
So, do I have to use html:errors? not html:messages?
yes, I am using DynaValidatorForm but calling validate from action class.
The validation is done in validator.xml
In dispath action class I hav
right.
When to use the ActionMessages and when to use ActionErrors.
Thanks a lot for your help.
From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: user@struts.apache.org
Subject: RE: errorStyleClass not working
Date: Wed, 19 Jul 2006 15
Yah, in the JSP where the errorStyleClass is working I am using property="name"/>
So, do I have to use html:errors? not html:messages?
yes, I am using DynaValidatorForm but calling validate from action class.
The validation is done in validator.xml
In dispath action
There is something odd going on here.
In the JSP's where the html:messages and errorStyleClass are working, do you
have html:messages setting 'message="true"'? This is odd because that
changes the key from Globals.MESSAGE_KEY to Global.ERROR_KEY. Action1 Html
tags perf
yes, using 1.2.7 version of struts. This(errorStyleClass) does work in
another page though whose property is in Form-bean.
But here in this page, I have the arraylist in the form-bean, and the
arraylist contains the list of objects whose one of the attribute is shown
in the input field
I see your final output does not list the class="..." attribute. What
version of struts are you using? Accoring to the release notes, only
versions 1.2.7 and above have the errorStyleClass attributes in them. Are
you sure your version supports errorStyleClass? And we ARE talking the
lidate the user entered values, here the 2nd one i.e
name="hrs[1].adHrs" checking if user entered numeric value. I am getting the
error msg back too. But only the errorStyleClass is not working.
Thanks.
From: "David Friedman" <[EMAIL PROTECTED]>
Reply-To: "Struts
ache.org
Subject: RE: errorStyleClass not working
Thanks for your response.
>a) Have you checked your output to make sure the class is set in the html
>when an error occurs?
what class are you talking about here?
yes, the css is embeded and the errormsg is also in there. It works fine in
other pages. e
{
color: red;
background: inherit;
font-size: 11px;
border: 1px solid red;
padding: 3px;
}
Hoping to get an answer for this. Thanks.
From: "David Friedman" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject:
Users Mailing List"
>To: user@struts.apache.org
>Subject: errorStyleClass not working
>Date: Mon, 17 Jul 2006 11:44:49 -0400
>
>...
>
>
>
>
> "
>errorStyleClass="errormsg"/>
>
>
>
&
can someone help me with this please.
Thanks.
From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: user@struts.apache.org
Subject: errorStyleClass not working
Date: Mon, 17 Jul 2006 11:44:49 -0400
s
t;PrepareAction.do" >
...
"
errorStyleClass="errormsg"/>
validation.xml
depends="integer,validwhen">
is is being validated by a
> validwhen-statement placed in the validation setup for the last
> input field looking something like
>
> (((field3 > 0) or (field2 > 0)) or (field1 > 0))
>
> As the validation itself is concerned this works perfectly, but
> as a user of the styleCl
t
as a user of the styleClass and errorStyleClass-attributes possible
with the html:text tag, I would like to tell struts to tag all the
fields as incorrect, because the user does not have to neccessarily
fill out field3, even if the applied errorStyleClass suggests this.
Is there any way to solve th
thankyou, for detail explanation.
From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
CC: user@struts.apache.org
Subject: Re: errorStyleClass
Date: Thu, 16 Mar 2006 11:03:51 -0500 (EST)
fea jabi said:
> This might not be Struts related issue. More of CSS stuff I guess.
>
> I am using this errorStyleClass and works great for text fields, where I
> am
> highlighting the border with different color when there is an error.
>
> If it is a dropdown when there is an e
This might not be Struts related issue. More of CSS stuff I guess.
I am using this errorStyleClass and works great for text fields, where I am
highlighting the border with different color when there is an error.
If it is a dropdown when there is an error(when the user did not select any
Message -
From: "RathinaGanesh MeenakshiSundaram" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Wednesday, January 04, 2006 7:23 PM
Subject: Re: ErrorStyleClass
Thanks a lot Niall.
I does work..We were displaying our errors in the jsp with
t; property."
> This is what, I have for the lastName in Application Resources.properties
>
> error.login.nolastname= style="width:220px;"> for="lastname" class="errorlabels">Last name is required.
>
> Thanks,
> Ganesh.
>
>
>
y Idea..??
Also, what do you mean by "message associated with the "lastName" property."
This is what, I have for the lastName in Application Resources.properties
error.login.nolastname=Last name is required.
Thanks,
Ganesh.
On 1/3/06, Niall Pemberton <[EMAIL PROTECTED]> wrote
urces.properties
error.login.nolastname=Last name is required.
Thanks,
Ganesh.
On 1/3/06, Niall Pemberton <[EMAIL PROTECTED]> wrote:
>
> For the errorStyleClass to be used there need to be a set of
> "ActionMessages" stored under the appropriate key (i.e. Globals.ERROR_K
For the errorStyleClass to be used there need to be a set of
"ActionMessages" stored under the appropriate key (i.e. Globals.ERROR_KEY)
and there needs to be a message for the field in error - i.e. in your case a
message associated with the "lastName" property.
If your retu
Thanks.
I figured out the issue. I had a different version of struts in another app,
and somehow that was classloader was picking up that older version..
But, still after I get them right, the text field is not picking up the
errorStyleClass and just has the styleClass, even incase of error
, January 03, 2006 2:07 PM
>
>
> Thanks Laurie
>
> I was going thru' over the versions of struts all thru' my application. I
> was previously using 1.2.7. But did'nt help.
> Then, again, changed to 1.2.8 version..But, still it throws me the same
> e
ay, January 03, 2006 2:07 PM
>
>
> Thanks Laurie
>
> I was going thru' over the versions of struts all thru' my application. I
> was previously using 1.2.7. But did'nt help.
> Then, again, changed to 1.2.8 version..But, still it throws me the same
>
Sent: Tuesday, January 03, 2006 2:07 PM
Thanks Laurie
I was going thru' over the versions of struts all thru' my application. I
was previously using 1.2.7. But did'nt help.
Then, again, changed to 1.2.8 version..But, still it throws me the same
error message.
I'm sure, Iam u
Thanks Laurie
I was going thru' over the versions of struts all thru' my application. I
was previously using 1.2.7. But did'nt help.
Then, again, changed to 1.2.8 version..But, still it throws me the same
error message.
I'm sure, Iam using the errorStyleClass in only one
Are you sure that html:text tag is the only place you have specified
errorStyleClass? The exception could be coming from another tag you've
used that attribute on.
Failing that, check what version of Struts you really have deployed (and
check of extra, out-of-date, copies of struts.j
to find setter
method for attribute: errorStyleClass
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(
DefaultErrorHandler.java:39)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(
ErrorDispatcher.java:409)
at org.apache.jasper.compiler.ErrorDispatcher.jspError
RathinaGanesh MeenakshiSundaram wrote:
Hi All,
I was trying to style an text field, when an error occurs for that text
field.
I thought, errorStyleClass would help..But, It was just throwing me the
following error message..
"Unable to find setter method for attribute: errorStyleClass&qu
Hi All,
I was trying to style an text field, when an error occurs for that text
field.
I thought, errorStyleClass would help..But, It was just throwing me the
following error message..
"Unable to find setter method for attribute: errorStyleClass"
I was wondering, if this has anything
hen you need to add the error message to
ActionMessages using the same property name:
ActionMessages errors = new ActionMessages();
if (myForm.getCustno() == null) {
errors.add("custno", new ActionMessage("custno.missing"));
}
Obviously you also need to set up you
At 3:26 PM +0100 10/17/05, [EMAIL PROTECTED] wrote:
Hi there,
I would like to make use of the errorStyleClass functionality with
validation errors that I create in my action class using
ActionMessages. I guess there must be a way of letting the
ActionMessage object know which UI field it is
Hi there,
I would like to make use of the errorStyleClass functionality with
validation errors that I create in my action class using ActionMessages. I
guess there must be a way of letting the ActionMessage object know which UI
field it is relating to.
Has anyone managed to do this without
our validation.xml
Niall
- Original Message -
From: "BLOOMFIELD, TOM F [AG-Contractor/1000]"
<[EMAIL PROTECTED]>
To:
Sent: Thursday, January 27, 2005 7:07 PM
Subject: errorStyleClass and lists
>
> Per suggestion, I'm posting a follow up to see if an
ot; is different than the name of my html:text,
"foo[xxx].day", the errorStyleClass is never used - the two don't match.
As pointed out by Niall (see bug link above), I could use a different method
name to get/set the list in my actionform. However, doing this causes a
BeanUtils
re.
2. And I couldn't make the new errorStyleClass feature work using
"struts-html-el"
Anyone could tell if there's any workaround or fix here?
Thanks in advance!
Alvim
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
55 matches
Mail list logo