Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.2
-
Fix Version/s: EE-4.2.0.GA
-
Component/s: ACE-Components
-
Labels:None
-
Environment:ace
-
Assignee Priority:P2
Description
showcase example ajax:-> ajax.Advanced.xhtml
use the following markup:-
{code}
<ace:panel id="ajaxAdvancedSettings" header="Settings" style="width: 100%;">
<h:panelGrid width="60%" columns="1" cellpadding="20" cellspacing="20">
<ace:radioButtons id="radioButton" header="Update values: "
value="#{ajaxAdvancedBean.event}">
<ace:ajax render="ajaxAdvancedSlider" />
<f:selectItem itemLabel="after releasing handle" itemValue="slideEnd" />
<f:selectItem itemLabel="as the handle is moved" itemValue="slide" />
</ace:radioButtons>
<ace:checkboxButton id="updateCelsius" value="#{ajaxAdvancedBean.updateCelsius}"
label="Update Celsius value: " labelPosition="left">
<ace:ajax render="ajaxAdvancedSlider" />
</ace:checkboxButton>
<ace:checkboxButton id="updateFahrenheit" label="Update Fahrenheit value: "
labelPosition="left"
value="#{ajaxAdvancedBean.updateFahrenheit}">
<f:ajax render="ajaxAdvancedSlider" />
</ace:checkboxButton>
<ace:checkboxButton id="updateKelvin" label="Update Kelvin value: "
labelPosition="left"
value="#{ajaxAdvancedBean.updateKelvin}">
<f:ajax render="ajaxAdvancedSlider" />
</ace:checkboxButton>
</h:panelGrid>
</ace:panel>
{code}
see attached screen shot for rendering alignment problem
use the following markup:-
{code}
<ace:panel id="ajaxAdvancedSettings" header="Settings" style="width: 100%;">
<h:panelGrid width="60%" columns="1" cellpadding="20" cellspacing="20">
<ace:radioButtons id="radioButton" header="Update values: "
value="#{ajaxAdvancedBean.event}">
<ace:ajax render="ajaxAdvancedSlider" />
<f:selectItem itemLabel="after releasing handle" itemValue="slideEnd" />
<f:selectItem itemLabel="as the handle is moved" itemValue="slide" />
</ace:radioButtons>
<ace:checkboxButton id="updateCelsius" value="#{ajaxAdvancedBean.updateCelsius}"
label="Update Celsius value: " labelPosition="left">
<ace:ajax render="ajaxAdvancedSlider" />
</ace:checkboxButton>
<ace:checkboxButton id="updateFahrenheit" label="Update Fahrenheit value: "
labelPosition="left"
value="#{ajaxAdvancedBean.updateFahrenheit}">
<f:ajax render="ajaxAdvancedSlider" />
</ace:checkboxButton>
<ace:checkboxButton id="updateKelvin" label="Update Kelvin value: "
labelPosition="left"
value="#{ajaxAdvancedBean.updateKelvin}">
<f:ajax render="ajaxAdvancedSlider" />
</ace:checkboxButton>
</h:panelGrid>
</ace:panel>
{code}
see attached screen shot for rendering alignment problem
I don't see what's the issue here. All elements inside the ace:radioButtons div container are set to be center-aligned. We have this CSS definition:
If anyone wishes to align all the items to the left, then they can easily override that rule with "text-align: left;".