Author: nbelaevski
Date: 2007-05-07 21:13:51 -0400 (Mon, 07 May 2007)
New Revision: 685
Modified:
trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/templates/popup.jspx
Log:
http://jira.jboss.com/jira/browse/RF-173 fixed
Modified:
trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
===================================================================
---
trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java 2007-05-08
00:48:08 UTC (rev 684)
+++
trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java 2007-05-08
01:13:51 UTC (rev 685)
@@ -628,6 +628,25 @@
}
/**
+ * Gets border size
+ *
+ * @param context {@link javax.faces.context.FacesContext}
+ * @param component {@link javax.faces.component.UIComponent}
+ * @return border size if set, 0 if none
+ */
+ public final String getBorder(final FacesContext context,
+ final UIComponent component) {
+
+ String border = (String) component.getAttributes().get("border");
+ if (border == null || border.length() == 0) {
+ return "0";
+ }
+
+ return border;
+ }
+
+
+ /**
* Gets context identifier.
*
* @param context {@link javax.faces.context.FacesContext}
Modified:
trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/templates/popup.jspx
===================================================================
---
trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/templates/popup.jspx 2007-05-08
00:48:08 UTC (rev 684)
+++
trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/templates/popup.jspx 2007-05-08
01:13:51 UTC (rev 685)
@@ -20,12 +20,15 @@
<f:call name="overflowSize"/>
</f:attribute>
- <table border="0">
+ <table>
<f:attribute name="id">
<f:call name="getContentId"/>
</f:attribute>
+ <f:attribute name="border">
+ <f:call name="getBorder"/>
+ </f:attribute>
<f:call
name="utils.encodePassThruWithExclusions">
- <f:parameter
value="onclick,onselect,width,height,rows"/>
+ <f:parameter
value="onclick,onselect,width,height,rows,border"/>
</f:call>
<tbody>
</tbody>