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
-
Workaround Description:can use <h:outputLabel> with components but that defeats the purpose of the label attribute.
Description
using showcase example for ajax:-
ajax.xhtml
modify markup to use label and labelPosition for input components like the following:-
{code}
<ace:panel id="ajaxInput" header="Input" style="width: 100%;">
<h:panelGrid width="80%" columns="2" cellpadding="20" cellspacing="20">
<ace:textEntry id="ajaxText" value="#{ajaxBean.textValue}"
label="TextEntry:" labelPosition="left">
<ace:ajax disabled="#{!ajaxBean.ajaxEnabled}" />
</ace:textEntry>
<h:outputText id="textEntryOutput" value="#{ajaxBean.textValue}"/>
<ace:simpleSelectOneMenu id="ajaxSelect" value="#{ajaxBean.selectValue}"
label="Simple Select Menu:" labelPosition="left">
<ace:ajax disabled="#{!ajaxBean.ajaxEnabled}" />
<f:selectItem itemLabel="item1" itemValue="item1" />
<f:selectItem itemLabel="item2" itemValue="item2" />
<f:selectItem itemLabel="item3" itemValue="item3" />
<f:selectItem itemLabel="item4" itemValue="item4" />
<f:selectItem itemLabel="item5" itemValue="item5" />
</ace:simpleSelectOneMenu>
<h:outputText id="menuOutput" value="#{ajaxBean.selectValue}"/>
<ace:sliderEntry id="ajaxSlider"
axis="x"
label="Slider:"
labelPosition="left"
clickableRail="true"
length="300"
min="0"
max="100"
value="#{ajaxBean.sliderValue}">
<ace:ajax disabled="#{!ajaxBean.ajaxEnabled}" />
</ace:sliderEntry>
<h:outputText id="sliderOutput" value="#{ajaxBean.sliderValue}"/>
<ace:pushButton id="submitButton" value="Submit" rendered="#{!ajaxBean.ajaxEnabled}" />
<h:outputText value="" />
</h:panelGrid>
</ace:panel>
{code}
the sliderEntry does not align correctly. See attached image.
ajax.xhtml
modify markup to use label and labelPosition for input components like the following:-
{code}
<ace:panel id="ajaxInput" header="Input" style="width: 100%;">
<h:panelGrid width="80%" columns="2" cellpadding="20" cellspacing="20">
<ace:textEntry id="ajaxText" value="#{ajaxBean.textValue}"
label="TextEntry:" labelPosition="left">
<ace:ajax disabled="#{!ajaxBean.ajaxEnabled}" />
</ace:textEntry>
<h:outputText id="textEntryOutput" value="#{ajaxBean.textValue}"/>
<ace:simpleSelectOneMenu id="ajaxSelect" value="#{ajaxBean.selectValue}"
label="Simple Select Menu:" labelPosition="left">
<ace:ajax disabled="#{!ajaxBean.ajaxEnabled}" />
<f:selectItem itemLabel="item1" itemValue="item1" />
<f:selectItem itemLabel="item2" itemValue="item2" />
<f:selectItem itemLabel="item3" itemValue="item3" />
<f:selectItem itemLabel="item4" itemValue="item4" />
<f:selectItem itemLabel="item5" itemValue="item5" />
</ace:simpleSelectOneMenu>
<h:outputText id="menuOutput" value="#{ajaxBean.selectValue}"/>
<ace:sliderEntry id="ajaxSlider"
axis="x"
label="Slider:"
labelPosition="left"
clickableRail="true"
length="300"
min="0"
max="100"
value="#{ajaxBean.sliderValue}">
<ace:ajax disabled="#{!ajaxBean.ajaxEnabled}" />
</ace:sliderEntry>
<h:outputText id="sliderOutput" value="#{ajaxBean.sliderValue}"/>
<ace:pushButton id="submitButton" value="Submit" rendered="#{!ajaxBean.ajaxEnabled}" />
<h:outputText value="" />
</h:panelGrid>
</ace:panel>
{code}
the sliderEntry does not align correctly. See attached image.
Issue Links
- blocks
-
ICE-11258 Replace h: components in Showcase with ace: versions
- Closed
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Judy Guglielmin
created issue -
Judy Guglielmin
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | ace slider label issue.png [ 22537 ] |
Judy Guglielmin
made changes -
Ken Fyten
made changes -
Assignee | Arturo Zambrano [ artzambrano ] | |
Fix Version/s | EE-4.2.0.GA [ 13071 ] | |
Assignee Priority | P2 [ 10011 ] |
Arturo Zambrano
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Security | Private [ 10001 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |