JBoss Rich Faces SVN: r6708 - trunk/samples/inplaceSelect-sample/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-11 12:52:04 -0400 (Tue, 11 Mar 2008)
New Revision: 6708
Modified:
trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp
trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml
Log:
extend demo
Modified: trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp 2008-03-11 16:51:20 UTC (rev 6707)
+++ trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp 2008-03-11 16:52:04 UTC (rev 6708)
@@ -2,8 +2,12 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/inplaceSelect" prefix="is"%>
<html>
- <head>
- <title></title>
+ <head>
+ <title>InplaceSelect Sample</title>
+ <style>
+ .tab_example {width : 300px; border-top:1px solid #c0c0c0; border-left:1px solid #c0c0c0;}
+ .tab_example td{width : 150px; border-bottom:1px solid #c0c0c0; border-right:1px solid #c0c0c0;}
+ </style>
</head>
<body>
<f:view>
@@ -61,6 +65,7 @@
Fresh off his victory in the Florida primary, Sen. John McCain is poised to take another big prize. Former
<is:inplaceSelect
+ id="aaaa"
editEvent="#{bean.editEvent}"
maxSelectWidth="#{bean.maxSelectWidth}"
minSelectWidth="#{bean.minSelectWidth}"
@@ -69,13 +74,14 @@
controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
value="#{bean.value}"
listWidth="#{bean.listWidth}"
- selectWidth="100"
listHeight="#{bean.listHeight}"
selectOnEdit="#{bean.selectOnEdit}"
showControls="#{bean.showControls}"
editOnTab="#{bean.editOnTab}"
openOnEdit="#{bean.openOnEdit}"
- >
+ valueChangeListener="#{bean.valueChange}"
+ layout="inline"
+ >
<f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
<f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
<f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
@@ -90,7 +96,192 @@
<br/>
<h:outputText value="value is: #{bean.value}"></h:outputText>
- <h:commandButton value="submit"></h:commandButton>
+ <h:commandButton value="submit"></h:commandButton>
+
+
+ <table class="tab_example" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td>
+ <is:inplaceSelect
+ editEvent="#{bean.editEvent}"
+ maxSelectWidth="#{bean.maxSelectWidth}"
+ minSelectWidth="#{bean.minSelectWidth}"
+ defaultLabel="#{bean.defaultLabel}"
+ controlsVerticalPosition="#{bean.controlsPosition}"
+ controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
+ value="#{bean.value}"
+ listWidth="#{bean.listWidth}"
+ listHeight="#{bean.listHeight}"
+ selectOnEdit="#{bean.selectOnEdit}"
+ showControls="#{bean.showControls}"
+ editOnTab="#{bean.editOnTab}"
+ openOnEdit="#{bean.openOnEdit}"
+ valueChangeListener="#{bean.valueChange}"
+ layout="block"
+ >
+ <f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
+ <f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
+ <f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
+ <f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
+ <f:selectItem itemLabel="option 5" itemValue="Detroit"/>
+ <f:selectItem itemLabel="option 6" itemValue="Toronto"/>
+ <f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
+ <f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
+ <f:selectItem itemLabel="option 9" itemValue="New York"/>
+ </is:inplaceSelect>
+ </td>
+ <td>
+ <is:inplaceSelect
+ editEvent="#{bean.editEvent}"
+ maxSelectWidth="#{bean.maxSelectWidth}"
+ minSelectWidth="#{bean.minSelectWidth}"
+ defaultLabel="#{bean.defaultLabel}"
+ controlsVerticalPosition="#{bean.controlsPosition}"
+ controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
+ value="#{bean.value}"
+ listWidth="#{bean.listWidth}"
+ listHeight="#{bean.listHeight}"
+ selectOnEdit="#{bean.selectOnEdit}"
+ showControls="#{bean.showControls}"
+ editOnTab="#{bean.editOnTab}"
+ openOnEdit="#{bean.openOnEdit}"
+ valueChangeListener="#{bean.valueChange}"
+ layout="block"
+ >
+ <f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
+ <f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
+ <f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
+ <f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
+ <f:selectItem itemLabel="option 5" itemValue="Detroit"/>
+ <f:selectItem itemLabel="option 6" itemValue="Toronto"/>
+ <f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
+ <f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
+ <f:selectItem itemLabel="option 9" itemValue="New York"/>
+ </is:inplaceSelect>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <is:inplaceSelect
+ editEvent="#{bean.editEvent}"
+ maxSelectWidth="#{bean.maxSelectWidth}"
+ minSelectWidth="#{bean.minSelectWidth}"
+ defaultLabel="#{bean.defaultLabel}"
+ controlsVerticalPosition="#{bean.controlsPosition}"
+ controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
+ value="#{bean.value}"
+ listWidth="#{bean.listWidth}"
+ listHeight="#{bean.listHeight}"
+ selectOnEdit="#{bean.selectOnEdit}"
+ showControls="#{bean.showControls}"
+ editOnTab="#{bean.editOnTab}"
+ openOnEdit="#{bean.openOnEdit}"
+ valueChangeListener="#{bean.valueChange}"
+ layout="block"
+ >
+ <f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
+ <f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
+ <f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
+ <f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
+ <f:selectItem itemLabel="option 5" itemValue="Detroit"/>
+ <f:selectItem itemLabel="option 6" itemValue="Toronto"/>
+ <f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
+ <f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
+ <f:selectItem itemLabel="option 9" itemValue="New York"/>
+ </is:inplaceSelect>
+ </td>
+ <td>
+ <is:inplaceSelect
+ editEvent="#{bean.editEvent}"
+ maxSelectWidth="#{bean.maxSelectWidth}"
+ minSelectWidth="#{bean.minSelectWidth}"
+ defaultLabel="#{bean.defaultLabel}"
+ controlsVerticalPosition="#{bean.controlsPosition}"
+ controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
+ value="#{bean.value}"
+ listWidth="#{bean.listWidth}"
+ listHeight="#{bean.listHeight}"
+ selectOnEdit="#{bean.selectOnEdit}"
+ showControls="#{bean.showControls}"
+ editOnTab="#{bean.editOnTab}"
+ openOnEdit="#{bean.openOnEdit}"
+ valueChangeListener="#{bean.valueChange}"
+ layout="block"
+ >
+ <f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
+ <f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
+ <f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
+ <f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
+ <f:selectItem itemLabel="option 5" itemValue="Detroit"/>
+ <f:selectItem itemLabel="option 6" itemValue="Toronto"/>
+ <f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
+ <f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
+ <f:selectItem itemLabel="option 9" itemValue="New York"/>
+ </is:inplaceSelect>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <is:inplaceSelect
+ editEvent="#{bean.editEvent}"
+ maxSelectWidth="#{bean.maxSelectWidth}"
+ minSelectWidth="#{bean.minSelectWidth}"
+ defaultLabel="#{bean.defaultLabel}"
+ controlsVerticalPosition="#{bean.controlsPosition}"
+ controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
+ value="#{bean.value}"
+ listWidth="#{bean.listWidth}"
+ listHeight="#{bean.listHeight}"
+ selectOnEdit="#{bean.selectOnEdit}"
+ showControls="#{bean.showControls}"
+ editOnTab="#{bean.editOnTab}"
+ openOnEdit="#{bean.openOnEdit}"
+ valueChangeListener="#{bean.valueChange}"
+ layout="block"
+ >
+ <f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
+ <f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
+ <f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
+ <f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
+ <f:selectItem itemLabel="option 5" itemValue="Detroit"/>
+ <f:selectItem itemLabel="option 6" itemValue="Toronto"/>
+ <f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
+ <f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
+ <f:selectItem itemLabel="option 9" itemValue="New York"/>
+ </is:inplaceSelect>
+ </td>
+ <td>
+ <is:inplaceSelect
+ editEvent="#{bean.editEvent}"
+ maxSelectWidth="#{bean.maxSelectWidth}"
+ minSelectWidth="#{bean.minSelectWidth}"
+ defaultLabel="#{bean.defaultLabel}"
+ controlsVerticalPosition="#{bean.controlsPosition}"
+ controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
+ value="#{bean.value}"
+ listWidth="#{bean.listWidth}"
+ listHeight="#{bean.listHeight}"
+ selectOnEdit="#{bean.selectOnEdit}"
+ showControls="#{bean.showControls}"
+ editOnTab="#{bean.editOnTab}"
+ openOnEdit="#{bean.openOnEdit}"
+ valueChangeListener="#{bean.valueChange}"
+ layout="block"
+ >
+ <f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
+ <f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
+ <f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
+ <f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
+ <f:selectItem itemLabel="option 5" itemValue="Detroit"/>
+ <f:selectItem itemLabel="option 6" itemValue="Toronto"/>
+ <f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
+ <f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
+ <f:selectItem itemLabel="option 9" itemValue="New York"/>
+ </is:inplaceSelect>
+ </td>
+ </tr>
+ </table>
+
</h:form>
</f:view>
</body>
Modified: trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml
===================================================================
--- trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml 2008-03-11 16:51:20 UTC (rev 6707)
+++ trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml 2008-03-11 16:52:04 UTC (rev 6708)
@@ -8,7 +8,11 @@
<head>
- <title></title>
+ <title>InplaceSelect Facelets Sample</title>
+ <style>
+ .tab_example {width : 300px; border-top:1px solid #c0c0c0; border-left:1px solid #c0c0c0;}
+ .tab_example td{width : 150px; border-bottom:1px solid #c0c0c0; border-right:1px solid #c0c0c0;}
+ </style>
</head>
<body>
<f:view>
@@ -88,7 +92,190 @@
</div>
<br/>
<h:outputText value="value is: #{bean.value}"></h:outputText>
- <h:commandButton value="submit"></h:commandButton>
+ <h:commandButton value="submit"></h:commandButton>
+
+ <table class="tab_example" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td>
+ <is:inplaceSelect
+ editEvent="#{bean.editEvent}"
+ maxSelectWidth="#{bean.maxSelectWidth}"
+ minSelectWidth="#{bean.minSelectWidth}"
+ defaultLabel="#{bean.defaultLabel}"
+ controlsVerticalPosition="#{bean.controlsPosition}"
+ controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
+ value="#{bean.value}"
+ listWidth="#{bean.listWidth}"
+ listHeight="#{bean.listHeight}"
+ selectOnEdit="#{bean.selectOnEdit}"
+ showControls="#{bean.showControls}"
+ editOnTab="#{bean.editOnTab}"
+ openOnEdit="#{bean.openOnEdit}"
+ valueChangeListener="#{bean.valueChange}"
+ layout="block"
+ >
+ <f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
+ <f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
+ <f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
+ <f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
+ <f:selectItem itemLabel="option 5" itemValue="Detroit"/>
+ <f:selectItem itemLabel="option 6" itemValue="Toronto"/>
+ <f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
+ <f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
+ <f:selectItem itemLabel="option 9" itemValue="New York"/>
+ </is:inplaceSelect>
+ </td>
+ <td>
+ <is:inplaceSelect
+ editEvent="#{bean.editEvent}"
+ maxSelectWidth="#{bean.maxSelectWidth}"
+ minSelectWidth="#{bean.minSelectWidth}"
+ defaultLabel="#{bean.defaultLabel}"
+ controlsVerticalPosition="#{bean.controlsPosition}"
+ controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
+ value="#{bean.value}"
+ listWidth="#{bean.listWidth}"
+ listHeight="#{bean.listHeight}"
+ selectOnEdit="#{bean.selectOnEdit}"
+ showControls="#{bean.showControls}"
+ editOnTab="#{bean.editOnTab}"
+ openOnEdit="#{bean.openOnEdit}"
+ valueChangeListener="#{bean.valueChange}"
+ layout="block"
+ >
+ <f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
+ <f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
+ <f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
+ <f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
+ <f:selectItem itemLabel="option 5" itemValue="Detroit"/>
+ <f:selectItem itemLabel="option 6" itemValue="Toronto"/>
+ <f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
+ <f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
+ <f:selectItem itemLabel="option 9" itemValue="New York"/>
+ </is:inplaceSelect>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <is:inplaceSelect
+ editEvent="#{bean.editEvent}"
+ maxSelectWidth="#{bean.maxSelectWidth}"
+ minSelectWidth="#{bean.minSelectWidth}"
+ defaultLabel="#{bean.defaultLabel}"
+ controlsVerticalPosition="#{bean.controlsPosition}"
+ controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
+ value="#{bean.value}"
+ listWidth="#{bean.listWidth}"
+ listHeight="#{bean.listHeight}"
+ selectOnEdit="#{bean.selectOnEdit}"
+ showControls="#{bean.showControls}"
+ editOnTab="#{bean.editOnTab}"
+ openOnEdit="#{bean.openOnEdit}"
+ valueChangeListener="#{bean.valueChange}"
+ layout="block"
+ >
+ <f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
+ <f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
+ <f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
+ <f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
+ <f:selectItem itemLabel="option 5" itemValue="Detroit"/>
+ <f:selectItem itemLabel="option 6" itemValue="Toronto"/>
+ <f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
+ <f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
+ <f:selectItem itemLabel="option 9" itemValue="New York"/>
+ </is:inplaceSelect>
+ </td>
+ <td>
+ <is:inplaceSelect
+ editEvent="#{bean.editEvent}"
+ maxSelectWidth="#{bean.maxSelectWidth}"
+ minSelectWidth="#{bean.minSelectWidth}"
+ defaultLabel="#{bean.defaultLabel}"
+ controlsVerticalPosition="#{bean.controlsPosition}"
+ controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
+ value="#{bean.value}"
+ listWidth="#{bean.listWidth}"
+ listHeight="#{bean.listHeight}"
+ selectOnEdit="#{bean.selectOnEdit}"
+ showControls="#{bean.showControls}"
+ editOnTab="#{bean.editOnTab}"
+ openOnEdit="#{bean.openOnEdit}"
+ valueChangeListener="#{bean.valueChange}"
+ layout="block"
+ >
+ <f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
+ <f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
+ <f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
+ <f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
+ <f:selectItem itemLabel="option 5" itemValue="Detroit"/>
+ <f:selectItem itemLabel="option 6" itemValue="Toronto"/>
+ <f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
+ <f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
+ <f:selectItem itemLabel="option 9" itemValue="New York"/>
+ </is:inplaceSelect>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <is:inplaceSelect
+ editEvent="#{bean.editEvent}"
+ maxSelectWidth="#{bean.maxSelectWidth}"
+ minSelectWidth="#{bean.minSelectWidth}"
+ defaultLabel="#{bean.defaultLabel}"
+ controlsVerticalPosition="#{bean.controlsPosition}"
+ controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
+ value="#{bean.value}"
+ listWidth="#{bean.listWidth}"
+ listHeight="#{bean.listHeight}"
+ selectOnEdit="#{bean.selectOnEdit}"
+ showControls="#{bean.showControls}"
+ editOnTab="#{bean.editOnTab}"
+ openOnEdit="#{bean.openOnEdit}"
+ valueChangeListener="#{bean.valueChange}"
+ layout="block"
+ >
+ <f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
+ <f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
+ <f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
+ <f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
+ <f:selectItem itemLabel="option 5" itemValue="Detroit"/>
+ <f:selectItem itemLabel="option 6" itemValue="Toronto"/>
+ <f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
+ <f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
+ <f:selectItem itemLabel="option 9" itemValue="New York"/>
+ </is:inplaceSelect>
+ </td>
+ <td>
+ <is:inplaceSelect
+ editEvent="#{bean.editEvent}"
+ maxSelectWidth="#{bean.maxSelectWidth}"
+ minSelectWidth="#{bean.minSelectWidth}"
+ defaultLabel="#{bean.defaultLabel}"
+ controlsVerticalPosition="#{bean.controlsPosition}"
+ controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
+ value="#{bean.value}"
+ listWidth="#{bean.listWidth}"
+ listHeight="#{bean.listHeight}"
+ selectOnEdit="#{bean.selectOnEdit}"
+ showControls="#{bean.showControls}"
+ editOnTab="#{bean.editOnTab}"
+ openOnEdit="#{bean.openOnEdit}"
+ valueChangeListener="#{bean.valueChange}"
+ layout="block"
+ >
+ <f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
+ <f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
+ <f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
+ <f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
+ <f:selectItem itemLabel="option 5" itemValue="Detroit"/>
+ <f:selectItem itemLabel="option 6" itemValue="Toronto"/>
+ <f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
+ <f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
+ <f:selectItem itemLabel="option 9" itemValue="New York"/>
+ </is:inplaceSelect>
+ </td>
+ </tr>
+ </table>
</h:form>
</f:view>
16 years, 10 months
JBoss Rich Faces SVN: r6707 - in trunk/samples/inplaceInput-sample/src/main: webapp/pages and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-11 12:51:20 -0400 (Tue, 11 Mar 2008)
New Revision: 6707
Modified:
trunk/samples/inplaceInput-sample/src/main/java/org/richfaces/samples/Bean.java
trunk/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp
trunk/samples/inplaceInput-sample/src/main/webapp/pages/index.xhtml
Log:
extend demo
Modified: trunk/samples/inplaceInput-sample/src/main/java/org/richfaces/samples/Bean.java
===================================================================
--- trunk/samples/inplaceInput-sample/src/main/java/org/richfaces/samples/Bean.java 2008-03-11 16:44:41 UTC (rev 6706)
+++ trunk/samples/inplaceInput-sample/src/main/java/org/richfaces/samples/Bean.java 2008-03-11 16:51:20 UTC (rev 6707)
@@ -1,5 +1,7 @@
package org.richfaces.samples;
+import javax.faces.event.ValueChangeEvent;
+
public class Bean {
private boolean showControls;
@@ -16,7 +18,7 @@
private String width;
- private String minInputWidth = "70px";
+ private String minInputWidth = "40px";
private String maxInputWidth = "150px" ;
@@ -201,4 +203,8 @@
public void setInputMaxLength(Integer inputMaxLength) {
this.inputMaxLength = inputMaxLength;
}
+
+ public void valueChange(ValueChangeEvent event) {
+ System.out.println("Bean.valueChange() " + event.getComponent());
+ }
}
Modified: trunk/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp 2008-03-11 16:44:41 UTC (rev 6706)
+++ trunk/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp 2008-03-11 16:51:20 UTC (rev 6707)
@@ -4,7 +4,11 @@
<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/inplaceInput" prefix="ii"%>
<html>
<head>
- <title></title>
+ <title>InplaceInput Sample</title>
+ <style>
+ .tab_example {width : 300px; border-top:1px solid #c0c0c0; border-left:1px solid #c0c0c0;}
+ .tab_example td{width : 150px; border-bottom:1px solid #c0c0c0; border-right:1px solid #c0c0c0;}
+ </style>
</head>
<body>
<f:view>
@@ -68,10 +72,10 @@
<div style="width: 300px">
Fresh off his victory in the Florida primary, Sen. John McCain is poised to take another big prize. Former
<ii:inplaceInput
+ valueChangeListener="#{bean.valueChange}"
value="#{bean.value}"
selectOnEdit="#{bean.selectOnEdit}"
showControls="#{bean.showControls}"
- defaultLabel="#{bean.defaultLabel}"
inputWidth="#{bean.width}"
minInputWidth="#{bean.minInputWidth}"
maxInputWidth="#{bean.maxInputWidth}"
@@ -84,12 +88,101 @@
onviewactivated="#{bean.onviewactivated}"
saveControlIcon="#{bean.saveControlIcon}"
cancelControlIcon="#{bean.cancelControlIcon}"
- tabindex="#{bean.tabindex}"
+ tabindex="#{bean.tabindex}"
+ layout="inline"
>
</ii:inplaceInput>
Mayor Rudy Giuliani plans to drop out and endorse McCain, two GOP sources said. That would give McCain added momentum heading into a debate Wednesday and next week's Super Tuesday contests
</div>
<h:commandButton action="none" value="submit"></h:commandButton>
+
+ <table class="tab_example" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td>
+ <ii:inplaceInput
+ value="#{bean.value}"
+ selectOnEdit="#{bean.selectOnEdit}"
+ showControls="#{bean.showControls}"
+ inputWidth="#{bean.width}"
+ minInputWidth="#{bean.minInputWidth}"
+ maxInputWidth="#{bean.maxInputWidth}"
+ inputMaxLength="#{bean.inputMaxLength}"
+ controlsVerticalPosition="#{bean.controlsPosition}"
+ controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
+ editEvent="#{bean.editEvent}"
+ oneditactivation="#{bean.oneditactivation}"
+ onviewactivation="#{bean.onviewactivation}"
+ oneditactivated="#{bean.oneditactivated}"
+ onviewactivated="#{bean.onviewactivated}"
+ saveControlIcon="#{bean.saveControlIcon}"
+ cancelControlIcon="#{bean.cancelControlIcon}"
+ tabindex="#{bean.tabindex}"/>
+ </td>
+ <td>
+ <ii:inplaceInput
+ value="#{bean.value}"
+ selectOnEdit="#{bean.selectOnEdit}"
+ showControls="#{bean.showControls}"
+ inputWidth="#{bean.width}"
+ minInputWidth="#{bean.minInputWidth}"
+ maxInputWidth="#{bean.maxInputWidth}"
+ inputMaxLength="#{bean.inputMaxLength}"
+ controlsVerticalPosition="#{bean.controlsPosition}"
+ controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
+ editEvent="#{bean.editEvent}"
+ oneditactivation="#{bean.oneditactivation}"
+ onviewactivation="#{bean.onviewactivation}"
+ oneditactivated="#{bean.oneditactivated}"
+ onviewactivated="#{bean.onviewactivated}"
+ saveControlIcon="#{bean.saveControlIcon}"
+ cancelControlIcon="#{bean.cancelControlIcon}"
+ tabindex="#{bean.tabindex}"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <ii:inplaceInput
+ value="#{bean.value}"
+ selectOnEdit="#{bean.selectOnEdit}"
+ showControls="#{bean.showControls}"
+ inputWidth="#{bean.width}"
+ minInputWidth="#{bean.minInputWidth}"
+ maxInputWidth="#{bean.maxInputWidth}"
+ inputMaxLength="#{bean.inputMaxLength}"
+ controlsVerticalPosition="#{bean.controlsPosition}"
+ controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
+ editEvent="#{bean.editEvent}"
+ oneditactivation="#{bean.oneditactivation}"
+ onviewactivation="#{bean.onviewactivation}"
+ oneditactivated="#{bean.oneditactivated}"
+ onviewactivated="#{bean.onviewactivated}"
+ saveControlIcon="#{bean.saveControlIcon}"
+ cancelControlIcon="#{bean.cancelControlIcon}"
+ tabindex="#{bean.tabindex}"/>
+ </td>
+ <td>
+ <ii:inplaceInput
+ value="#{bean.value}"
+ selectOnEdit="#{bean.selectOnEdit}"
+ showControls="#{bean.showControls}"
+ inputWidth="#{bean.width}"
+ minInputWidth="#{bean.minInputWidth}"
+ maxInputWidth="#{bean.maxInputWidth}"
+ inputMaxLength="#{bean.inputMaxLength}"
+ controlsVerticalPosition="#{bean.controlsPosition}"
+ controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
+ editEvent="#{bean.editEvent}"
+ oneditactivation="#{bean.oneditactivation}"
+ onviewactivation="#{bean.onviewactivation}"
+ oneditactivated="#{bean.oneditactivated}"
+ onviewactivated="#{bean.onviewactivated}"
+ saveControlIcon="#{bean.saveControlIcon}"
+ cancelControlIcon="#{bean.cancelControlIcon}"
+ tabindex="#{bean.tabindex}"/>
+ </td>
+ </tr>
+ <table>
+
</h:form>
</f:view>
</body>
Modified: trunk/samples/inplaceInput-sample/src/main/webapp/pages/index.xhtml
===================================================================
--- trunk/samples/inplaceInput-sample/src/main/webapp/pages/index.xhtml 2008-03-11 16:44:41 UTC (rev 6706)
+++ trunk/samples/inplaceInput-sample/src/main/webapp/pages/index.xhtml 2008-03-11 16:51:20 UTC (rev 6707)
@@ -7,7 +7,11 @@
xmlns:ii="http://labs.jboss.com/jbossrichfaces/ui/inplaceInput">
<head>
- <title></title>
+ <title>InplaceInput Facelets Sample </title>
+ <style>
+ .tab_example {width : 300px; border-top:1px solid #c0c0c0; border-left:1px solid #c0c0c0;}
+ .tab_example td{width : 150px; border-bottom:1px solid #c0c0c0; border-right:1px solid #c0c0c0;}
+ </style>
</head>
<body>
<f:view>
@@ -78,7 +82,6 @@
value="#{bean.value}"
selectOnEdit="#{bean.selectOnEdit}"
showControls="#{bean.showControls}"
- defaultLabel="#{bean.defaultLabel}"
inputWidth="#{bean.width}"
minInputWidth="#{bean.minInputWidth}"
maxInputWidth="#{bean.maxInputWidth}"
@@ -97,6 +100,93 @@
</ii:inplaceInput>
Mayor Rudy Giuliani plans to drop out and endorse McCain, two GOP sources said. That would give McCain added momentum heading into a debate Wednesday and next week's Super Tuesday contests
</div>
+ <table class="tab_example" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td>
+ <ii:inplaceInput
+ value="#{bean.value}"
+ selectOnEdit="#{bean.selectOnEdit}"
+ showControls="#{bean.showControls}"
+ inputWidth="#{bean.width}"
+ minInputWidth="#{bean.minInputWidth}"
+ maxInputWidth="#{bean.maxInputWidth}"
+ inputMaxLength="#{bean.inputMaxLength}"
+ controlsPosition="#{bean.controlsPosition}"
+ controlsHorizontalAlign="#{bean.controlsHorizontalAlign}"
+ editEvent="#{bean.editEvent}"
+ oneditactivation="#{bean.oneditactivation}"
+ onviewactivation="#{bean.onviewactivation}"
+ oneditactivated="#{bean.oneditactivated}"
+ onviewactivated="#{bean.onviewactivated}"
+ saveControlIcon="#{bean.saveControlIcon}"
+ cancelControlIcon="#{bean.cancelControlIcon}"
+ tabindex="#{bean.tabindex}">
+ </td>
+ <td>
+ <ii:inplaceInput
+ value="#{bean.value}"
+ selectOnEdit="#{bean.selectOnEdit}"
+ showControls="#{bean.showControls}"
+ inputWidth="#{bean.width}"
+ minInputWidth="#{bean.minInputWidth}"
+ maxInputWidth="#{bean.maxInputWidth}"
+ inputMaxLength="#{bean.inputMaxLength}"
+ controlsPosition="#{bean.controlsPosition}"
+ controlsHorizontalAlign="#{bean.controlsHorizontalAlign}"
+ editEvent="#{bean.editEvent}"
+ oneditactivation="#{bean.oneditactivation}"
+ onviewactivation="#{bean.onviewactivation}"
+ oneditactivated="#{bean.oneditactivated}"
+ onviewactivated="#{bean.onviewactivated}"
+ saveControlIcon="#{bean.saveControlIcon}"
+ cancelControlIcon="#{bean.cancelControlIcon}"
+ tabindex="#{bean.tabindex}">
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <ii:inplaceInput
+ value="#{bean.value}"
+ selectOnEdit="#{bean.selectOnEdit}"
+ showControls="#{bean.showControls}"
+ inputWidth="#{bean.width}"
+ minInputWidth="#{bean.minInputWidth}"
+ maxInputWidth="#{bean.maxInputWidth}"
+ inputMaxLength="#{bean.inputMaxLength}"
+ controlsPosition="#{bean.controlsPosition}"
+ controlsHorizontalAlign="#{bean.controlsHorizontalAlign}"
+ editEvent="#{bean.editEvent}"
+ oneditactivation="#{bean.oneditactivation}"
+ onviewactivation="#{bean.onviewactivation}"
+ oneditactivated="#{bean.oneditactivated}"
+ onviewactivated="#{bean.onviewactivated}"
+ saveControlIcon="#{bean.saveControlIcon}"
+ cancelControlIcon="#{bean.cancelControlIcon}"
+ tabindex="#{bean.tabindex}">
+ </td>
+ <td>
+ <ii:inplaceInput
+ value="#{bean.value}"
+ selectOnEdit="#{bean.selectOnEdit}"
+ showControls="#{bean.showControls}"
+ inputWidth="#{bean.width}"
+ minInputWidth="#{bean.minInputWidth}"
+ maxInputWidth="#{bean.maxInputWidth}"
+ inputMaxLength="#{bean.inputMaxLength}"
+ controlsPosition="#{bean.controlsPosition}"
+ controlsHorizontalAlign="#{bean.controlsHorizontalAlign}"
+ editEvent="#{bean.editEvent}"
+ oneditactivation="#{bean.oneditactivation}"
+ onviewactivation="#{bean.onviewactivation}"
+ oneditactivated="#{bean.oneditactivated}"
+ onviewactivated="#{bean.onviewactivated}"
+ saveControlIcon="#{bean.saveControlIcon}"
+ cancelControlIcon="#{bean.cancelControlIcon}"
+ tabindex="#{bean.tabindex}">
+ </td>
+ </tr>
+ <table>
+
<h:commandButton action="none" value="submit"></h:commandButton>
</h:form>
</f:view>
16 years, 10 months
JBoss Rich Faces SVN: r6706 - trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-11 12:44:41 -0400 (Tue, 11 Mar 2008)
New Revision: 6706
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss
Log:
fix shadow styles
Modified: trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss
===================================================================
--- trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss 2008-03-11 16:44:12 UTC (rev 6705)
+++ trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss 2008-03-11 16:44:41 UTC (rev 6706)
@@ -140,21 +140,25 @@
.rich-inplace-select-shadow-tl{
background-repeat: repeat-x;
background-position : top left;
+ border : 0px !important;
}
.rich-inplace-select-shadow-tr{
background-repeat: repeat-x;
background-position : top right;
+ border : 0px !important;
}
.rich-inplace-select-shadow-bl{
background-repeat: repeat-x;
background-position : bottom left;
+ border : 0px !important;
}
.rich-inplace-select-shadow-br{
background-repeat: repeat-x;
background-position : bottom right;
+ border : 0px !important;
}
]]>
16 years, 10 months
JBoss Rich Faces SVN: r6705 - trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-11 12:44:12 -0400 (Tue, 11 Mar 2008)
New Revision: 6705
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss
Log:
fix shadow styles
Modified: trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss
===================================================================
--- trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss 2008-03-11 16:37:14 UTC (rev 6704)
+++ trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss 2008-03-11 16:44:12 UTC (rev 6705)
@@ -90,21 +90,25 @@
.rich-inplace-shadow-tl {
background-repeat: repeat-x;
background-position: top left;
+ border : 0px !important;
}
.rich-inplace-shadow-tr {
background-repeat: repeat-x;
background-position: top right;
+ border : 0px !important;
}
.rich-inplace-shadow-bl {
background-repeat: repeat-x;
background-position: bottom left;
+ border : 0px !important;
}
.rich-inplace-shadow-br {
background-repeat: repeat-x;
background-position: bottom right;
+ border : 0px !important;
}
]]>
16 years, 10 months
JBoss Rich Faces SVN: r6704 - Plan/3.2.0 and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: tkuprevich
Date: 2008-03-11 12:37:14 -0400 (Tue, 11 Mar 2008)
New Revision: 6704
Modified:
trunk/test-applications/qa/Test Plan/3.2.0/TestPlan-RF-3.2.0.doc
Log:
Modified: trunk/test-applications/qa/Test Plan/3.2.0/TestPlan-RF-3.2.0.doc
===================================================================
(Binary files differ)
16 years, 10 months
JBoss Rich Faces SVN: r6703 - in trunk/test-applications/qa/Test Reports: 3.2.0 and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: tkuprevich
Date: 2008-03-11 12:36:59 -0400 (Tue, 11 Mar 2008)
New Revision: 6703
Added:
trunk/test-applications/qa/Test Reports/3.2.0/
trunk/test-applications/qa/Test Reports/3.2.0/DailyReport320CR106032008tkuprevich.xls
trunk/test-applications/qa/Test Reports/DailyReportTemplate.xls
Log:
Added: trunk/test-applications/qa/Test Reports/3.2.0/DailyReport320CR106032008tkuprevich.xls
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/qa/Test Reports/3.2.0/DailyReport320CR106032008tkuprevich.xls
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/qa/Test Reports/DailyReportTemplate.xls
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/qa/Test Reports/DailyReportTemplate.xls
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 10 months
JBoss Rich Faces SVN: r6702 - trunk/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-03-11 12:34:55 -0400 (Tue, 11 Mar 2008)
New Revision: 6702
Modified:
trunk/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js
Log:
copy,copyALl,remove, removeAll functions are added
Modified: trunk/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js
===================================================================
--- trunk/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js 2008-03-11 16:07:01 UTC (rev 6701)
+++ trunk/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js 2008-03-11 16:34:55 UTC (rev 6702)
@@ -234,13 +234,29 @@
this.sourceLayoutManager.widthSynchronization();
this.container.fire("rich:onlistchanged", {});
+ },
+
+ copyAll : function() {
+ this.moveItems(this.sourceList, this.targetList, this.sourceList.shuttleItems);
+ },
+
+ copy : function() {
+ this.moveItems(this.sourceList, this.targetList, this.sourceList.selectedItems);
+ },
+
+ removeAll : function() {
+ this.moveItems(this.targetList, this.sourceList, this.targetList.shuttleItems);
+ },
+
+ remove : function() {
+ this.moveItems(this.targetList, this.sourceList, this.targetList.selectedItems);
}
};
Richfaces.ListShuttle.HANDLERS = {
- copy: function (e) { this.moveItems(this.sourceList, this.targetList, this.sourceList.selectedItems); return false; },
- copyAll: function (e) { this.moveItems(this.sourceList, this.targetList, this.sourceList.shuttleItems); return false; },
- remove: function (e) { this.moveItems(this.targetList, this.sourceList, this.targetList.selectedItems); return false; },
- removeAll: function (e) { this.moveItems(this.targetList, this.sourceList, this.targetList.shuttleItems); return false; }
+ copy: function (e) { this.copy(); return false; },
+ copyAll: function (e) { this.copyAll(); return false; },
+ remove: function (e) { this.remove(); return false; },
+ removeAll: function (e) { this.removeAll(); return false; }
};
\ No newline at end of file
16 years, 10 months
JBoss Rich Faces SVN: r6701 - trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2008-03-11 12:07:01 -0400 (Tue, 11 Mar 2008)
New Revision: 6701
Modified:
trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
Log:
RF-2268
Modified: trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
===================================================================
--- trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2008-03-11 15:41:08 UTC (rev 6700)
+++ trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2008-03-11 16:07:01 UTC (rev 6701)
@@ -87,7 +87,6 @@
Event.observe(this.input, "keyup", this.eventEditChange);
Event.observe(this.input, "focus", this.eventEditFocus);
Event.observe(this.input, "blur", this.eventEditBlur);
- Event.observe(document, "mouseout", this.eventWindowMouseOut);
if(this.input.onchange){
this.eventInputOnChange = this.input.onchange.bindAsEventListener(this.input);
this.input.onchange = null;
@@ -234,6 +233,7 @@
this.input.blur();
window.document.onmouseup = this.eventMouseUp.bindAsEventListener(this);
window.document.onmousemove = this.eventMouseMove.bindAsEventListener(this);
+ Event.observe(document, "mouseout", this.eventWindowMouseOut);
this.editBlur();
this.prevMouseDownEvent = event;
@@ -289,6 +289,7 @@
endDrag: function(event) {
window.document.onmouseup = this.prevMouseUp;
window.document.onmousemove = this.prevMouseMove;
+ Event.stopObserving(document, "mouseout", this.eventWindowMouseOut, false);
if (this.options.currValue){
Element.hide(this.tip);
}
16 years, 10 months
JBoss Rich Faces SVN: r6700 - trunk/ui/pickList/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-11 11:41:08 -0400 (Tue, 11 Mar 2008)
New Revision: 6700
Modified:
trunk/ui/pickList/src/main/config/component/picklist.xml
Log:
http://jira.jboss.com/jira/browse/RF-2456
Modified: trunk/ui/pickList/src/main/config/component/picklist.xml
===================================================================
--- trunk/ui/pickList/src/main/config/component/picklist.xml 2008-03-11 15:13:57 UTC (rev 6699)
+++ trunk/ui/pickList/src/main/config/component/picklist.xml 2008-03-11 15:41:08 UTC (rev 6700)
@@ -102,13 +102,8 @@
Defines height of the list
</description>
<defaultvalue>"140px"</defaultvalue>
- </property>
- &ui_component_attributes;
- &html_universal_attributes;
- &html_events;
- &html_control_events;
- &ui_select_many_attributes;
-
+ </property>
+
<property>
<name>converterMessage</name>
<classname>java.lang.String</classname>
@@ -211,6 +206,11 @@
<name>localValueSet </name>
<classname>java.lang.String</classname>
</property>
+
+ &ui_input_attributes;
+ &html_universal_attributes;
+ &html_events;
+ &html_control_events;
</properties>
16 years, 10 months
JBoss Rich Faces SVN: r6699 - in trunk/ui/inplaceSelect/src/main: resources/org/richfaces/renderkit/html/scripts and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-11 11:13:57 -0400 (Tue, 11 Mar 2008)
New Revision: 6699
Modified:
trunk/ui/inplaceSelect/src/main/config/component/inplaceselect.xml
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
Log:
fox buttons position
Modified: trunk/ui/inplaceSelect/src/main/config/component/inplaceselect.xml
===================================================================
--- trunk/ui/inplaceSelect/src/main/config/component/inplaceselect.xml 2008-03-11 15:09:31 UTC (rev 6698)
+++ trunk/ui/inplaceSelect/src/main/config/component/inplaceselect.xml 2008-03-11 15:13:57 UTC (rev 6699)
@@ -64,7 +64,7 @@
<name>defaultLabel</name>
<classname>java.lang.String</classname>
<description></description>
- <defaultvalue><![CDATA[""]]></defaultvalue>
+ <defaultvalue><![CDATA["\u00a0\u00a0\u00a0"]]></defaultvalue>
</property>
<property>
<name>showControls</name>
Modified: trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
===================================================================
--- trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-03-11 15:09:31 UTC (rev 6698)
+++ trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-03-11 15:13:57 UTC (rev 6699)
@@ -24,7 +24,9 @@
setInputWidth : function($super, textSize) {
$super(textSize);
this.button.show();
- this.button.style.left = (parseInt(this.tempValueKeeper.style.width) - this.button.offsetWidth) + "px";
+ var width = parseInt(this.tempValueKeeper.style.width);
+ this.button.style.left = ( width - this.button.offsetWidth) + "px";
+ return width;
},
switchingStatesHandler : function($super, e) {
16 years, 10 months