Skip to content

Commit

Permalink
#593 assign the classes "bf-required", "bf-error" to the SelectOneMen…
Browse files Browse the repository at this point in the history
…u again
  • Loading branch information
stephanrauh committed Dec 25, 2016
1 parent 46cd087 commit 676134f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void encodeBegin(FacesContext context, UIComponent component) throws IOEx
(appendingAddOnFacet != null), menu);

addPrependingAddOnToInputGroup(context, rw, prependingAddOnFacet, (prependingAddOnFacet != null), menu);
renderSelectTag(context, rw, clientId, menu);
renderSelectTag(context, rw, clientId, menu, outerClientId);
addAppendingAddOnToInputGroup(context, rw, appendingAddOnFacet, (appendingAddOnFacet != null), menu);

closeInputGroupForAddOn(rw, hasAddon);
Expand Down Expand Up @@ -255,10 +255,10 @@ protected void closeInputGroupForAddOn(ResponseWriter rw, final boolean hasAddon
}

/** Renders the select tag. */
protected void renderSelectTag(FacesContext context, ResponseWriter rw, String clientId, SelectOneMenu menu)
protected void renderSelectTag(FacesContext context, ResponseWriter rw, String clientId, SelectOneMenu menu, String outerClientId)
throws IOException {
renderSelectTag(rw, menu);
renderSelectTagAttributes(rw, clientId, menu);
renderSelectTagAttributes(rw, clientId, menu, outerClientId);
renderOptions(context, rw, menu);

renderInputTagEnd(rw);
Expand Down Expand Up @@ -444,7 +444,7 @@ protected void renderSelectTag(ResponseWriter rw, SelectOneMenu menu) throws IOE
* @throws IOException
* may be thrown by the response writer
*/
protected void renderSelectTagAttributes(ResponseWriter rw, String clientId, SelectOneMenu menu)
protected void renderSelectTagAttributes(ResponseWriter rw, String clientId, SelectOneMenu menu, String outerClientId)
throws IOException {
rw.writeAttribute("id", clientId, null);
//Tooltip.generateTooltip(FacesContext.getCurrentInstance(), menu, rw);
Expand All @@ -463,7 +463,7 @@ protected void renderSelectTagAttributes(ResponseWriter rw, String clientId, Sel
if (cssClass != null) {
sb.append(" ").append(cssClass);
}
sb.append(" ").append(getErrorAndRequiredClass(menu, clientId));
sb.append(" ").append(getErrorAndRequiredClass(menu, outerClientId));

s = sb.toString().trim();
if (s != null && s.length() > 0) {
Expand Down

0 comments on commit 676134f

Please sign in to comment.