myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From laredotornado <laredotorn...@gmail.com>
Subject Why is t:selectOneRadio ignoring style, styleClass, and disabledClass?
Date Wed, 09 Dec 2009 15:17:02 GMT

Hi,

I'm using MyFaces 1.1.6 with Tomahawk 1.1.9.  I have this element on my page
...				

				<t:selectOneRadio required="true"
validator="#{domeTour.validateSpecialNeeds}" style="background-color:blue;"
styleClass="specialNeedsRadio" enabledClass="specialNeedsRadio"
id="domeTourSpecial_Needs" value="#{domeTour.specialNeeds}" layout="spread" 
onclick="showHideSpecialNeeds('domeTourSpecialNeedsDiv', this.value);">
					<f:selectItem itemValue="Yes" itemLabel="Yes" />
					<f:selectItem itemValue="No" itemLabel="No" />
				</t:selectOneRadio>
				<t:radio for="domeTourSpecial_Needs" index="0"></t:radio>
				<t:radio for="domeTourSpecial_Needs" index="1"></t:radio>
    		  
but sadly, what is rendered is below.

                <label><input id="tourType:domeTourSpecial_Needs:0"
type="radio" name="tourType:domeTourSpecial_Needs" value="Yes"
onclick="showHideSpecialNeeds('domeTourSpecialNeedsDiv', this.value);"
/>&#160;Yes</label>

    			<label><input id="tourType:domeTourSpecial_Needs:1" type="radio"
name="tourType:domeTourSpecial_Needs" checked="checked" value="No"
onclick="showHideSpecialNeeds('domeTourSpecialNeedsDiv', this.value);"
/>&#160;No</label>


I say "sadly" because notice that the style and class elements disappeared. 
Where did they go and how can I get them back?  Thanks, - Dave

-- 
View this message in context: http://old.nabble.com/Why-is-t%3AselectOneRadio-ignoring-style%2C-styleClass%2C-and-disabledClass--tp26711863p26711863.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Mime
View raw message