אלחנן מעין wrote:
can i use the simple theme just for the form, and use the usuall ones of
all other forms?
Yes: you can specify the theme for the whole page in the s:head tag; for
a particular form in the s:form tag; or just for selected form inputs,
using any mix of themes you want within the form.
when you say render manualy what do you mean exactl? the current
beaviour is that error messages appear automtially which is nice, but
they appear rather misplaced, so placeing them where i want sounds
pretty good to me, i like the fact the lables turn red automatially will
i loose that, or can i link them to a specific and still have them lit
up? if so, and all i loose is just automatic placementm, then i'm fine
The simple theme doesn't do any of that, it just renders the form
inputs. Lables, error messages, enclosing markup, all has to be added
back in by you.
with that it would be like asp.net, becouse for real world app, i think
visual layouts can be tricky..
(btw what about double select? i asked this once i think, can i have the
2nd select appear next to first one instead of on the buttom? or do i
have to mess around with the template?
I'm not sure how/if the simple theme handles that tag, but this
definately sounds like a customized template would be the best option.
It's really not that hard :-)
L.
From: Laurie Harper <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: user@struts.apache.org
Subject: Re: [S2] alternate tag layouts?
Date: Thu, 10 May 2007 16:02:59 -0400
Well, there is another option which I should have mentioned: you can
use the 'simple' theme to get plain versions of the form inputs and
wrap whatever markup you want around them.
The downside of that is that you have to render labels, error messages
etc. manually, but it would give you the flexibility to create
whatever layout you want without writing new tags.
L.
××œ×—× ×Ÿ מעין wrote:
isn't there another way? like maybe wrapping them in tables (table
that has one row, once cell) and have the table boreder visible?
otherwise if i understand this right, i'll have to create new "Group"
tag, that will have nested regualr tags , sounds rather difficult to
me, becouse then i would have to create a new class implementing tag
interface, and attributes, and a new template.
From: Laurie Harper <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: user@struts.apache.org
Subject: Re: [S2] alternate tag layouts?
Date: Thu, 10 May 2007 04:13:36 -0400
×Âלח× ן מעין wrote:
hi..
i saw that all you do in struts tag is place them inside a form
tag, and it automatically renders them as a 2 columns table, but if
i want a diffeent layout? what if i want to have several controls
in one group ,and several controls in another group next to them
(like in frames) ?
In that case, you would either customize an existing theme or create
a new one:
http://struts.apache.org/2.x/docs/themes-and-templates.html
http://struts.apache.org/2.x/docs/extending-themes.html
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]