struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mead Lai <laiqi...@gmail.com>
Subject Re: [S2] How to add a custom parameter to an existing Struts UI Tag?
Date Sat, 09 Oct 2010 22:26:26 GMT
Hi Burton,

I see, that would be the problem cause that ERROR.
You have to download the struts2 source, and take a look at the both
org.apache.struts2.views.jsp.ui.CheckboxListTag
and org.apache.struts2.components,CheckboxList.
I think you must add the attribute "breakCount" into CheckboxList.java, then
it will work, maybe.
I am not sure about that, I am also got the same problem, when creating
myself Tag. Good Luck.

Regards,
Mead


On Sun, Oct 10, 2010 at 6:04 AM, Burton Rhodes <burtonrhodes@gmail.com>wrote:

> I ended up not having to create a new tag.  I simply overrode the
> current template (template/simple/checkboxlist.tld) to do what I
> wanted.
>
> Essentially I just did what it says on this page entitled "Creating
> And Applying Your Own Themes For Struts 2 Tags":
>
> http://struts.apache.org/2.2.1/docs/struts-2-themes.html
>
>
> On Sat, Oct 9, 2010 at 4:58 PM, Mead Lai <laiqinyi@gmail.com> wrote:
> > Hello all,
> >
> > I am trying to create my struts2 UI-Tag too.
> > Did you change the
> >  org.apache.struts2.views.jsp.ui.CheckboxListTag
> > to your rewritten the Tag-class and the correspond CheckboxList yet?
> >
> >
> > Regards,
> > Mead
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message