struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Evans <dsev...@berndtgroup.net>
Subject Re: fieldError tag
Date Tue, 03 Jun 2008 16:13:30 GMT
Yes, I have that working. In the case of a single field, I would like to
use a single tag to express the same thing, ie:
<s:fielderror field="myField" /

After looking at the source code it seems that what I am looking for is
not currently implemented.

Should I ask about this on the development list?

Dave


On Tue, 2008-06-03 at 08:20 -0300, Felipe Lorenz wrote:
> HUmmmm ok..
> 
> Did you try it:
> 
> <s:fielderror>
>           <s:param value="%{'field1'}" />
>           <s:param value="%{'field2'}" />
>     </s:fielderror>
>     <s:form .... >
>        ....
>     </s:form>
> 
> I found it on: http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/components/FieldError.html
> 
> Try, and tell us about it...
> 
> Have good day!
> 
> 
> On Mon, Jun 2, 2008 at 7:06 PM, David Evans <dsevans@berndtgroup.net> wrote:
> 
> > I'm sorry, my explanation was too brief.
> >
> > Given that the field "myField" has had a field error added to the
> > FieldErrors collection, I am wondering if there is a way to display it
> > on a jsp page that will be shorter than the documented:
> > <s:fielderror><s:param>myField</s:param></s:fielderror>
> >
> > I was hoping for something like:
> > <s:fielderror field="myField" />
> >
> >
> > Dave
> >
> > On Mon, 2008-06-02 at 17:59 -0300, Felipe Lorenz wrote:
> > > Well... in the Action class just add a field error to a especific field..
> > >
> > > On Mon, Jun 2, 2008 at 3:21 PM, David Evans <dsevans@berndtgroup.net>
> > wrote:
> > >
> > > > Hello,
> > > >
> > > > Is there any way to specify a particular field error like this:
> > > > <s:fielderror field="myField" />
> > > >
> > > > instead of:
> > > > <s:fielderror><s:param>myField</s:param></s:fielderror>
> > > >
> > > >
> > > > Thanks,
> > > >
> > > > Dave
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > 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
> >
> >


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


Mime
View raw message