JBoss Rich Faces SVN: r1957 - in trunk/sandbox: ui/scrollable-grid/src/main/java/org/richfaces/component and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-07-31 11:58:04 -0400 (Tue, 31 Jul 2007)
New Revision: 1957
Added:
trunk/sandbox/api/src/main/java/org/richfaces/component/ScriptExportable.java
Modified:
trunk/sandbox/ui/scrollable-grid/src/main/java/org/richfaces/component/UIScrollableGrid.java
trunk/sandbox/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java
Log:
added ScriptExportable interface
Added: trunk/sandbox/api/src/main/java/org/richfaces/component/ScriptExportable.java
===================================================================
--- trunk/sandbox/api/src/main/java/org/richfaces/component/ScriptExportable.java (rev 0)
+++ trunk/sandbox/api/src/main/java/org/richfaces/component/ScriptExportable.java 2007-07-31 15:58:04 UTC (rev 1957)
@@ -0,0 +1,13 @@
+/**
+ *
+ */
+package org.richfaces.component;
+
+/**
+ * @author Maksim Kaszynski
+ *
+ */
+public interface ScriptExportable {
+ public String getScriptVar();
+ public void setScriptVar(String s);
+}
Modified: trunk/sandbox/ui/scrollable-grid/src/main/java/org/richfaces/component/UIScrollableGrid.java
===================================================================
--- trunk/sandbox/ui/scrollable-grid/src/main/java/org/richfaces/component/UIScrollableGrid.java 2007-07-31 15:32:25 UTC (rev 1956)
+++ trunk/sandbox/ui/scrollable-grid/src/main/java/org/richfaces/component/UIScrollableGrid.java 2007-07-31 15:58:04 UTC (rev 1957)
@@ -45,7 +45,7 @@
*
*/
-public abstract class UIScrollableGrid extends UIDataAdaptor implements AjaxComponent, Sortable, Selectable{
+public abstract class UIScrollableGrid extends UIDataAdaptor implements AjaxComponent, Sortable, Selectable, ScriptExportable{
public static final String COMPONENT_TYPE = "org.richfaces.component.ScrollableGrid";
Modified: trunk/sandbox/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java
===================================================================
--- trunk/sandbox/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java 2007-07-31 15:32:25 UTC (rev 1956)
+++ trunk/sandbox/ui/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java 2007-07-31 15:58:04 UTC (rev 1957)
@@ -420,8 +420,14 @@
}
public String getJavaScriptVarName(FacesContext context, UIScrollableGrid grid) {
- String id = grid.getBaseClientId(context);
- return "window.Richfaces_ScrollableGrid_" + id.replaceAll("[^A-Za-z0-9_]", "_");
+
+ String name = grid.getScriptVar();
+ if (name == null) {
+ String id = grid.getBaseClientId(context);
+ name = "Richfaces_ScrollableGrid_" + id.replaceAll("[^A-Za-z0-9_]", "_");
+ }
+
+ return "window." + name;
}
public String createClientScrollableGrid(FacesContext context, UIScrollableGrid grid) {
17 years, 5 months
JBoss Rich Faces SVN: r1956 - in trunk/sandbox/ui/message/src/test/java/org/richfaces: renderer and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-07-31 11:32:25 -0400 (Tue, 31 Jul 2007)
New Revision: 1956
Added:
trunk/sandbox/ui/message/src/test/java/org/richfaces/renderer/
trunk/sandbox/ui/message/src/test/java/org/richfaces/renderer/RichMessageRendererTest.java
trunk/sandbox/ui/message/src/test/java/org/richfaces/renderer/RichMessagesRendererTest.java
Log:
test for message and messages renderers
Added: trunk/sandbox/ui/message/src/test/java/org/richfaces/renderer/RichMessageRendererTest.java
===================================================================
--- trunk/sandbox/ui/message/src/test/java/org/richfaces/renderer/RichMessageRendererTest.java (rev 0)
+++ trunk/sandbox/ui/message/src/test/java/org/richfaces/renderer/RichMessageRendererTest.java 2007-07-31 15:32:25 UTC (rev 1956)
@@ -0,0 +1,105 @@
+/**
+ *
+ */
+package org.richfaces.renderer;
+
+import java.util.Iterator;
+import java.util.List;
+
+import javax.faces.application.FacesMessage;
+import javax.faces.component.html.HtmlInputText;
+import javax.faces.component.html.HtmlOutputText;
+
+import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
+import org.richfaces.component.html.HtmlRichMessage;
+
+import com.gargoylesoftware.htmlunit.html.HtmlElement;
+import com.gargoylesoftware.htmlunit.html.HtmlPage;
+
+/**
+ * @author Anton Belevich
+ *
+ */
+public class RichMessageRendererTest extends AbstractAjax4JsfTestCase {
+
+ HtmlRichMessage message = null;
+ HtmlOutputText text = null;
+ HtmlInputText input = null;
+
+ public RichMessageRendererTest(String name) {
+ super(name);
+ }
+
+ public void setUp() throws Exception {
+
+ super.setUp();
+
+ input = (HtmlInputText)application.createComponent("javax.faces.HtmlInputText");
+ input.setId("select");
+
+ text = (HtmlOutputText)application.createComponent("javax.faces.HtmlOutputText");
+ text.setValue("Error");
+
+ message = (HtmlRichMessage)application.createComponent("org.richfaces.component.RichMessage");
+ message.setId("message");
+ message.setFor("select");
+ message.setErrorClass("errorClass");
+ message.setErrorLabelClass("errorLabelClass");
+ message.setErrorMarkerClass("errorMarkerClass");
+ message.getFacets().put("errorFacet", text);
+
+ FacesMessage facesMessage = new FacesMessage();
+
+ facesMessage.setDetail("TEST detail");
+ facesMessage.setSummary("TEST summary");
+ facesMessage.setSeverity(FacesMessage.SEVERITY_ERROR);
+ facesContext.addMessage("select",facesMessage);
+
+ facesContext.getViewRoot().getChildren().add(input);
+ facesContext.getViewRoot().getChildren().add(message);
+
+ }
+
+ public void testRenderStyle() throws Exception {
+ HtmlPage page = renderView();
+ assertNotNull(page);
+ List links = page.getDocumentElement().getHtmlElementsByTagName("link");
+ assertNotNull(links);
+ HtmlElement link = (HtmlElement)links.get(0);
+ assertTrue(link.getAttributeValue("href").contains("/org/richfaces/renderkit/html/css/msg.css"));
+ }
+
+ public void testRendererMessage() throws Exception{
+
+ HtmlPage page = renderView();
+ assertNotNull(page);
+
+ HtmlElement span = page.getHtmlElementById(message.getClientId(facesContext));
+
+ assertNotNull(span);
+ assertEquals("span", span.getNodeName().toLowerCase());
+
+ String classAttr = span.getAttributeValue("class");
+ assertTrue(classAttr.contains("rich-message"));
+ assertTrue(classAttr.contains("errorClass"));
+
+ Iterator childIter= span.getChildElementsIterator();
+
+ for (; childIter.hasNext();) {
+ HtmlElement name = (HtmlElement) childIter.next();
+ assertNotNull(name);
+ assertEquals(name.getNodeName().toLowerCase(), "span");
+
+ classAttr = name.getAttributeValue("class");
+ assertTrue(classAttr.contains("rich-message-label")|| classAttr.contains("rich-message-marker") );
+ assertTrue(classAttr.contains("errorLabelClass")||classAttr.contains("errorMarkerClass") );
+ }
+
+ }
+
+ public void tearDown() throws Exception {
+ super.tearDown();
+ message = null;
+ }
+
+}
Added: trunk/sandbox/ui/message/src/test/java/org/richfaces/renderer/RichMessagesRendererTest.java
===================================================================
--- trunk/sandbox/ui/message/src/test/java/org/richfaces/renderer/RichMessagesRendererTest.java (rev 0)
+++ trunk/sandbox/ui/message/src/test/java/org/richfaces/renderer/RichMessagesRendererTest.java 2007-07-31 15:32:25 UTC (rev 1956)
@@ -0,0 +1,273 @@
+/**
+ *
+ */
+package org.richfaces.renderer;
+
+import java.util.Iterator;
+import java.util.List;
+
+import javax.faces.application.FacesMessage;
+import javax.faces.component.html.HtmlInputText;
+import javax.faces.component.html.HtmlOutputText;
+
+import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
+import org.richfaces.component.html.HtmlRichMessages;
+
+import com.gargoylesoftware.htmlunit.html.HtmlElement;
+import com.gargoylesoftware.htmlunit.html.HtmlPage;
+
+/**
+ * @author Anton Belevich
+ *
+ */
+public class RichMessagesRendererTest extends AbstractAjax4JsfTestCase {
+
+ HtmlRichMessages messages1 = null;
+ HtmlRichMessages messages2 = null;
+
+ HtmlInputText input1 = null;
+ HtmlInputText input2 = null;
+ HtmlInputText input3 = null;
+ HtmlInputText input4 = null;
+
+ HtmlOutputText output1 = null;
+ HtmlOutputText output2 = null;
+ HtmlOutputText output3 = null;
+ HtmlOutputText output4 = null;
+
+
+ public RichMessagesRendererTest(String name) {
+ super(name);
+ }
+
+ public void testRenderStyle() throws Exception {
+ HtmlPage page = renderView();
+ assertNotNull(page);
+ List links = page.getDocumentElement().getHtmlElementsByTagName("link");
+ assertNotNull(links);
+ HtmlElement link = (HtmlElement)links.get(0);
+ assertTrue(link.getAttributeValue("href").contains("/org/richfaces/renderkit/html/css/msgs.css"));
+ }
+
+ public void tearDown() throws Exception {
+ super.tearDown();
+ messages1 = null;
+ messages2 = null;
+ }
+
+ public void setUp() throws Exception {
+
+ super.setUp();
+
+ input1 = (HtmlInputText)application.createComponent("javax.faces.HtmlInputText");
+ input1.setId("input1");
+
+ output1 = (HtmlOutputText)application.createComponent("javax.faces.HtmlOutputText");
+ output1.setId("output1");
+ output1.setValue("output1");
+
+ input2 = (HtmlInputText)application.createComponent("javax.faces.HtmlInputText");
+ input2.setId("input2");
+
+ output2 = (HtmlOutputText)application.createComponent("javax.faces.HtmlOutputText");
+ output2.setId("output2");
+ output2.setValue("output2");
+
+ input3 = (HtmlInputText)application.createComponent("javax.faces.HtmlInputText");
+ input3.setId("input3");
+
+ output3 = (HtmlOutputText)application.createComponent("javax.faces.HtmlOutputText");
+ output3.setId("output3");
+ output3.setValue("output3");
+
+ input4 = (HtmlInputText)application.createComponent("javax.faces.HtmlInputText");
+ input4.setId("input4");
+
+ output4 = (HtmlOutputText)application.createComponent("javax.faces.HtmlOutputText");
+ output4.setId("output4");
+ output4.setValue("output4");
+
+ messages1 = (HtmlRichMessages)application.createComponent("org.richfaces.component.RichMessages");
+ messages1.setId("message1");
+ messages1.setLayout("table");
+ messages1.setErrorClass("errorClass");
+ messages1.setWarnClass("warnClass");
+ messages1.setFatalClass("fatalClass");
+ messages1.setInfoClass("infoClass");
+
+ messages1.setErrorLabelClass("errorLabelClass");
+ messages1.setWarnLabelClass("errorLabelClass");
+ messages1.setFatalLabelClass("errorLabelClass");
+ messages1.setInfoLabelClass("errorLabelClass");
+
+ messages1.setErrorMarkerClass("errorMarkerClass");
+ messages1.setFatalMarkerClass("fatalMarkerClass");
+ messages1.setInfoMarkerClass("infoMarkerClass");
+ messages1.setWarnMarkerClass("warnMarkerClass");
+
+ messages1.getFacets().put("errorMarker", output1);
+ messages1.getFacets().put("warnMarker", output2);
+ messages1.getFacets().put("fatalMarker", output3);
+ messages1.getFacets().put("infoMarker", output4);
+
+ messages1.setTitle("TITLE");
+
+ messages2 = (HtmlRichMessages)application.createComponent("org.richfaces.component.RichMessages");
+ messages2.setId("message2");
+ messages2.setLayout("list");
+
+ messages2.setErrorClass("errorClass");
+ messages2.setWarnClass("warnClass");
+ messages2.setFatalClass("fatalClass");
+ messages2.setInfoClass("infoClass");
+
+ messages2.setErrorLabelClass("errorLabelClass");
+ messages2.setWarnLabelClass("errorLabelClass");
+ messages2.setFatalLabelClass("errorLabelClass");
+ messages2.setInfoLabelClass("errorLabelClass");
+
+ messages2.setErrorMarkerClass("errorMarkerClass");
+ messages2.setFatalMarkerClass("fatalMarkerClass");
+ messages2.setInfoMarkerClass("infoMarkerClass");
+ messages2.setWarnMarkerClass("warnMarkerClass");
+
+ messages2.getFacets().put("errorMarker", output1);
+ messages2.getFacets().put("warnMarker", output2);
+ messages2.getFacets().put("fatalMarker", output3);
+ messages2.getFacets().put("infoMarker", output4);
+
+ FacesMessage facesMessage = new FacesMessage();
+
+ facesMessage.setDetail("TEST detail");
+ facesMessage.setSummary("TEST summary");
+ facesMessage.setSeverity(FacesMessage.SEVERITY_ERROR);
+ facesContext.addMessage("input1",facesMessage);
+
+ facesMessage.setDetail("TEST detail");
+ facesMessage.setSummary("TEST summary");
+ facesMessage.setSeverity(FacesMessage.SEVERITY_FATAL);
+ facesContext.addMessage("input2",facesMessage);
+
+ facesMessage.setDetail("TEST detail");
+ facesMessage.setSummary("TEST summary");
+ facesMessage.setSeverity(FacesMessage.SEVERITY_INFO);
+ facesContext.addMessage("input3",facesMessage);
+
+ facesMessage.setDetail("TEST detail");
+ facesMessage.setSummary("TEST summary");
+ facesMessage.setSeverity(FacesMessage.SEVERITY_WARN);
+ facesContext.addMessage("input4",facesMessage);
+
+ facesContext.getViewRoot().getChildren().add(input1);
+ facesContext.getViewRoot().getChildren().add(input2);
+ facesContext.getViewRoot().getChildren().add(input3);
+ facesContext.getViewRoot().getChildren().add(input4);
+ facesContext.getViewRoot().getChildren().add(messages1);
+ facesContext.getViewRoot().getChildren().add(messages2);
+
+ }
+
+ public void testRendererMessage() throws Exception{
+ HtmlPage page = renderView();
+ assertNotNull(page);
+
+ HtmlElement table = page.getHtmlElementById(messages1.getClientId(facesContext));
+ HtmlElement dl = page.getHtmlElementById(messages2.getClientId(facesContext));
+
+ assertNotNull(table);
+ assertNotNull(dl);
+
+ assertEquals(table.getNodeName().toLowerCase(), "table");
+ assertEquals(dl.getNodeName().toLowerCase(), "dl");
+
+ String classAttr = table.getAttributeValue("class");
+ assertTrue(classAttr.contains("rich-message"));
+
+ classAttr = dl.getAttributeValue("class");
+ assertTrue(classAttr.contains("rich-message"));
+
+ // test rendering component mockup for list layout
+ Iterator dtIter= dl.getChildElementsIterator();
+ for (; dtIter.hasNext();) {
+
+ HtmlElement dt = (HtmlElement) dtIter.next();
+ assertNotNull(dt);
+ assertEquals(dt.getNodeName().toLowerCase(), "dt");
+ classAttr = dt.getAttributeValue("class");
+ assertTrue(classAttr.contains("errorClass")||classAttr.contains("fatalClass")
+ ||classAttr.contains("warnClass") ||classAttr.contains("infoClass"));
+
+ Iterator spanIter= dt.getChildElementsIterator();
+ for (; spanIter.hasNext();) {
+
+ HtmlElement span = (HtmlElement) dtIter.next();
+ assertNotNull(span);
+ assertEquals(dt.getNodeName().toLowerCase(), "span");
+
+ classAttr = dt.getAttributeValue("class");
+
+ assertTrue(classAttr.contains("rich-messages-label") || classAttr.contains("rich-massages-marker"));
+
+ assertTrue(classAttr.contains("errorLabelClass") || classAttr.contains("infoLabelClass")
+ || classAttr.contains("fatalLabelClass") || classAttr.contains("warnLabelClass")
+ || classAttr.contains("errorMarkerClass") || classAttr.contains("fatalMarkerClass")
+ || classAttr.contains("infoMarkerClass") || classAttr.contains("warnMarkerClass"));
+
+ String title = dt.getAttributeValue("title");
+
+ assertEquals("TITLTE", title);
+ }
+ }
+
+ // test rendering component mockup for table layout
+ HtmlElement tbody = (HtmlElement)table.getFirstChild();
+
+ assertNotNull(tbody);
+ assertEquals(tbody.getNodeName().toLowerCase(), "tbody");
+
+ Iterator trIter = tbody.getChildIterator();
+
+ for (;trIter.hasNext();) {
+
+ HtmlElement tr = (HtmlElement) trIter.next();
+
+ assertNotNull(tr);
+ assertEquals(tr.getNodeName().toLowerCase(), "tr");
+
+ classAttr = tr.getAttributeValue("class");
+
+ assertTrue(classAttr.contains("errorClass")||classAttr.contains("fatalClass")
+ ||classAttr.contains("warnClass") ||classAttr.contains("infoClass"));
+
+ Iterator tdIter = tr.getChildIterator();
+ for (;tdIter.hasNext();) {
+
+ HtmlElement td = (HtmlElement)tdIter.next();
+ assertNotNull(td);
+ assertEquals(td.getNodeName().toLowerCase(), "td");
+
+ if(td.getAttributeValue("class")!= null){
+ classAttr = td.getAttributeValue("class");
+
+ assertTrue(classAttr.contains("rich-messages-marker"));
+ assertTrue(classAttr.contains("errorMarkerClass") || classAttr.contains("fatalMarkerClass")
+ || classAttr.contains("infoMarkerClass") || classAttr.contains("warnMarkerClass"));
+ }
+
+ HtmlElement elem = (HtmlElement)td.getFirstChild();
+ assertNotNull(elem);
+
+ if(elem.getNodeName().equals("span")){
+ classAttr = tr.getAttributeValue("class");
+
+ assertTrue(classAttr.contains("rich-messages-label"));
+ assertTrue(classAttr.contains("errorLabelClass") || classAttr.contains("infoLabelClass")
+ || classAttr.contains("fatalLabelClass") || classAttr.contains("warnLabelClass"));
+
+ String title = elem.getAttributeValue("title");
+ assertEquals("TITLTE", title);
+ }
+ }
+ }
+ }
+}
17 years, 5 months
JBoss Rich Faces SVN: r1955 - trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-07-31 11:31:06 -0400 (Tue, 31 Jul 2007)
New Revision: 1955
Modified:
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java
Log:
Modified: trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java
===================================================================
--- trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java 2007-07-31 15:01:19 UTC (rev 1954)
+++ trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java 2007-07-31 15:31:06 UTC (rev 1955)
@@ -111,13 +111,16 @@
if((layout != null) && (layout.equals("table"))){
writer.startElement("table", uiMessages);
+
+ getUtils().writeAttribute(writer,HTML.id_ATTRIBUTE ,uiMessages.getClientId(context));
getUtils().writeAttribute(writer, HTML.cellpadding_ATTRIBUTE, "0");
getUtils().writeAttribute(writer, HTML.cellspacing_ATTRIBUTE, "0");
-
+
renderComponentOuterStyles(uiMessages, context, writer);
writer.startElement("tbody", uiMessages);
+
isWroteTable = true;
}else if((layout != null) && (layout.equals("iterator"))){
@@ -129,21 +132,22 @@
}
writer.startElement(HTML.SPAN_ELEM, uiMessages);
+ getUtils().writeAttribute(writer,HTML.id_ATTRIBUTE ,uiMessages.getClientId(context));
renderComponentOuterStyles(uiMessages, context, writer);
-
+
isIteratorLayout = true;
}else if((layout != null) && (layout.equals("list"))){
writer.startElement("dl", uiMessages);
+ getUtils().writeAttribute(writer,HTML.id_ATTRIBUTE ,uiMessages.getClientId(context));
+
renderComponentOuterStyles(uiMessages, context, writer);
-
+
}
-
- getUtils().writeAttribute(writer,HTML.id_ATTRIBUTE ,uiMessages.getClientId(context));
-
+
if(log.isInfoEnabled()){
log.info("start render messages");
}
17 years, 5 months
JBoss Rich Faces SVN: r1954 - in trunk/ui/tabPanel/src/main: java/org/richfaces/renderkit and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: dbiatenia
Date: 2007-07-31 11:01:19 -0400 (Tue, 31 Jul 2007)
New Revision: 1954
Modified:
trunk/ui/tabPanel/src/main/config/component/tabPanel.xml
trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabPanelRendererBase.java
trunk/ui/tabPanel/src/main/templates/tabPanel.jspx
Log:
headerAlignment bugfix
Modified: trunk/ui/tabPanel/src/main/config/component/tabPanel.xml
===================================================================
--- trunk/ui/tabPanel/src/main/config/component/tabPanel.xml 2007-07-31 15:00:56 UTC (rev 1953)
+++ trunk/ui/tabPanel/src/main/config/component/tabPanel.xml 2007-07-31 15:01:19 UTC (rev 1954)
@@ -110,7 +110,7 @@
<property>
<name>headerAlignment</name>
<classname>java.lang.String</classname>
- <description>Sets tab headers alignment. It can be "left", "center" or "right".
+ <description>Sets tab headers alignment. It can be "left" or "right".
"left" is used by default
</description>
<defaultvalue>"left"</defaultvalue>
Modified: trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabPanelRendererBase.java
===================================================================
--- trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabPanelRendererBase.java 2007-07-31 15:00:56 UTC (rev 1953)
+++ trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabPanelRendererBase.java 2007-07-31 15:01:19 UTC (rev 1954)
@@ -188,13 +188,14 @@
int count = 0;
String ret = "1";
for (Iterator iter = tabPanel.getTabs(); iter.hasNext();){
+ iter.next();
count++;
}
//center tabs group
ret = String.valueOf(count*2 - 1);
return ret;
}
-
+/*
public void writeColgroups(FacesContext context, UITabPanel tabPanel) throws IOException{
StringBuffer buff = new StringBuffer();
if("left".equals(tabPanel.getHeaderAlignment())){
@@ -207,7 +208,7 @@
context.getResponseWriter().write(buff.toString());
//return null;
}
-
+*/
public void encodeTabs(FacesContext context, UITabPanel tabPanel) throws IOException {
ComponentVariables componentVariables = ComponentsVariableResolver.getVariables(this, tabPanel);
Modified: trunk/ui/tabPanel/src/main/templates/tabPanel.jspx
===================================================================
--- trunk/ui/tabPanel/src/main/templates/tabPanel.jspx 2007-07-31 15:00:56 UTC (rev 1953)
+++ trunk/ui/tabPanel/src/main/templates/tabPanel.jspx 2007-07-31 15:01:19 UTC (rev 1954)
@@ -33,22 +33,39 @@
<tbody>
<tr>
- <td align="#{component.headerAlignment}"><f:call
- name="utils.encodeBeginFormIfNessesary" />
+ <td>
+ <f:call name="utils.encodeBeginFormIfNessesary" />
<table border="0" cellpadding="0" cellspacing="0">
-
+ <jsp:scriptlet>
+ <![CDATA[
+ String alignment = (String) component.getAttributes().get("headerAlignment");
+ if("left".equals(alignment)){
+ ]]>
+ </jsp:scriptlet>
+ <colgroup/>
+ <colgroup span="#{this:getTabsCount(context, component)}"></colgroup>
+ <colgroup width="100%"/>
+ <jsp:scriptlet>
+ <![CDATA[
+ } else {
+ ]]>
+ </jsp:scriptlet>
+ <colgroup width="100%"/>
+ <colgroup span="#{this:getTabsCount(context, component)}"></colgroup>
+ <colgroup/>
+ <jsp:scriptlet>
+ <![CDATA[
+ }
+ ]]>
+ </jsp:scriptlet>
+
<tr>
<td class="dr-bottom-line">
<img src="#{spacer}" height="1" alt=""
border="0" style="#{this:encodeHeaderSpacing(context, component)}" />
</td>
<f:call name="encodeTabs" />
- <td class="dr-bottom-line" width="100%">
- <img src="#{spacer}" height="1" alt=""
- border="0" style="#{this:encodeHeaderSpacing(context, component)}" />
- </td>
-
</tr>
</table>
<div style="display: none;">
17 years, 5 months
JBoss Rich Faces SVN: r1953 - trunk/samples/tabPanelDemo/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: dbiatenia
Date: 2007-07-31 11:00:56 -0400 (Tue, 31 Jul 2007)
New Revision: 1953
Modified:
trunk/samples/tabPanelDemo/src/main/webapp/pages/index.jsp
Log:
headerAlignment bugfix
Modified: trunk/samples/tabPanelDemo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/tabPanelDemo/src/main/webapp/pages/index.jsp 2007-07-31 14:09:51 UTC (rev 1952)
+++ trunk/samples/tabPanelDemo/src/main/webapp/pages/index.jsp 2007-07-31 15:00:56 UTC (rev 1953)
@@ -74,7 +74,7 @@
</h:form>
<h:form>
- <tabs:tabPanel valueChangeListener="#{bean.valueChanged}" headerSpacing="5px" immediate="false" tabClass="tabClass" activeTabClass="italic" width="100%" switchType="client" binding="#{bean.tabPanel}" value="#{bean.currentTab}" id="tab_panel" headerAlignment="right">
+ <tabs:tabPanel valueChangeListener="#{bean.valueChanged}" headerSpacing="5px" immediate="false" tabClass="tabClass" activeTabClass="italic" width="100%" switchType="client" binding="#{bean.tabPanel}" value="#{bean.currentTab}" id="tab_panel" headerAlignment="left">
<f:valueChangeListener type="org.richfaces.TabChangeListener"/>
<tabs:tab onclick="alert('\\'Canon\\' tab clicked');" disabled="#{bean.disabledTabName == 'canon'}" name="canon" label="Canon" switchType="server">
17 years, 5 months
JBoss Rich Faces SVN: r1952 - trunk/sandbox/ui/calendar/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-07-31 10:09:51 -0400 (Tue, 31 Jul 2007)
New Revision: 1952
Modified:
trunk/sandbox/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
Log:
MonthLabels & MonthLabelsShort contained empty entries - fixed
Modified: trunk/sandbox/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
===================================================================
--- trunk/sandbox/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-07-31 14:01:34 UTC (rev 1951)
+++ trunk/sandbox/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-07-31 14:09:51 UTC (rev 1952)
@@ -266,9 +266,9 @@
}
}
- private static String[] shiftDates(int firstDayOfWeek, int minimum,
+ private static String[] shiftDates(int minimum,
int maximum, String[] labels) {
- if (minimum == 0) {
+ if (minimum == 0 && (maximum - minimum + 1 == labels.length)) {
return labels;
}
@@ -286,7 +286,6 @@
Calendar cal = calendar.getCalendar();
int maximum = cal.getActualMaximum(Calendar.DAY_OF_WEEK);
int minimum = cal.getActualMinimum(Calendar.DAY_OF_WEEK);
- int firstDayOfWeek = cal.getFirstDayOfWeek();
// .getInstance(locale) changed to new DateFormatSymbols(locale) by
// Alexej Kushunin ;
@@ -295,7 +294,7 @@
.getWeekDayLabels());
if (weekDayLabels == null) {
weekDayLabels = symbols.getWeekdays();
- weekDayLabels = shiftDates(firstDayOfWeek, minimum, maximum,
+ weekDayLabels = shiftDates(minimum, maximum,
weekDayLabels);
}
@@ -303,19 +302,26 @@
.getWeekDayLabelsShort());
if (weekDayLabelsShort == null) {
weekDayLabelsShort = symbols.getShortWeekdays();
- weekDayLabelsShort = shiftDates(firstDayOfWeek, minimum, maximum,
+ weekDayLabelsShort = shiftDates(minimum, maximum,
weekDayLabelsShort);
}
+ int monthMax = cal.getActualMaximum(Calendar.MONTH);
+ int monthMin = cal.getActualMinimum(Calendar.MONTH);
+
String[] monthLabels = ComponentUtil.asArray(calendar.getMonthLabels());
if (monthLabels == null) {
monthLabels = symbols.getMonths();
+ monthLabels = shiftDates(monthMin, monthMax,
+ monthLabels);
}
String[] monthLabelsShort = ComponentUtil.asArray(calendar
.getMonthLabelsShort());
if (monthLabelsShort == null) {
monthLabelsShort = symbols.getShortMonths();
+ monthLabelsShort = shiftDates(monthMin, monthMax,
+ monthLabelsShort);
}
map.put(WEEK_DAY_LABELS, weekDayLabels);
17 years, 5 months
JBoss Rich Faces SVN: r1951 - trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-07-31 10:01:34 -0400 (Tue, 31 Jul 2007)
New Revision: 1951
Modified:
trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
Log:
Added user class rich-sb-int-sel.
Modified: trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
===================================================================
--- trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2007-07-31 13:59:59 UTC (rev 1950)
+++ trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2007-07-31 14:01:34 UTC (rev 1951)
@@ -29,8 +29,8 @@
this.options = options || {};
this.options.param = this.options.param || this.element.name;
- this.options.selectedClass = this.options.selectedClass
- || "dr-sb-int-sel";
+ this.options.selectedClasses = (this.options.selectedClass
+ || "dr-sb-int-sel rich-sb-int-sel").split(' ');
this.options.selectValueClass = this.options.selectValueClass
|| " ";
this.options.tokens = $A(options.tokens) || [];
@@ -444,7 +444,8 @@
+ this.prevIndex);
if (this.prevIndex != this.index) {
var entry = this.getEntry(this.index);
- Element.addClassName(entry, this.options.selectedClass);
+ for (var i = 0; i < this.options.selectedClasses.length; i++)
+ Element.addClassName(entry, this.options.selectedClasses[i]);
var cells = document.getElementsByClassName("dr-sb-cell-padding" , entry);
for (var i = 0; i < cells.length; i++) {
@@ -477,7 +478,8 @@
for (var i = 0; i < prevCells.length; i++) {
Element.removeClassName(prevCells[i], this.options.selectValueClass);
}
- Element.removeClassName(prevEntry, this.options.selectedClass);
+ for (var i = 0; i < this.options.selectedClasses.length; i++)
+ Element.removeClassName(prevEntry, this.options.selectedClasses[i]);
}
}
}
17 years, 5 months
JBoss Rich Faces SVN: r1950 - in trunk/ui/tabPanel/src/main: resources/org/richfaces/renderkit/html/css and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: dbiatenia
Date: 2007-07-31 09:59:59 -0400 (Tue, 31 Jul 2007)
New Revision: 1950
Modified:
trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabHeaderRendererBase.java
trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabPanelRendererBase.java
trunk/ui/tabPanel/src/main/resources/org/richfaces/renderkit/html/css/tabPanel.xcss
trunk/ui/tabPanel/src/main/templates/tab.jspx
trunk/ui/tabPanel/src/main/templates/tabHeader.jspx
trunk/ui/tabPanel/src/main/templates/tabPanel.jspx
Log:
RF-508, z-index bugfix
Modified: trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabHeaderRendererBase.java
===================================================================
--- trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabHeaderRendererBase.java 2007-07-31 13:59:33 UTC (rev 1949)
+++ trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabHeaderRendererBase.java 2007-07-31 13:59:59 UTC (rev 1950)
@@ -101,7 +101,7 @@
String width = tab.getLabelWidth();
- style += ";height : 100%; position : relative; z-index : 2;";
+ style += ";height : 100%; position : relative;";
if (width != null) {
style += " width: " + getUtils().encodePctOrPx(width) + ";";
}
Modified: trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabPanelRendererBase.java
===================================================================
--- trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabPanelRendererBase.java 2007-07-31 13:59:33 UTC (rev 1949)
+++ trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabPanelRendererBase.java 2007-07-31 13:59:59 UTC (rev 1950)
@@ -51,8 +51,8 @@
public class TabPanelRendererBase extends org.ajax4jsf.renderkit.HeaderResourcesRendererBase {
public final static String ACTIVE_CELL_CLASSES = "dr-tbpnl-tbcell-act rich-tabhdr-cell-active";
- public final static String INACTIVE_CELL_CLASSES = "dr-tbpnl-tbcell-inact rich-tabhdr-cell-inactive";
- public final static String DISABLED_CELL_CLASSES = "dr-tbpnl-tbcell-dsbld rich-tabhdr-cell-disabled";
+ public final static String INACTIVE_CELL_CLASSES = "dr-tbpnl-tbcell-inact dr-bottom-line rich-tabhdr-cell-inactive";
+ public final static String DISABLED_CELL_CLASSES = "dr-tbpnl-tbcell-dsbld dr-bottom-line rich-tabhdr-cell-disabled";
protected Class getComponentClass() {
return UITabPanel.class;
@@ -184,6 +184,30 @@
return getUtils().getValueAsString(context, tabPanel);
}
+ public String getTabsCount(FacesContext context, UITabPanel tabPanel){
+ int count = 0;
+ String ret = "1";
+ for (Iterator iter = tabPanel.getTabs(); iter.hasNext();){
+ count++;
+ }
+ //center tabs group
+ ret = String.valueOf(count*2 - 1);
+ return ret;
+ }
+
+ public void writeColgroups(FacesContext context, UITabPanel tabPanel) throws IOException{
+ StringBuffer buff = new StringBuffer();
+ if("left".equals(tabPanel.getHeaderAlignment())){
+ buff.append("<colgroup/>").append("<colgroup span=\"" + getTabsCount(context, tabPanel) + "\"/>").append("<colgroup width=\"100%\"/>");
+ } else if("center".equals(tabPanel.getHeaderAlignment())){
+ buff.append("<colgroup width=\"33%\"/>").append("<colgroup width=\"34%\" span=\"" + getTabsCount(context, tabPanel) + "\"/>").append("<colgroup width=\"33%\"/>");
+ } else {
+ buff.append("<colgroup width=\"100%\"/>").append("<colgroup span=\"" + getTabsCount(context, tabPanel) + "\"/>").append("<colgroup/>");
+ }
+ context.getResponseWriter().write(buff.toString());
+ //return null;
+ }
+
public void encodeTabs(FacesContext context, UITabPanel tabPanel) throws IOException {
ComponentVariables componentVariables = ComponentsVariableResolver.getVariables(this, tabPanel);
Modified: trunk/ui/tabPanel/src/main/resources/org/richfaces/renderkit/html/css/tabPanel.xcss
===================================================================
--- trunk/ui/tabPanel/src/main/resources/org/richfaces/renderkit/html/css/tabPanel.xcss 2007-07-31 13:59:33 UTC (rev 1949)
+++ trunk/ui/tabPanel/src/main/resources/org/richfaces/renderkit/html/css/tabPanel.xcss 2007-07-31 13:59:59 UTC (rev 1950)
@@ -30,7 +30,7 @@
}
.dr-tb-inact td.dr-tb-bd {
- padding: 3px 5px 2px 5px;
+ padding: 3px 5px 0px 5px;
text-align: center;
cursor: pointer;
width: auto;
@@ -38,7 +38,7 @@
}
.dr-tb-inact-ovr td.dr-tb-bd {
- padding: 3px 5px 2px 5px;
+ padding: 3px 5px 0px 5px;
text-align: center;
cursor: pointer;
width: auto;
@@ -46,7 +46,7 @@
}
.dr-tb-dsbld td.dr-tb-bd {
- padding: 3px 5px 2px 5px;
+ padding: 3px 5px 0px 5px;
text-align: center;
cursor: default;
width: auto;
@@ -59,8 +59,12 @@
<f:verbatim>
.dr-tbpnl-cntnt {
- border-width: 1px;
- border-style: solid;
+ border-bottom-width: 1px;
+ border-bottom-style: solid;
+ border-left-width: 1px;
+ border-left-style: solid;
+ border-right-width: 1px;
+ border-right-style: solid;
vertical-align: top;
}
@@ -70,7 +74,7 @@
}
.dr-tbpnl-tb{
- padding : 2px 10px 2px 10px;
+ padding : 2px 10px 0px 10px;
text-align: center;
}
@@ -83,25 +87,15 @@
border-width: 1px;
border-style: solid;
padding : 3px 10px 4px 10px;
- border-bottom : 0px;
background-repeat: repeat-x;
background-position: top;
+ border-bottom-width: 0px;
cursor : default;
}
-.dr-tbpnl-tb-inact {
- border-width: 1px;
- border-style: solid;
- border-bottom : 0px;
- background-repeat: repeat-x;
- background-position: top;
- cursor : default;
-}
-
.dr-tbpnl-tb-dsbld {
border-width: 1px;
border-style: solid;
- border-bottom : 0px;
background-repeat: repeat-x;
background-position: top;
cursor : default;
@@ -109,7 +103,8 @@
.dr-tbpnl-tbcell-dsbld, .dr-tbpnl-tbcell-inact {
padding-top: 2px;
- padding-bottom: 1px;
+
+
}
</f:verbatim>
@@ -123,9 +118,6 @@
<u:style name="color" skin="generalTextColor"/>
<u:style name="border-color" skin="subBorderColor"/>
</u:selector>
- <u:selector name=".dr-tbpnl-tb-inact">
- <u:style name="border-color" skin="subBorderColor"/>
- </u:selector>
<u:selector name=".dr-tbpnl-tb-dsbl">
<u:style name="border-color" skin="subBorderColor"/>
<u:style name="color" skin="tabDisabledTextColor"/>
@@ -158,7 +150,9 @@
<u:selector name=".dr-tbpnl-cntnt">
<u:style name="background-color" skin="generalBackgroundColor"/>
<u:style name="color" skin="generalTextColor"/>
- <u:style name="border-color" skin="panelBorderColor"/>
+ <u:style name="border-bottom-color" skin="panelBorderColor"/>
+ <u:style name="border-right-color" skin="panelBorderColor"/>
+ <u:style name="border-left-color" skin="panelBorderColor"/>
<u:style name="font-size" skin="generalSizeFont"/>
<u:style name="font-family" skin="generalFamilyFont"/>
</u:selector>
@@ -182,8 +176,25 @@
<u:style name="background-image">
<f:resource f:key="org.richfaces.renderkit.images.TabGradientB" />
</u:style>
+ <u:style name="border-color" skin="subBorderColor"/>
+
+ <u:style name="border-width" value="1px"/>
+ <u:style name="border-style" value="solid"/>
+ <u:style name="background-repeat" value="repeat-x"/>
+ <u:style name="background-position" value="top"/>
+ <u:style name="border-bottom-width" value="0px"/>
+ <u:style name="cursor" value="default"/>
+
</u:selector>
-
+
+
+ <u:selector name=".dr-bottom-line">
+ <u:style name="border-bottom-color" skin="panelBorderColor"/>
+ <u:style name="border-bottom-style" value="solid"/>
+ <u:style name="border-bottom-width" value="1px"/>
+ </u:selector>
+
+
<u:selector name=".dr-tbpnl-tb-act">
<u:style name="background-image">
<f:resource f:key="org.richfaces.renderkit.images.TabGradientA" />
Modified: trunk/ui/tabPanel/src/main/templates/tab.jspx
===================================================================
--- trunk/ui/tabPanel/src/main/templates/tab.jspx 2007-07-31 13:59:33 UTC (rev 1949)
+++ trunk/ui/tabPanel/src/main/templates/tab.jspx 2007-07-31 13:59:59 UTC (rev 1950)
@@ -16,7 +16,7 @@
<td id="#{clientId}" style="position: relative; #{this:getTabDisplay(context, component)}"
height="100%">
- <table border="0" cellpadding="10" cellspacing="0" width="100%" class="dr-tbpnl-cntnt-pstn rich-tabpanel-content-position" style="position : relative; z-index: 1;">
+ <table border="0" cellpadding="10" cellspacing="0" width="100%" class="dr-tbpnl-cntnt-pstn rich-tabpanel-content-position" style="position : relative;">
<tr>
<td class="dr-tbpnl-cntnt rich-tabpanel-content #{component.pane.attributes['contentClass']} #{component.attributes['styleClass']}"
style="#{component.attributes['contentStyle']}; #{component.attributes['style']}"
Modified: trunk/ui/tabPanel/src/main/templates/tabHeader.jspx
===================================================================
--- trunk/ui/tabPanel/src/main/templates/tabHeader.jspx 2007-07-31 13:59:33 UTC (rev 1949)
+++ trunk/ui/tabPanel/src/main/templates/tabHeader.jspx 2007-07-31 13:59:59 UTC (rev 1950)
@@ -35,7 +35,7 @@
</table>
</td>
- <td><img src="#{spacer}" height="1" alt="" border="0" style="#{this:encodeHeaderSpacing(context, component)}"/></td>
+ <td class="dr-bottom-line"><img src="#{spacer}" height="1" alt="" border="0" style="#{this:encodeHeaderSpacing(context, component)}"/></td>
</f:root>
Modified: trunk/ui/tabPanel/src/main/templates/tabPanel.jspx
===================================================================
--- trunk/ui/tabPanel/src/main/templates/tabPanel.jspx 2007-07-31 13:59:33 UTC (rev 1949)
+++ trunk/ui/tabPanel/src/main/templates/tabPanel.jspx 2007-07-31 13:59:59 UTC (rev 1950)
@@ -36,13 +36,19 @@
<td align="#{component.headerAlignment}"><f:call
name="utils.encodeBeginFormIfNessesary" />
- <table border="0" cellpadding="0" cellspacing="0">
+ <table border="0" cellpadding="0" cellspacing="0">
+
<tr>
- <td>
+ <td class="dr-bottom-line">
<img src="#{spacer}" height="1" alt=""
border="0" style="#{this:encodeHeaderSpacing(context, component)}" />
</td>
- <f:call name="encodeTabs" />
+ <f:call name="encodeTabs" />
+ <td class="dr-bottom-line" width="100%">
+ <img src="#{spacer}" height="1" alt=""
+ border="0" style="#{this:encodeHeaderSpacing(context, component)}" />
+ </td>
+
</tr>
</table>
<div style="display: none;">
17 years, 5 months
JBoss Rich Faces SVN: r1949 - trunk/samples/tabPanelDemo/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: dbiatenia
Date: 2007-07-31 09:59:33 -0400 (Tue, 31 Jul 2007)
New Revision: 1949
Modified:
trunk/samples/tabPanelDemo/src/main/webapp/pages/index.jsp
Log:
RF-508, z-index bugfix
Modified: trunk/samples/tabPanelDemo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/tabPanelDemo/src/main/webapp/pages/index.jsp 2007-07-31 12:57:59 UTC (rev 1948)
+++ trunk/samples/tabPanelDemo/src/main/webapp/pages/index.jsp 2007-07-31 13:59:33 UTC (rev 1949)
@@ -37,17 +37,18 @@
}
.rich-tabhdr-cell-inactive, .rich-tabhdr-cell-disabled {
- padding-bottom: 2px;
+
}
.rich-tabpanel-content-position {
- top: -2px;
+ top: 0px;
}
-
+/*
.rich-tabpanel-content {
border-width: 2px;
border-color:red;
}
+*/
</style>
</head>
<body bgcolor="white">
@@ -73,7 +74,7 @@
</h:form>
<h:form>
- <tabs:tabPanel valueChangeListener="#{bean.valueChanged}" headerSpacing="5px" immediate="false" tabClass="tabClass" activeTabClass="italic" width="100%" switchType="client" binding="#{bean.tabPanel}" value="#{bean.currentTab}" id="tab_panel">
+ <tabs:tabPanel valueChangeListener="#{bean.valueChanged}" headerSpacing="5px" immediate="false" tabClass="tabClass" activeTabClass="italic" width="100%" switchType="client" binding="#{bean.tabPanel}" value="#{bean.currentTab}" id="tab_panel" headerAlignment="right">
<f:valueChangeListener type="org.richfaces.TabChangeListener"/>
<tabs:tab onclick="alert('\\'Canon\\' tab clicked');" disabled="#{bean.disabledTabName == 'canon'}" name="canon" label="Canon" switchType="server">
@@ -118,7 +119,7 @@
digital camera delivers professional quality results with every use.
</f:verbatim>
</tabs:tab>
- <tabs:tab disabled="#{bean.disabledTabName == 'olympus'}" name="olympus" label="Olympus Olympus" labelWidth="60px">
+ <tabs:tab disabled="#{bean.disabledTabName == 'olympus'}" name="olympus" label="Olympus" labelWidth="60px">
<h:panelGrid columns="2" width="100%">
<h:graphicImage value="/pages/Olympus_EVOLT_E-500.jpg" alt=""/>
<h:panelGroup>
17 years, 5 months
JBoss Rich Faces SVN: r1948 - trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-07-31 08:57:59 -0400 (Tue, 31 Jul 2007)
New Revision: 1948
Modified:
trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Grid.js
Log:
http://jira.jboss.com/jira/browse/RF-359
Modified: trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Grid.js
===================================================================
--- trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Grid.js 2007-07-31 12:22:59 UTC (rev 1947)
+++ trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Grid.js 2007-07-31 12:57:59 UTC (rev 1948)
@@ -91,6 +91,11 @@
this.currentScrollPos = 0;
this.controlCreated = true;
this.updateLayout();
+
+ if (ClientUILib.isIE && !ClientUILib.isIE7) {
+ var grid = this;
+ setTimeout(function() {grid.updateLayout()}, 50);
+ }
},
updateLayout: function() {
if(!this.controlCreated || this.getHeight()==0) {
17 years, 5 months