Search
Recent Topics
e:radio does not render correctly when f:selectItems have values booleans
Forum Index
->
General
Author
Message
02/19/2010 07:09:20
Subject:
e:radio does not render correctly when f:selectItems have values booleans
catalinpetrisor
Joined: 07/06/2009 08:52:04
Messages: 11
Online
Hello,
I am trying to use e:radio component in following configuration:
<e:radio value="#{MyBB.booleanProperty}"> <f:selectItem itemLabel="Yes" itemValue="#{true}" /> <f:selectItem itemLabel="No" itemValue="#{false}" /> </e:radio>
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.
02/22/2010 06:43:38
Subject:
Re:e:radio does not render correctly when f:selectItems have values booleans
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
03/04/2010 06:28:06
Subject:
Re:e:radio does not render correctly when f:selectItems have values booleans
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:
Select a forum
General
DataTable
Tree
Menu
Tab
Layout
Window
Calendar/Date Input
Lookup/Suggest Input
Powered by
JForum 2.1.7
©
JForum Team
Home
|
News
|
Contact
|
About
|
License
|
Privacy
|
Documentation
Copyright © 2009 Simplica Corporation. All rights reserved.