JBoss Rich Faces SVN: r7820 - trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-04-14 12:33:34 -0400 (Mon, 14 Apr 2008)
New Revision: 7820
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
Log:
RF-2852
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
===================================================================
--- trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-04-14 16:13:43 UTC (rev 7819)
+++ trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-04-14 16:33:34 UTC (rev 7820)
@@ -770,10 +770,11 @@
if(value !=''){
var values = value.split(',');
this.currentPos = values[0];
- this.scrollBox.getElement().scrollTop = values[0];
this.currRange.start = values[1];
this.currRange.end = values[2];
+ this.scrollBox.getElement().scrollTop = values[0];
var visibleRowPos = this.currRange.start * this.defaultRowHeight;
+ this._showContainer();
this.templFrozen.moveToY(visibleRowPos);
this.templNormal.moveToY(visibleRowPos);
}
16 years, 9 months
JBoss Rich Faces SVN: r7819 - in branches/3.2.x/samples/combobox-sample/src/main: webapp/WEB-INF and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-04-14 12:13:43 -0400 (Mon, 14 Apr 2008)
New Revision: 7819
Modified:
branches/3.2.x/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java
branches/3.2.x/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml
branches/3.2.x/samples/combobox-sample/src/main/webapp/pages/index.jsp
branches/3.2.x/samples/combobox-sample/src/main/webapp/pages/index.xhtml
Log:
Modified: branches/3.2.x/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java
===================================================================
--- branches/3.2.x/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java 2008-04-14 16:13:24 UTC (rev 7818)
+++ branches/3.2.x/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java 2008-04-14 16:13:43 UTC (rev 7819)
@@ -42,7 +42,7 @@
private boolean selectFirstOnUpdate = true;
private boolean filterNewValues = true;
private boolean directInputSuggestions = true;
- private String defaultMessage = "South Carolina";
+ private String defaultMessage = "South J&'<uneau Carolina";
private String width;
private String listWidth;
private String listHeight;
Modified: branches/3.2.x/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- branches/3.2.x/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml 2008-04-14 16:13:24 UTC (rev 7818)
+++ branches/3.2.x/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml 2008-04-14 16:13:43 UTC (rev 7819)
@@ -10,7 +10,7 @@
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
- </context-param>
+ </context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
Modified: branches/3.2.x/samples/combobox-sample/src/main/webapp/pages/index.jsp
===================================================================
--- branches/3.2.x/samples/combobox-sample/src/main/webapp/pages/index.jsp 2008-04-14 16:13:24 UTC (rev 7818)
+++ branches/3.2.x/samples/combobox-sample/src/main/webapp/pages/index.jsp 2008-04-14 16:13:43 UTC (rev 7819)
@@ -76,15 +76,14 @@
filterNewValues="#{bean.filterNewValues}"
directInputSuggestions="#{bean.directInputSuggestions}"
defaultLabel="#{bean.defaultMessage}"
- inputSize="#{bean.inputSize}"
onchange="#{bean.onchangeScript}"
- onlistcall="#{bean.onlistcallScript}"
- onitemselected="#{bean.onitemselectedScript}">
+ onlistcall="#{bean.onlistcallScript}">
<f:selectItems value="#{bean.selectItems}"/>
<f:selectItem itemValue="Oregon"/>
- <f:selectItem itemValue="Pennsylvania Oregonfdsf fdsfdsfds dsffdsfdsfdsf fdsfdsfwdsfsfsd fdsfdsfdsfds dfsfdsfdsfds"/>
+ <f:selectItem itemValue="Pennsylvania"/>
<f:selectItem itemValue="Rhode Island"/>
- <f:selectItem itemValue="South Carolina"/>
+ <f:selectItem itemValue="South J&'<uneau Carolina"/>
+ <f:selectItem itemValue="J&'<uneau"/>
</cmb:comboBox>
Modified: branches/3.2.x/samples/combobox-sample/src/main/webapp/pages/index.xhtml
===================================================================
--- branches/3.2.x/samples/combobox-sample/src/main/webapp/pages/index.xhtml 2008-04-14 16:13:24 UTC (rev 7818)
+++ branches/3.2.x/samples/combobox-sample/src/main/webapp/pages/index.xhtml 2008-04-14 16:13:43 UTC (rev 7819)
@@ -1,10 +1,13 @@
-<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -->
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+ <!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> -->
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:cmb="http://labs.jboss.com/jbossrichfaces/ui/combobox">
+ xmlns:cmb="http://labs.jboss.com/jbossrichfaces/ui/combobox"
+ xmlns:a4j="http://richfaces.org/a4j" prefix="a4j"
+ >
<head>
<title></title>
@@ -61,6 +64,7 @@
</h:panelGrid>
<cmb:comboBox
+ id="combo"
disabled="#{bean.disabled}"
inputClass="inputClass"
buttonDisabledClass="buttonDisabledClass"
@@ -84,9 +88,11 @@
<f:selectItems value="#{bean.selectItems}"/>
<f:selectItem itemValue="Oregon"/>
<f:selectItem itemValue="Pennsylvania"/>
- <f:selectItem itemValue="Rhode Island gsdfgsdgdsgdsgdsgdsggdsgsdgdsgdsgdsgdsgdsgdsgdsgds"/>
- <f:selectItem itemValue="South Carolina"/>
-
+ <f:selectItem itemValue="&test"/>
+ <f:selectItem itemValue="South J&'<uneau Carolina"/>
+ <f:selectItem itemValue="J&'<uneau"/>
+ <a4j:support event="onselect" reRender="combo"/>
+
</cmb:comboBox>
<br/>
16 years, 9 months
JBoss Rich Faces SVN: r7818 - in branches/3.2.x/samples/inplaceSelect-sample/src/main: webapp/WEB-INF and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-04-14 12:13:24 -0400 (Mon, 14 Apr 2008)
New Revision: 7818
Modified:
branches/3.2.x/samples/inplaceSelect-sample/src/main/java/org/richfaces/Bean.java
branches/3.2.x/samples/inplaceSelect-sample/src/main/webapp/WEB-INF/web.xml
branches/3.2.x/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp
branches/3.2.x/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml
Log:
Modified: branches/3.2.x/samples/inplaceSelect-sample/src/main/java/org/richfaces/Bean.java
===================================================================
--- branches/3.2.x/samples/inplaceSelect-sample/src/main/java/org/richfaces/Bean.java 2008-04-14 16:13:07 UTC (rev 7817)
+++ branches/3.2.x/samples/inplaceSelect-sample/src/main/java/org/richfaces/Bean.java 2008-04-14 16:13:24 UTC (rev 7818)
@@ -39,7 +39,7 @@
private String controlsHorizontalAlign = "right";
- private Object value = "New York";
+ private Object value = "New&'< York";
private String listWidth = "200px";
Modified: branches/3.2.x/samples/inplaceSelect-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- branches/3.2.x/samples/inplaceSelect-sample/src/main/webapp/WEB-INF/web.xml 2008-04-14 16:13:07 UTC (rev 7817)
+++ branches/3.2.x/samples/inplaceSelect-sample/src/main/webapp/WEB-INF/web.xml 2008-04-14 16:13:24 UTC (rev 7818)
@@ -2,7 +2,7 @@
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Archetype Created Web Application</display-name>
-<!--
+<!--
<context-param>
<param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
<param-value>com.sun.facelets.FaceletViewHandler</param-value>
@@ -10,8 +10,8 @@
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
- </context-param> -->
- <context-param>
+ </context-param> -->
+ <context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
Modified: branches/3.2.x/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp
===================================================================
--- branches/3.2.x/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp 2008-04-14 16:13:07 UTC (rev 7817)
+++ branches/3.2.x/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp 2008-04-14 16:13:24 UTC (rev 7818)
@@ -80,18 +80,17 @@
showControls="#{bean.showControls}"
editOnTab="#{bean.editOnTab}"
openOnEdit="#{bean.openOnEdit}"
- valueChangeListener="#{bean.valueChange}"
layout="inline"
>
- <f:selectItem itemValue="option 1" itemLabel="Kansas City"/>
- <f:selectItem itemValue="option 2" itemLabel="Las Vegas"/>
- <f:selectItem itemValue="option 3" itemLabel="Oklahoma City"/>
- <f:selectItem itemValue="option 4" itemLabel="New Jersey"/>
- <f:selectItem itemValue="option 5" itemLabel="Detroit"/>
- <f:selectItem itemValue="option 6" itemLabel="Toronto"/>
- <f:selectItem itemValue="option 7" itemLabel="Cleveland"/>
- <f:selectItem itemValue="option 8" itemLabel="Indianapolis"/>
- <f:selectItem itemValue="option 9" itemLabel="New York"/>
+ <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="New&'< York" itemValue="New&'< York"/>
</is:inplaceSelect>
<a4j:commandButton reRender="inplace" value="12312"></a4j:commandButton>
@@ -100,190 +99,6 @@
<br/>
<h:outputText value="value is: #{bean.value}"></h:outputText>
<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 itemValue="option 1" itemLabel="Kansas City"/>
- <f:selectItem itemValue="option 2" itemLabel="Las Vegas"/>
- <f:selectItem itemValue="option 3" itemLabel="Oklahoma City"/>
- <f:selectItem itemValue="option 4" itemLabel="New Jersey"/>
- <f:selectItem itemValue="option 5" itemLabel="Detroit"/>
- <f:selectItem itemValue="option 6" itemLabel="Toronto"/>
- <f:selectItem itemValue="option 7" itemLabel="Cleveland"/>
- <f:selectItem itemValue="option 8" itemLabel="Indianapolis"/>
- <f:selectItem itemValue="option 9" itemLabel="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 itemValue="option 1" itemLabel="Kansas City"/>
- <f:selectItem itemValue="option 2" itemLabel="Las Vegas"/>
- <f:selectItem itemValue="option 3" itemLabel="Oklahoma City"/>
- <f:selectItem itemValue="option 4" itemLabel="New Jersey"/>
- <f:selectItem itemValue="option 5" itemLabel="Detroit"/>
- <f:selectItem itemValue="option 6" itemLabel="Toronto"/>
- <f:selectItem itemValue="option 7" itemLabel="Cleveland"/>
- <f:selectItem itemValue="option 8" itemLabel="Indianapolis"/>
- <f:selectItem itemValue="option 9" itemLabel="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 itemValue="option 1" itemLabel="Kansas City"/>
- <f:selectItem itemValue="option 2" itemLabel="Las Vegas"/>
- <f:selectItem itemValue="option 3" itemLabel="Oklahoma City"/>
- <f:selectItem itemValue="option 4" itemLabel="New Jersey"/>
- <f:selectItem itemValue="option 5" itemLabel="Detroit"/>
- <f:selectItem itemValue="option 6" itemLabel="Toronto"/>
- <f:selectItem itemValue="option 7" itemLabel="Cleveland"/>
- <f:selectItem itemValue="option 8" itemLabel="Indianapolis"/>
- <f:selectItem itemValue="option 9" itemLabel="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 itemValue="option 1" itemLabel="Kansas City"/>
- <f:selectItem itemValue="option 2" itemLabel="Las Vegas"/>
- <f:selectItem itemValue="option 3" itemLabel="Oklahoma City"/>
- <f:selectItem itemValue="option 4" itemLabel="New Jersey"/>
- <f:selectItem itemValue="option 5" itemLabel="Detroit"/>
- <f:selectItem itemValue="option 6" itemLabel="Toronto"/>
- <f:selectItem itemValue="option 7" itemLabel="Cleveland"/>
- <f:selectItem itemValue="option 8" itemLabel="Indianapolis"/>
- <f:selectItem itemValue="option 9" itemLabel="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 itemValue="option 1" itemLabel="Kansas City"/>
- <f:selectItem itemValue="option 2" itemLabel="Las Vegas"/>
- <f:selectItem itemValue="option 3" itemLabel="Oklahoma City"/>
- <f:selectItem itemValue="option 4" itemLabel="New Jersey"/>
- <f:selectItem itemValue="option 5" itemLabel="Detroit"/>
- <f:selectItem itemValue="option 6" itemLabel="Toronto"/>
- <f:selectItem itemValue="option 7" itemLabel="Cleveland"/>
- <f:selectItem itemValue="option 8" itemLabel="Indianapolis"/>
- <f:selectItem itemValue="option 9" itemLabel="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 itemValue="option 1" itemLabel="Kansas City"/>
- <f:selectItem itemValue="option 2" itemLabel="Las Vegas"/>
- <f:selectItem itemValue="option 3" itemLabel="Oklahoma City"/>
- <f:selectItem itemValue="option 4" itemLabel="New Jersey"/>
- <f:selectItem itemValue="option 5" itemLabel="Detroit"/>
- <f:selectItem itemValue="option 6" itemLabel="Toronto"/>
- <f:selectItem itemValue="option 7" itemLabel="Cleveland"/>
- <f:selectItem itemValue="option 8" itemLabel="Indianapolis"/>
- <f:selectItem itemValue="option 9" itemLabel="New York"/>
- </is:inplaceSelect>
- </td>
- </tr>
- </table>
</h:form>
</f:view>
</body>
Modified: branches/3.2.x/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml
===================================================================
--- branches/3.2.x/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml 2008-04-14 16:13:07 UTC (rev 7817)
+++ branches/3.2.x/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml 2008-04-14 16:13:24 UTC (rev 7818)
@@ -86,196 +86,13 @@
<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"/>
+ <f:selectItem itemLabel="New&'< York" itemValue="New&'< York"/>
</is:inplaceSelect>
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>
<br/>
<h:outputText value="value is: #{bean.value}"></h:outputText>
<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, 9 months
JBoss Rich Faces SVN: r7817 - in branches/3.2.x/samples/inplaceInput-sample/src/main: webapp/pages and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-04-14 12:13:07 -0400 (Mon, 14 Apr 2008)
New Revision: 7817
Modified:
branches/3.2.x/samples/inplaceInput-sample/src/main/java/org/richfaces/samples/Bean.java
branches/3.2.x/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp
Log:
Modified: branches/3.2.x/samples/inplaceInput-sample/src/main/java/org/richfaces/samples/Bean.java
===================================================================
--- branches/3.2.x/samples/inplaceInput-sample/src/main/java/org/richfaces/samples/Bean.java 2008-04-14 16:12:10 UTC (rev 7816)
+++ branches/3.2.x/samples/inplaceInput-sample/src/main/java/org/richfaces/samples/Bean.java 2008-04-14 16:13:07 UTC (rev 7817)
@@ -24,7 +24,7 @@
private String controlsHorizontalAlign="left";
- private String value = "New York";
+ private String value = "New&'< York";
private String editEvent = "onclick";
Modified: branches/3.2.x/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp
===================================================================
--- branches/3.2.x/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp 2008-04-14 16:12:10 UTC (rev 7816)
+++ branches/3.2.x/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp 2008-04-14 16:13:07 UTC (rev 7817)
@@ -95,90 +95,6 @@
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}"
- 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}"
- 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}"
- 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}"
- 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>
16 years, 9 months
JBoss Rich Faces SVN: r7816 - branches/3.2.x/ui/combobox/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-04-14 12:12:10 -0400 (Mon, 14 Apr 2008)
New Revision: 7816
Modified:
branches/3.2.x/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java
Log:
Modified: branches/3.2.x/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java
===================================================================
--- branches/3.2.x/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java 2008-04-14 16:10:32 UTC (rev 7815)
+++ branches/3.2.x/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java 2008-04-14 16:12:10 UTC (rev 7816)
@@ -158,7 +158,7 @@
return ScriptUtils.toScript(result);
}
-public String encodeValue(String value){
- return ScriptUtils.toScript(value);
+ public String encodeValue(String value){
+ return ScriptUtils.toScript(value);
}
}
16 years, 9 months
JBoss Rich Faces SVN: r7815 - trunk/samples/combobox-sample/src/main/java/org/richfaces/samples.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-04-14 12:10:32 -0400 (Mon, 14 Apr 2008)
New Revision: 7815
Added:
trunk/samples/combobox-sample/src/main/java/org/richfaces/samples/SuggestBean.java
Log:
Added: trunk/samples/combobox-sample/src/main/java/org/richfaces/samples/SuggestBean.java
===================================================================
--- trunk/samples/combobox-sample/src/main/java/org/richfaces/samples/SuggestBean.java (rev 0)
+++ trunk/samples/combobox-sample/src/main/java/org/richfaces/samples/SuggestBean.java 2008-04-14 16:10:32 UTC (rev 7815)
@@ -0,0 +1,42 @@
+package org.richfaces.samples;
+
+import java.util.Date;
+import javax.faces.model.SelectItem;
+
+
+public class SuggestBean {
+
+ private String property;
+ private String property2;
+
+ private SelectItem[] comboSelectItems = { new SelectItem("Test", "Test"), new SelectItem("Test2", "Test2"), new SelectItem("Test3", "Test3") };
+
+
+ public void updateProperty2() {
+ setProperty2((new Date()).toString());
+ }
+
+ public String getProperty() {
+ return property;
+ }
+
+ public void setProperty(String property) {
+ this.property = property;
+ }
+
+ public String getProperty2() {
+ return property2;
+ }
+
+ public void setProperty2(String property2) {
+ this.property2 = property2;
+ }
+
+ public SelectItem[] getComboSelectItems() {
+ return comboSelectItems;
+ }
+
+ public void setComboSelectItems(SelectItem[] comboSelectItems) {
+ this.comboSelectItems = comboSelectItems;
+ }
+}
16 years, 9 months
JBoss Rich Faces SVN: r7814 - in trunk/samples/combobox-sample/src/main: webapp/WEB-INF and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-04-14 12:10:03 -0400 (Mon, 14 Apr 2008)
New Revision: 7814
Modified:
trunk/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java
trunk/samples/combobox-sample/src/main/webapp/WEB-INF/faces-config.xml
trunk/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml
trunk/samples/combobox-sample/src/main/webapp/pages/index.jsp
trunk/samples/combobox-sample/src/main/webapp/pages/index.xhtml
Log:
Modified: trunk/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java
===================================================================
--- trunk/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java 2008-04-14 16:09:46 UTC (rev 7813)
+++ trunk/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java 2008-04-14 16:10:03 UTC (rev 7814)
@@ -42,7 +42,7 @@
private boolean selectFirstOnUpdate = true;
private boolean filterNewValues = true;
private boolean directInputSuggestions = true;
- private String defaultMessage = "South Carolina";
+ private String defaultMessage = "edit ...";
private String width;
private String listWidth;
private String listHeight;
@@ -52,7 +52,7 @@
private String onitemselectedScript;
- private String state="";
+ private String state="J&'<uneau";
Modified: trunk/samples/combobox-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/combobox-sample/src/main/webapp/WEB-INF/faces-config.xml 2008-04-14 16:09:46 UTC (rev 7813)
+++ trunk/samples/combobox-sample/src/main/webapp/WEB-INF/faces-config.xml 2008-04-14 16:10:03 UTC (rev 7814)
@@ -18,11 +18,17 @@
<managed-bean-name>carsManager</managed-bean-name>
<managed-bean-class>org.richfaces.samples.CarsManager</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>suggest</managed-bean-name>
+ <managed-bean-class>org.richfaces.samples.SuggestBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
<converter>
<converter-id>carConverter</converter-id>
<converter-class>org.richfaces.samples.converter.CarConverter</converter-class>
</converter>
-
</faces-config>
Modified: trunk/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml 2008-04-14 16:09:46 UTC (rev 7813)
+++ trunk/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml 2008-04-14 16:10:03 UTC (rev 7814)
@@ -10,7 +10,7 @@
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
- </context-param>
+ </context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
Modified: trunk/samples/combobox-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/combobox-sample/src/main/webapp/pages/index.jsp 2008-04-14 16:09:46 UTC (rev 7813)
+++ trunk/samples/combobox-sample/src/main/webapp/pages/index.jsp 2008-04-14 16:10:03 UTC (rev 7814)
@@ -76,15 +76,14 @@
filterNewValues="#{bean.filterNewValues}"
directInputSuggestions="#{bean.directInputSuggestions}"
defaultLabel="#{bean.defaultMessage}"
- inputSize="#{bean.inputSize}"
onchange="#{bean.onchangeScript}"
- onlistcall="#{bean.onlistcallScript}"
- onitemselected="#{bean.onitemselectedScript}">
+ onlistcall="#{bean.onlistcallScript}">
<f:selectItems value="#{bean.selectItems}"/>
<f:selectItem itemValue="Oregon"/>
<f:selectItem itemValue="Pennsylvania Oregonfdsf fdsfdsfds dsffdsfdsfdsf fdsfdsfwdsfsfsd fdsfdsfdsfds dfsfdsfdsfds"/>
<f:selectItem itemValue="Rhode Island"/>
<f:selectItem itemValue="South Carolina"/>
+ <f:selectItem itemValue="J&'<uneau"/>
</cmb:comboBox>
Modified: trunk/samples/combobox-sample/src/main/webapp/pages/index.xhtml
===================================================================
--- trunk/samples/combobox-sample/src/main/webapp/pages/index.xhtml 2008-04-14 16:09:46 UTC (rev 7813)
+++ trunk/samples/combobox-sample/src/main/webapp/pages/index.xhtml 2008-04-14 16:10:03 UTC (rev 7814)
@@ -1,11 +1,14 @@
-<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -->
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<?xml version="1.0" encoding="UTF-8"?>
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+ <!-- DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" -->
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:cmb="http://labs.jboss.com/jbossrichfaces/ui/combobox">
-
+ xmlns:cmb="http://labs.jboss.com/jbossrichfaces/ui/combobox"
+ xmlns:p="http://labs.jboss.com/jbossrichfaces/ui/panel"
+ xmlns:a4j="http://richfaces.org/a4j"
+ >
<head>
<title></title>
</head>
@@ -76,23 +79,36 @@
selectFirstOnUpdate="#{bean.selectFirstOnUpdate}"
filterNewValues="#{bean.filterNewValues}"
directInputSuggestions="#{bean.directInputSuggestions}"
- defaultLabel="#{bean.defaultMessage}"
+ defaultLabel="&test'<test"
inputSize="#{bean.inputSize}"
onchange="#{bean.onchangeScript}"
onlistcall="#{bean.onlistcallScript}"
onitemselected="#{bean.onitemselectedScript}">
<f:selectItems value="#{bean.selectItems}"/>
<f:selectItem itemValue="Oregon"/>
- <f:selectItem itemValue="Pennsylvania"/>
- <f:selectItem itemValue="Rhode Island gsdfgsdgdsgdsgdsgdsggdsgsdgdsgdsgdsgdsgdsgdsgdsgds"/>
- <f:selectItem itemValue="South Carolina"/>
+ <f:selectItem itemValue="&select"/>
+ <f:selectItem itemValue="&unselect"/>
+ <f:selectItem itemValue="J&'<uneau"/>
+ <f:selectItem itemValue="test"/>
</cmb:comboBox>
-
+
<br/>
<h:commandButton action="none" value="submit"></h:commandButton>
<br/>
<h:outputText value="Selected state is: #{bean.state}"></h:outputText>
+
+ <p:panel id="orderHead">
+ <a4j:commandButton id="com" reRender="part" action="#{suggest.updateProperty2}" value="Refresh"/>
+ <p:panel id="part">
+ <cmb:comboBox value="#{suggest.property}">
+ <f:selectItems value="#{suggest.comboSelectItems}" />
+ </cmb:comboBox>
+ <h:outputText id="propOut" value="#{suggest.property}" /><br/>
+ <h:outputText id="propOut2" value="#{suggest.property2}" /><br/>
+ </p:panel>
+ </p:panel>
+
</h:form>
</f:view>
</body>
16 years, 9 months
JBoss Rich Faces SVN: r7813 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2008-04-14 12:09:46 -0400 (Mon, 14 Apr 2008)
New Revision: 7813
Modified:
trunk/docs/userguide/en/src/main/docbook/included/listShuttle.xml
Log:
http://jira.jboss.com/jira/browse/RF-3045 - corrected class name
Modified: trunk/docs/userguide/en/src/main/docbook/included/listShuttle.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/listShuttle.xml 2008-04-14 16:09:45 UTC (rev 7812)
+++ trunk/docs/userguide/en/src/main/docbook/included/listShuttle.xml 2008-04-14 16:09:46 UTC (rev 7813)
@@ -28,9 +28,9 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.listShuttle;
+ <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlListShuttle;
...
-HtmllistShuttle mylistShuttle = new HtmllistShuttle();
+HtmlListShuttle myListShuttle = new HtmlListShuttle();
...]]></programlisting>
</section>
<section>
16 years, 9 months
JBoss Rich Faces SVN: r7812 - in trunk/samples/inplaceSelect-sample/src/main: webapp/WEB-INF and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-04-14 12:09:45 -0400 (Mon, 14 Apr 2008)
New Revision: 7812
Modified:
trunk/samples/inplaceSelect-sample/src/main/java/org/richfaces/Bean.java
trunk/samples/inplaceSelect-sample/src/main/webapp/WEB-INF/web.xml
trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp
trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml
Log:
Modified: trunk/samples/inplaceSelect-sample/src/main/java/org/richfaces/Bean.java
===================================================================
--- trunk/samples/inplaceSelect-sample/src/main/java/org/richfaces/Bean.java 2008-04-14 16:09:29 UTC (rev 7811)
+++ trunk/samples/inplaceSelect-sample/src/main/java/org/richfaces/Bean.java 2008-04-14 16:09:45 UTC (rev 7812)
@@ -39,7 +39,7 @@
private String controlsHorizontalAlign = "right";
- private Object value = "New York";
+ private Object value = "A&'<laska";
private String listWidth = "200px";
Modified: trunk/samples/inplaceSelect-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/samples/inplaceSelect-sample/src/main/webapp/WEB-INF/web.xml 2008-04-14 16:09:29 UTC (rev 7811)
+++ trunk/samples/inplaceSelect-sample/src/main/webapp/WEB-INF/web.xml 2008-04-14 16:09:45 UTC (rev 7812)
@@ -10,7 +10,7 @@
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
- </context-param> -->
+ </context-param> -->
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
Modified: trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp 2008-04-14 16:09:29 UTC (rev 7811)
+++ trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp 2008-04-14 16:09:45 UTC (rev 7812)
@@ -67,223 +67,43 @@
Fresh off his victory in the Florida primary, Sen. John McCain is poised to take another big prize. Former
<is:inplaceSelect
id="inplace"
- editEvent="#{bean.editEvent}"
+ editEvent="onclick"
maxSelectWidth="#{bean.maxSelectWidth}"
minSelectWidth="#{bean.minSelectWidth}"
- defaultLabel="#{bean.defaultLabel}"
+ defaultLabel="click"
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}"
+ openOnEdit="true"
layout="inline"
- >
- <f:selectItem itemValue="option 1" itemLabel="Kansas City"/>
- <f:selectItem itemValue="option 2" itemLabel="Las Vegas"/>
- <f:selectItem itemValue="option 3" itemLabel="Oklahoma City"/>
- <f:selectItem itemValue="option 4" itemLabel="New Jersey"/>
- <f:selectItem itemValue="option 5" itemLabel="Detroit"/>
- <f:selectItem itemValue="option 6" itemLabel="Toronto"/>
- <f:selectItem itemValue="option 7" itemLabel="Cleveland"/>
- <f:selectItem itemValue="option 8" itemLabel="Indianapolis"/>
- <f:selectItem itemValue="option 9" itemLabel="New York"/>
+ value="#{bean.value}"
+ saveControlIcon="images/ico_cancel.gif"
+ cancelControlIcon="images/ico_ok.gif">
+ <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="A&'<laska" itemValue="A&'<laska"/>
+
</is:inplaceSelect>
- <a4j:commandButton reRender="inplace" value="12312"></a4j:commandButton>
+
+ <h:messages></h:messages>
+
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
<br/>
- <h:outputText value="value is: #{bean.value}"></h:outputText>
- <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 itemValue="option 1" itemLabel="Kansas City"/>
- <f:selectItem itemValue="option 2" itemLabel="Las Vegas"/>
- <f:selectItem itemValue="option 3" itemLabel="Oklahoma City"/>
- <f:selectItem itemValue="option 4" itemLabel="New Jersey"/>
- <f:selectItem itemValue="option 5" itemLabel="Detroit"/>
- <f:selectItem itemValue="option 6" itemLabel="Toronto"/>
- <f:selectItem itemValue="option 7" itemLabel="Cleveland"/>
- <f:selectItem itemValue="option 8" itemLabel="Indianapolis"/>
- <f:selectItem itemValue="option 9" itemLabel="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 itemValue="option 1" itemLabel="Kansas City"/>
- <f:selectItem itemValue="option 2" itemLabel="Las Vegas"/>
- <f:selectItem itemValue="option 3" itemLabel="Oklahoma City"/>
- <f:selectItem itemValue="option 4" itemLabel="New Jersey"/>
- <f:selectItem itemValue="option 5" itemLabel="Detroit"/>
- <f:selectItem itemValue="option 6" itemLabel="Toronto"/>
- <f:selectItem itemValue="option 7" itemLabel="Cleveland"/>
- <f:selectItem itemValue="option 8" itemLabel="Indianapolis"/>
- <f:selectItem itemValue="option 9" itemLabel="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 itemValue="option 1" itemLabel="Kansas City"/>
- <f:selectItem itemValue="option 2" itemLabel="Las Vegas"/>
- <f:selectItem itemValue="option 3" itemLabel="Oklahoma City"/>
- <f:selectItem itemValue="option 4" itemLabel="New Jersey"/>
- <f:selectItem itemValue="option 5" itemLabel="Detroit"/>
- <f:selectItem itemValue="option 6" itemLabel="Toronto"/>
- <f:selectItem itemValue="option 7" itemLabel="Cleveland"/>
- <f:selectItem itemValue="option 8" itemLabel="Indianapolis"/>
- <f:selectItem itemValue="option 9" itemLabel="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 itemValue="option 1" itemLabel="Kansas City"/>
- <f:selectItem itemValue="option 2" itemLabel="Las Vegas"/>
- <f:selectItem itemValue="option 3" itemLabel="Oklahoma City"/>
- <f:selectItem itemValue="option 4" itemLabel="New Jersey"/>
- <f:selectItem itemValue="option 5" itemLabel="Detroit"/>
- <f:selectItem itemValue="option 6" itemLabel="Toronto"/>
- <f:selectItem itemValue="option 7" itemLabel="Cleveland"/>
- <f:selectItem itemValue="option 8" itemLabel="Indianapolis"/>
- <f:selectItem itemValue="option 9" itemLabel="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 itemValue="option 1" itemLabel="Kansas City"/>
- <f:selectItem itemValue="option 2" itemLabel="Las Vegas"/>
- <f:selectItem itemValue="option 3" itemLabel="Oklahoma City"/>
- <f:selectItem itemValue="option 4" itemLabel="New Jersey"/>
- <f:selectItem itemValue="option 5" itemLabel="Detroit"/>
- <f:selectItem itemValue="option 6" itemLabel="Toronto"/>
- <f:selectItem itemValue="option 7" itemLabel="Cleveland"/>
- <f:selectItem itemValue="option 8" itemLabel="Indianapolis"/>
- <f:selectItem itemValue="option 9" itemLabel="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 itemValue="option 1" itemLabel="Kansas City"/>
- <f:selectItem itemValue="option 2" itemLabel="Las Vegas"/>
- <f:selectItem itemValue="option 3" itemLabel="Oklahoma City"/>
- <f:selectItem itemValue="option 4" itemLabel="New Jersey"/>
- <f:selectItem itemValue="option 5" itemLabel="Detroit"/>
- <f:selectItem itemValue="option 6" itemLabel="Toronto"/>
- <f:selectItem itemValue="option 7" itemLabel="Cleveland"/>
- <f:selectItem itemValue="option 8" itemLabel="Indianapolis"/>
- <f:selectItem itemValue="option 9" itemLabel="New York"/>
- </is:inplaceSelect>
- </td>
- </tr>
- </table>
+ <h:outputText id="text" value="value is: #{bean.value}"></h:outputText> <br/>
+ <a4j:commandButton reRender="inplace, text" value="Ajax"></a4j:commandButton>
+ <h:commandButton value="Server"></h:commandButton>
</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-04-14 16:09:29 UTC (rev 7811)
+++ trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml 2008-04-14 16:09:45 UTC (rev 7812)
@@ -4,7 +4,9 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:is="http://labs.jboss.com/jbossrichfaces/ui/inplaceSelect">
+ xmlns:is="http://labs.jboss.com/jbossrichfaces/ui/inplaceSelect"
+ xmlns:a4j="http://richfaces.org/a4j"
+ >
<head>
@@ -65,11 +67,12 @@
<div style="width: 300px">
Fresh off his victory in the Florida primary, Sen. John McCain is poised to take another big prize. Former
<is:inplaceSelect
+ id="inplace"
editEvent="#{bean.editEvent}"
maxSelectWidth="#{bean.maxSelectWidth}"
minSelectWidth="#{bean.minSelectWidth}"
selectWidth="#{bean.selectWidth}"
- defaultLabel="#{bean.defaultLabel}"
+ defaultLabel="click"
controlsVerticalPosition="#{bean.controlsPosition}"
controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
value="#{bean.value}"
@@ -87,195 +90,17 @@
<f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
<f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
<f:selectItem itemLabel="option 9" itemValue="New York"/>
- </is:inplaceSelect>
+ <f:selectItem itemLabel="A&'<laska" itemValue="A&'<laska"/>
+ </is:inplaceSelect>
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>
<br/>
- <h:outputText value="value is: #{bean.value}"></h:outputText>
- <h:commandButton value="submit"></h:commandButton>
+ <h:outputText id="text" value="value is: #{bean.value}"></h:outputText> <br/>
+ <a4j:commandButton reRender="inplace, text" value="Ajax"></a4j:commandButton>
+ <h:commandButton value="Server"></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, 9 months
JBoss Rich Faces SVN: r7811 - in trunk/samples/inplaceInput-sample/src/main/webapp: pages and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-04-14 12:09:29 -0400 (Mon, 14 Apr 2008)
New Revision: 7811
Modified:
trunk/samples/inplaceInput-sample/src/main/webapp/WEB-INF/web.xml
trunk/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp
trunk/samples/inplaceInput-sample/src/main/webapp/pages/index.xhtml
Log:
Modified: trunk/samples/inplaceInput-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/samples/inplaceInput-sample/src/main/webapp/WEB-INF/web.xml 2008-04-14 16:09:05 UTC (rev 7810)
+++ trunk/samples/inplaceInput-sample/src/main/webapp/WEB-INF/web.xml 2008-04-14 16:09:29 UTC (rev 7811)
@@ -2,7 +2,7 @@
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Archetype Created Web Application</display-name>
-<!--
+
<context-param>
<param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
<param-value>com.sun.facelets.FaceletViewHandler</param-value>
@@ -10,7 +10,7 @@
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
- </context-param> -->
+ </context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
Modified: trunk/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp 2008-04-14 16:09:05 UTC (rev 7810)
+++ trunk/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp 2008-04-14 16:09:29 UTC (rev 7811)
@@ -73,7 +73,6 @@
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}"
inputWidth="#{bean.width}"
@@ -89,96 +88,13 @@
saveControlIcon="#{bean.saveControlIcon}"
cancelControlIcon="#{bean.cancelControlIcon}"
tabindex="#{bean.tabindex}"
- layout="inline"
+ layout="inline"
+ onchange="window.status='onchange';"
>
</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}"
- 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}"
- 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}"
- 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}"
- 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-04-14 16:09:05 UTC (rev 7810)
+++ trunk/samples/inplaceInput-sample/src/main/webapp/pages/index.xhtml 2008-04-14 16:09:29 UTC (rev 7811)
@@ -96,89 +96,6 @@
</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}"
- 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}"
- 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}"
- 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}"
- 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, 9 months