Author: A.Skokov
Date: 2007-05-02 08:53:26 -0400 (Wed, 02 May 2007)
New Revision: 604
Modified:
trunk/richfaces/suggestionbox/src/main/config/component/suggestionbox.xml
trunk/richfaces/suggestionbox/src/main/java/org/richfaces/component/UISuggestionBox.java
trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
Log:
http://jira.jboss.com/jira/browse/RF-133 fixed
Modified: trunk/richfaces/suggestionbox/src/main/config/component/suggestionbox.xml
===================================================================
--- trunk/richfaces/suggestionbox/src/main/config/component/suggestionbox.xml 2007-05-02
02:04:34 UTC (rev 603)
+++ trunk/richfaces/suggestionbox/src/main/config/component/suggestionbox.xml 2007-05-02
12:53:26 UTC (rev 604)
@@ -123,13 +123,13 @@
</description>
</property>
-
+
<property>
<name>onsubmit</name>
<classname>java.lang.String</classname>
<description>JavaScript code for call before submission of ajax
event.</description>
</property>
-
+
<property>
<name>selectedClass</name>
<classname>java.lang.String</classname>
@@ -299,5 +299,14 @@
<classname>java.lang.String</classname>
<description>align</description>
</property>
+
+ <property>
+ <name>zindex</name>
+ <classname>int</classname>
+ <description>
+ Attribute is similar to the standard HTML attribute and can specify
window placement relative to the content.
+ </description>
+ <defaultvalue>200</defaultvalue>
+ </property>
</component>
</components>
Modified:
trunk/richfaces/suggestionbox/src/main/java/org/richfaces/component/UISuggestionBox.java
===================================================================
---
trunk/richfaces/suggestionbox/src/main/java/org/richfaces/component/UISuggestionBox.java 2007-05-02
02:04:34 UTC (rev 603)
+++
trunk/richfaces/suggestionbox/src/main/java/org/richfaces/component/UISuggestionBox.java 2007-05-02
12:53:26 UTC (rev 604)
@@ -249,7 +249,7 @@
/**
* Getter for submitted.
- *
+ *
* @return TRUE if submited
*/
public boolean isSubmitted() {
@@ -265,6 +265,10 @@
this.submitted = s;
}
+ public abstract int getZindex();
+
+ public abstract void setZindex(int zindex);
+
/* (non-Javadoc)
* @see
javax.faces.component.UIComponentBase#queueEvent(javax.faces.event.FacesEvent)
*/
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-02
02:04:34 UTC (rev 603)
+++
trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java 2007-05-02
12:53:26 UTC (rev 604)
@@ -192,8 +192,10 @@
}
writer.writeAttribute("class", clazz, "popupClass");
- StringBuffer style = new StringBuffer("display:none; z-index:
201;");
+ int zIndex = suggestionBox.getZindex();
+ StringBuffer style = new StringBuffer("display:none; z-index: " +
(zIndex + 1) + ";");
+
style.append(getSizeForStyle(component, "width", null, false));
style.append(getSizeForStyle(component, "height", null, false));
@@ -222,7 +224,7 @@
writer.writeAttribute("id", component.getClientId(context)
+ "_iframe", null);
writer.writeAttribute(
- "style",
"position:absolute;display:none;z-index:200;", null);
+ "style",
"position:absolute;display:none;z-index:" + zIndex + ";", null);
writer.endElement("iframe");
} else {
suggestionBox.setSubmitted(false);