You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by laredotornado <la...@gmail.com> on 2009/12/09 16:17:02 UTC

Why is t:selectOneRadio ignoring style, styleClass, and disabledClass?

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.