myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Bohmann (JIRA)" <...@myfaces.apache.org>
Subject [jira] Resolved: (TOBAGO-546) selectOneChoice should support coloring and images
Date Thu, 15 May 2008 18:27:55 GMT

     [ https://issues.apache.org/jira/browse/TOBAGO-546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bernd Bohmann resolved TOBAGO-546.
----------------------------------

    Resolution: Fixed

> selectOneChoice should support coloring and images
> --------------------------------------------------
>
>                 Key: TOBAGO-546
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-546
>             Project: MyFaces Tobago
>          Issue Type: Improvement
>          Components: Core, Themes
>    Affects Versions: 1.0.12, 1.0.16
>            Reporter: Rainer Rohloff
>            Assignee: Bernd Bohmann
>             Fix For: 1.0.17, 1.0.13
>
>
> Example:
> <html>
> <style>
> option.information, select.information {
> 	background-position:left middle;
> 	background-repeat:no-repeat;
> 	padding-left:17px;
> 	background-image: url(./information.gif);
> 	color: yellow;
> 	vertical-align:middle;
> }
> option.hinweis, select.hinweis {
> 	background-position:left middle;
> 	background-repeat:no-repeat;
> 	padding-left:17px;
> 	background-image: url(./hinweis.gif);
> 	color:blue;
> 	vertical-align:middle;
> }
> </style>
> <body>
> <select size="1" class="hinweis">
>   <option class="information" id="eintrag1">Eintrag 1
>   <option class="hinweis" id="eintrag2" >Eintrag 2
>   <option class="hinweis" id="eintrag3" >Eintrag 3
>   <option class="information" id="eintrag4" >Eintrag 4
>   <option class="information" id="eintrag5" >Eintrag 5
> </select>
> </body>
> </html>
> The API from SelectItem must then support markup:
> public SelectItem(Object value,
>                   String label,
>                   String description,
>                   String image,
>                   String markup)
> if "image" is set, then <option > can be rendered as 
>   <option class="hinweis" style="background-image=url('<image>')">Eintrag
3
> restrictions:
> * MS IE does not rendert the pictures - however the different colors.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message