How to set different colors to the labels in <xforms:select1>

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How to set different colors to the labels in <xforms:select1>

Lakshmi Bhavani E

Hello all,

 

How to set different colors to the labels in <xforms:select1>?

 

 

The following code gives same color to all labels

Code:

 <xforms:select1  ref="instance('select1')/select1" appearance="compact" style="height:10em;width:15em;color:#000080;font-weight:bold;"> 

                    <xforms:item>

                        <xforms:label>My Favourites</xforms:label>

                        <xforms:value />

                        </xforms:item>

                        <xforms:itemset  nodeset="instance('profile')/UserProfile/MyFavorites/PerformersReference">

                        <xforms:label value="."/>

                        <xforms:value value="."/>

                        </xforms:itemset>

                        <xforms:itemset  nodeset="instance('profile')/UserProfile/MyFavorites/OrganizationReference">

                        <xforms:label value="."/>

                        <xforms:value value="."/>

                        </xforms:itemset>

                         <xforms:item>

                        <xforms:label>My Venues</xforms:label>

                        <xforms:value />

                        </xforms:item>

                                    <xforms:itemset  nodeset="instance('profile')/UserProfile/FavoriteVenues/VenueReference">

                                            <xforms:label value="."/>

                                            <xforms:value value="."/>

                                        </xforms:itemset>

                    </xforms:select1>

 

 

I am trying like this also

 

<xforms:item>

                        <xforms:label style="color:#000080">My Favourites</xforms:label>

                        <xforms:value />

                        </xforms:item>

                        <xforms:itemset  nodeset="instance('profile')/UserProfile/MyFavorites/PerformersReference">

                        <xforms:label value="." style="color:#00FF80"/>

                        <xforms:value value="."/>

                        </xforms:itemset>

 

 

But it’s not worked.

 

 

Please give an idea.

 

 

 

 

 

 

Thanks,

Bhavani

 

 

 

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: How to set different colors to the labels in <xforms:select1>

Alessandro Vernet
Administrator
Bhavani,

Lakshmi Bhavani E wrote
How to set different colors to the labels in <xforms:select1>?
You are generating a list with an <xforms:select1>. What would be the HTML markup you would use to have different colors for the items of a list?

Alex
Reply | Threaded
Open this post in threaded view
|

RE: Re: How to set different colors to the labels in <xforms:select1>

sunilmanyam
Hello Alex,

 I am attaching the markup we want to achieve please find it.

Thanks
Sunil

-----Original Message-----
From: Alessandro Vernet [mailto:[hidden email]]
Sent: Thursday, July 09, 2009 11:19 AM
To: [hidden email]
Subject: [ops-users] Re: How to set different colors to the labels in
<xforms:select1>


Bhavani,


Lakshmi Bhavani E wrote:
>
> How to set different colors to the labels in <xforms:select1>?
>

You are generating a list with an <xforms:select1>. What would be the HTML
markup you would use to have different colors for the items of a list?

Alex

-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog:
http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet
--
View this message in context:
http://www.nabble.com/How-to-set-different-colors-to-the-labels-in-%3Cxforms
%3Aselect1%3E-tp24266056p24404388.html
Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

colors.JPG (9K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Re: How to set different colors to the labels in <xforms:select1>

Alessandro Vernet
Administrator
Sunil,

sunilmanyam wrote
 I am attaching the markup we want to achieve please find it.
I see. Right now you can't. But I think it would make sense to to copy the class and style attributes you have on the <xforms:label> to the <xhtml:option>, which would allow you to do that. We'll think about it.

Alex
Reply | Threaded
Open this post in threaded view
|

RE: Re: How to set different colors to the labels in <xforms:select1>

Alessandro Vernet
Administrator
Sunil,

sunilmanyam wrote
 I am attaching the markup we want to achieve please find it.
A bit more on this: we are not planning to implement this in near future, but I don't think that doing this would be terribly complicated, in case you are fluent in Java and want to give it a shot. For tracking, the bug is:

http://forge.ow2.org/tracker/index.php?func=detail&aid=307251&group_id=168&atid=350207

Alex