Simplica

ProductsLearnPurchaseSupportDemoDownload
  [Search] Search   [Recent Topics] Recent Topics  
e:radio does not render correctly when f:selectItems have values booleans
Forum Index -> General
Author Message
catalinpetrisor


Joined: 07/06/2009 08:52:04
Messages: 11
Online

Hello,

I am trying to use e:radio component in following configuration:



The component gets rendered in HTML like this:

<...>
<label id="...">
<input id="..." name="..." value="value" type="radio" />
"Yes"
</label>
<label id="...">
<input id="..." name="..." type="radio" checked="checked"/>
"No"
</label>
<...>

Shouldn't the e:radio render the value attributes for inputs as
value="true" and value="false", respectively?

Thanks.
Catalin P.
adina_mihai
Simplica Team

Joined: 04/01/2007 00:00:00
Messages: 183
Offline

To render the value attributes for inputs as value="true" and value="false" you have to put
<f:selectItem itemLabel="Yes" itemValue="true" />

instead of

<f:selectItem itemLabel="Yes" itemValue="#{true}" />

Adina
adina_mihai
Simplica Team

Joined: 04/01/2007 00:00:00
Messages: 183
Offline

Hi Catalin!

We've also fixed the problem for your configuration. Send an email to support@simplica.com if you need this fix.

Adina
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.7 © JForum Team
Home   |  News   |  Contact   |  About   |  License   |  Privacy   |  Documentation
Copyright © 2009 Simplica Corporation. All rights reserved.