can i use the simple theme just for the form, and use the usuall ones of all other forms?

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 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?



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]

Reply via email to