struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zarar Siddiqi" <zar...@gmail.com>
Subject Re: css_xhtml theme - <br>
Date Thu, 06 Dec 2007 00:38:59 GMT
A much easier way to do this would be to apply a CSS style like this:

div.wwgrp br {
  display: none;
}

See this old blog post:

http://arsenalist.com/2007/04/11/struts-2-form-control-templates/



On Dec 5, 2007 9:14 AM, Angel Gruev <a.gruev@gmail.com> wrote:
> Thank you both for the quick response.
> It worked!
>
> 2007/11/28, Eric Martin <eric@ericmmartin.com>:
>
> >
> >
> > Agreed...the <br /> is irritating ;)
> >
> > Just to expand on what Dave said...
> >
> > 1) extract the template/simple/inputtransferselect.ftl file from the
> > struts
> > jar.
> > 2) put the file in your classpath, we have it in
> > WEB-INF/classes/template/simple
> > 3) edit the file and remove the <br />. For example:
> > change: <label for="leftTitle">${parameters.leftTitle}</label><br
/>
> > to: <label for="leftTitle">${ parameters.leftTitle}</label>
> >
> > HTH
> >
> > -Eric
> >
> >
> > newton.dave wrote:
> > >
> > > You can customize the templates by extracting them
> > > from the jar and putting them in your classpath. The
> > > <br/> thing is irritating.
> > >
> > > d.
> > >
> > > --- Angel Gruev <a.gruev@gmail.com> wrote:
> > >
> > >> Hello,
> > >>
> > >> I want to use the css_xhtml theme of struts 2. The
> > >> problem is that by
> > >> default, the <s:textfield ../> results in HTML of
> > >> Label and input field that
> > >> have <br/> between them.
> > >> This makes it hard to align the lable and the input
> > >> field on the same line
> > >> using css.
> > >> Why is this <br/> tag there?! An how can be removed
> > >> easily?
> > >>
> > >> Thanks!
> > >> Angel Gruev
> > >> Dreamix Ltd < www.dreamix.eu>
> > >>
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> > >
> >
> > --
> > View this message in context:
> > http://www.nabble.com/css_xhtml-theme---%3Cbr%3E-tf4889135.html#a13995673
> > Sent from the Struts - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > 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