Mike,

thank you very much for your help! 

Your example works perfect. I've changed the templates and added the class
tags to the controlheader and finished. 


Patrick





> -----Ursprüngliche Nachricht-----
> Von: Mike Cannon-Brookes [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 18. April 2002 00:12
> An: [EMAIL PROTECTED]
> Betreff: Re: [Webwork-user] Still problems with CSS "style" 
> tag support
> 
> 
> Why?
> 
> Why not just do something like:
> 
> <ui:textfield scheme="myscheme" ...>
>     <ui:param name="cssclass">my class</ui:param>
> </ui:textfield>
> 
> Then you can have different CSS classes on each page, and we 
> don't need to
> corrupt the tag library as is.
> 
> The templates given are _examples_, not production code - in 
> almost every
> situation they need to be modified IMHO.
> 
> -mike
> 
> On 18/4/02 12:34 AM, "Jason Carreira" 
> ([EMAIL PROTECTED]) penned the
> words:
> 
> > Yes, if you want every page to look different, this will be 
> a problem. Most
> > sites, though, would want only a few standardized ways of 
> showing any web
> > component. 
> > 
> >> -----Original Message-----
> >> From: Graf Patrick [mailto:[EMAIL PROTECTED]]
> >> Sent: Wednesday, April 17, 2002 9:51 AM
> >> To: Jason Carreira
> >> Cc: WebWork-User (E-Mail)
> >> Subject: AW: [Webwork-user] Still problems with CSS "style"
> >> tag support
> >> 
> >> 
> >> So that would mean, if I have a column width of 25% I write a
> >> new template,
> >> if I have a column width of 35% I write a new template, if
> >> every other row
> >> has a different background-color I write a new template.
> >> 
> >> IN MY OPINION THIS CAN NOT BE THE WAY!
> >> 
> >> If I insert the class tag to the template, it's static.
> >> If I want to have it dynamic, it must be set the same way as
> >> for example an
> >> "onchange" javascript tag.
> >> But this would need some changes in the connected java file.
> >> 
> >> 
> >> Patrick
> >> 
> >> 
> >> 
> >> 
> >>> -----Ursprüngliche Nachricht-----
> >>> Von: Jason Carreira [mailto:[EMAIL PROTECTED]]
> >>> Gesendet: Mittwoch, 17. April 2002 15:21
> >>> An: Graf Patrick; Rickard
> >>> Cc: WebWork-User (E-Mail)
> >>> Betreff: RE: [Webwork-user] Still problems with CSS "style"
> >>> tag support
> >>> 
> >>> 
> >>> Well, the easy way to do this right now, without having to
> >>> change any tags, etc., is to have your own set of templates.
> >>> That way, you can make it look however you like.
> >>> 
> >>>> -----Original Message-----
> >>>> From: Graf Patrick [mailto:[EMAIL PROTECTED]]
> >>>> Sent: Wednesday, April 17, 2002 4:51 AM
> >>>> To: 'Rickard'
> >>>> Cc: WebWork-User (E-Mail)
> >>>> Subject: [Webwork-user] Still problems with CSS "style"
> >> tag support
> >>>> 
> >>>> 
> >>>> Hi Rickard,
> >>>> 
> >>>> a few weeks ago, I mailed a request for adding a "CSS class"
> >>>> property to the
> >>>> templates. You may remember..
> >>>> 
> >>>> I'm now in the middle of my project and face a problem with this.
> >>>> I see no way to define any style like width, height,
> >>> background-color,
> >>>> text-align,... in the templates for the label column and/or
> >>> the value
> >>>> column.
> >>>> 
> >>>> My table should have a label width of 25% and the rest (75%)
> >>>> will be used
> >>>> for the value AND I DON'T want to add column headers.
> >>>> 
> >>>> Example
> >>>> <table>
> >>>> <ui:textfield name="'x'" ....
> >>>> <ui:textfield name="'x'" ....
> >>>> <ui:textfield name="'x'" ....
> >>>> <ui:textfield name="'x'" ....
> >>>> </table>
> >>>> 
> >>>> So my question is: How do I set column width, height,
> >>>> background-color,...
> >>>> within these templates.
> >>>> 
> >>>> My recommondation would be to add 2 new properties to the
> >>>> templates( named
> >>>> something like "labelStyle, valueStyle" or "labelTdStyle,
> >>>> valueTdStyle").
> >>>> 
> >>>> 
> >>>> What do you think?
> >>>> 
> >>>> 
> >>>> 
> >>>> Patrick
> >>>> 
> >>>> 
> >>>>  
> >>>> 
> >>>> 
> >>>>> -----Ursprüngliche Nachricht-----
> >>>>> Von: Rickard [mailto:[EMAIL PROTECTED]]
> >>>>> Gesendet: Freitag, 22. März 2002 13:30
> >>>>> An: Graf Patrick
> >>>>> Cc: [EMAIL PROTECTED]
> >>>>> Betreff: Re: [Webwork-user] CSS "style" tag support
> >>>>> 
> >>>>> 
> >>>>> Graf Patrick wrote:
> >>>>> 
> >>>>>> I would like to mention a nice feature I'm missing.
> >>>>>> It would be very helpful, if there is a possibility to use
> >>>>> the CSS "style"
> >>>>>> tag in the templates like text.jsp, password.jsp, ... as a
> >>>>> parameter.
> >>>>>> Especially to format the labels of them.
> >>>>> 
> >>>>> 
> >>>>> Hm.. the labels use specific CSS classes that you can use. Is
> >>>>> that what 
> >>>>> you're after?
> >>>>> 
> >>>>> /Rickard
> >>>>> 
> >>>>> -- 
> >>>>> Rickard Öberg
> >>>>> Author of "Mastering RMI"
> >>>>> Chief Architect, TheServerSide.com
> >>>>>    The Middleware Company - We Build Experts!
> >>>>> 
> >>>> 
> >>>> _______________________________________________
> >>>> Webwork-user mailing list
> >>>> [EMAIL PROTECTED]
> >>>> https://lists.sourceforge.net/lists/listinfo/webwork-user
> >>>> 
> >>> 
> >> 
> > 
> > _______________________________________________
> > Webwork-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/webwork-user
> 
> 
> _______________________________________________
> Webwork-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webwork-user
> 

_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to