Author: mvitenkov
Date: 2008-02-27 09:30:17 -0500 (Wed, 27 Feb 2008)
New Revision: 6368
Added:
trunk/test-applications/qa/Performance Suite/DataModels/comboBox/
trunk/test-applications/qa/Performance Suite/DataModels/comboBox/Combobox.java
trunk/test-applications/qa/Performance Suite/DataModels/comboBox/Combobox.jsp
trunk/test-applications/qa/Performance Suite/DataModels/comboBox/ComboboxProperty.jsp
Log:
Added: trunk/test-applications/qa/Performance Suite/DataModels/comboBox/Combobox.java
===================================================================
--- trunk/test-applications/qa/Performance Suite/DataModels/comboBox/Combobox.java
(rev 0)
+++ trunk/test-applications/qa/Performance
Suite/DataModels/comboBox/Combobox.java 2008-02-27 14:30:17 UTC (rev 6368)
@@ -0,0 +1,245 @@
+package combobox;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import javax.faces.event.ValueChangeEvent;
+import javax.faces.model.SelectItem;
+
+import util.data.Data;
+
+public class Combobox {
+ public boolean disabled;
+ public String defaultLabel;
+ public boolean filterNewValues;
+ public String hideDelay;
+ public boolean directInputSuggestions;
+ public boolean immediate;
+ public int inputSize;
+ public String width;
+ public String value;
+ public int tabindex;
+ public List<String> suggestionValues;
+ public int size;
+ public String showDelay;
+ public boolean required;
+ public String requiredMessage;
+ public boolean rendered;
+ public boolean selectFirstOnUpdate;
+ public int maxlength;
+ public boolean enableManualInput;
+ public String listHeight;
+ public String listWidth;
+ public ArrayList<SelectItem> selectItem;
+
+ public Combobox() {
+ this.disabled = false;
+ this.defaultLabel = "defaultLabel";
+ this.filterNewValues = false;
+ this.hideDelay = "100";
+ this.directInputSuggestions = true;
+ this.immediate = false;
+ this.inputSize = 4;
+ this.width = "300";
+ this.value = "";
+ this.tabindex = 2;
+ this.size = 5;
+ this.showDelay = "200";
+ this.required = false;
+ this.requiredMessage = "requiredMessage";
+ this.rendered = true;
+ this.selectFirstOnUpdate = true;
+ this.maxlength = 5;
+ this.enableManualInput = true;
+ this.listHeight = "400";
+ this.listWidth = "350";
+ this.suggestionValues = new ArrayList<String>();
+ this.selectItem = new ArrayList<SelectItem>();
+ Random r = new Random();
+ for(int i = 0; i < 10; i++){
+ suggestionValues.add("suggestionValues " + r.nextInt(10) + " N=" +
i);
+ selectItem.add(new SelectItem("selectItem " + r.nextInt(10) + "
N=" + i));
+ }
+ }
+
+ public ArrayList<SelectItem> getSelectItem() {
+ return selectItem;
+ }
+
+ public void setSelectItem(ArrayList<SelectItem> selectItem) {
+ this.selectItem = selectItem;
+ }
+
+ public void valueChangeListener(ValueChangeEvent event) {
+ System.out.println(event.getNewValue());
+ }
+
+ public boolean isDisabled() {
+ return disabled;
+ }
+
+ public void setDisabled(boolean disabled) {
+ this.disabled = disabled;
+ }
+
+ public String getDefaultLabel() {
+ return defaultLabel;
+ }
+
+ public void setDefaultLabel(String defaultLabel) {
+ this.defaultLabel = defaultLabel;
+ }
+
+ public String getHideDelay() {
+ return hideDelay;
+ }
+
+ public void setHideDelay(String hideDelay) {
+ this.hideDelay = hideDelay;
+ }
+
+ public boolean isDirectInputSuggestions() {
+ return directInputSuggestions;
+ }
+
+ public void setDirectInputSuggestions(boolean directInputSuggestions) {
+ this.directInputSuggestions = directInputSuggestions;
+ }
+
+ public boolean isImmediate() {
+ return immediate;
+ }
+
+ public void setImmediate(boolean immediate) {
+ this.immediate = immediate;
+ }
+
+ public int getInputSize() {
+ return inputSize;
+ }
+
+ public void setInputSize(int inputSize) {
+ this.inputSize = inputSize;
+ }
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ public int getTabindex() {
+ return tabindex;
+ }
+
+ public void setTabindex(int tabindex) {
+ this.tabindex = tabindex;
+ }
+
+ public List<String> getSuggestionValues() {
+ return suggestionValues;
+ }
+
+ public void setSuggestionValues(List<String> suggestionValues) {
+ this.suggestionValues = suggestionValues;
+ }
+
+ public int getSize() {
+ return size;
+ }
+
+ public void setSize(int size) {
+ this.size = size;
+ }
+
+ public boolean isFilterNewValues() {
+ return filterNewValues;
+ }
+
+ public void setFilterNewValues(boolean filterNewValues) {
+ this.filterNewValues = filterNewValues;
+ }
+
+ public String getShowDelay() {
+ return showDelay;
+ }
+
+ public void setShowDelay(String showDelay) {
+ this.showDelay = showDelay;
+ }
+
+ public boolean isRequired() {
+ return required;
+ }
+
+ public void setRequired(boolean required) {
+ this.required = required;
+ }
+
+ public String getRequiredMessage() {
+ return requiredMessage;
+ }
+
+ public void setRequiredMessage(String requiredMessage) {
+ this.requiredMessage = requiredMessage;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public boolean isSelectFirstOnUpdate() {
+ return selectFirstOnUpdate;
+ }
+
+ public void setSelectFirstOnUpdate(boolean selectFirstOnUpdate) {
+ this.selectFirstOnUpdate = selectFirstOnUpdate;
+ }
+
+ public int getMaxlength() {
+ return maxlength;
+ }
+
+ public void setMaxlength(int maxlength) {
+ this.maxlength = maxlength;
+ }
+
+ public boolean isEnableManualInput() {
+ return enableManualInput;
+ }
+
+ public void setEnableManualInput(boolean enableManualInput) {
+ this.enableManualInput = enableManualInput;
+ }
+
+ public String getListHeight() {
+ return listHeight;
+ }
+
+ public void setListHeight(String listHeight) {
+ this.listHeight = listHeight;
+ }
+
+ public String getListWidth() {
+ return listWidth;
+ }
+
+ public void setListWidth(String listWidth) {
+ this.listWidth = listWidth;
+ }
+}
Added: trunk/test-applications/qa/Performance Suite/DataModels/comboBox/Combobox.jsp
===================================================================
--- trunk/test-applications/qa/Performance Suite/DataModels/comboBox/Combobox.jsp
(rev 0)
+++ trunk/test-applications/qa/Performance
Suite/DataModels/comboBox/Combobox.jsp 2008-02-27 14:30:17 UTC (rev 6368)
@@ -0,0 +1,25 @@
+<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib
uri="http://richfaces.org/rich" prefix="rich" %>
+
+<f:subview id="comboboxSubviewID">
+ <rich:comboBox id="comboboxID" disabled="#{combobox.disabled}"
defaultLabel="#{combobox.defaultLabel}"
+ filterNewValues="#{combobox.filterNewValues}"
+ directInputSuggestions="#{combobox.directInputSuggestions}"
immediate="#{combobox.immediate}" inputSize="#{combobox.inputSize}"
+ width="#{combobox.width}"
valueChangeListener="#{combobox.valueChangeListener}"
value="#{combobox.value}"
+ tabindex="#{combobox.tabindex}"
suggestzionValues="#{combobox.suggestionValues}"
size="#{combobox.size}"
+ required="#{combobox.required}"
requiredMessage="#{combobox.requiredMessage}"
+ rendered="#{combobox.rendered}"
selectFirstOnUpdate="#{combobox.selectFirstOnUpdate}"
maxlength="#{combobox.maxlength}"
+ enableManualInput="#{combobox.enableManualInput}"
listHeight="#{combobox.listHeight}" listWidth="#{combobox.listWidth}"
+ onblur="#{event.onblur}"
onchange="#{event.onchange}" onclick="#{event.onclick}"
ondblclick="#{event.ondblclick}"
+ onfocus="#{event.onfocus}"
onitemselected="#{event.onitemselected}"
onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}"
+ onkeyup="#{event.onkeyup}"
onlistcall="#{event.onlistcall}" onmousedown="#{event.onmousedown}"
onmousemove="#{event.onmousemove}"
+ onmouseout="#{event.onmouseout}"
onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}"
onselect="#{event.onselect}">
+ <f:selectItem itemValue="selectItem 1"/>
+ <f:selectItem itemValue="selectItem 2"/>
+ <f:selectItem itemValue="selectItem 3"/>
+ <f:selectItems value="#{combobox.selectItem}"/>
+ </rich:comboBox>
+
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/qa/Performance
Suite/DataModels/comboBox/ComboboxProperty.jsp
===================================================================
--- trunk/test-applications/qa/Performance Suite/DataModels/comboBox/ComboboxProperty.jsp
(rev 0)
+++ trunk/test-applications/qa/Performance
Suite/DataModels/comboBox/ComboboxProperty.jsp 2008-02-27 14:30:17 UTC (rev 6368)
@@ -0,0 +1,62 @@
+<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib
uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="comboboxPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="defaultLabel"></h:outputText>
+ <h:inputText value="#{combobox.defaultLabel}"
onchange="submit();"></h:inputText>
+
+ <h:outputText value="filterNewValues"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.filterNewValues}"
onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="inputSize"></h:outputText>
+ <h:inputText value="#{combobox.inputSize}"
onchange="submit();"></h:inputText>
+
+ <h:outputText value="value"></h:outputText>
+ <h:inputText value="#{combobox.value}"
onchange="submit();"></h:inputText>
+
+ <h:outputText value="tabindex"></h:outputText>
+ <h:inputText value="#{combobox.tabindex}"
onchange="submit();"></h:inputText>
+
+ <h:outputText value="maxlength"></h:outputText>
+ <h:inputText value="#{combobox.maxlength}"
onchange="submit();"></h:inputText>
+
+ <h:outputText value="width"></h:outputText>
+ <h:inputText value="#{combobox.width}"
onchange="submit();"></h:inputText>
+
+ <h:outputText value="size"></h:outputText>
+ <h:inputText value="#{combobox.size}"
onchange="submit();"></h:inputText>
+
+ <h:outputText value="listHeight"></h:outputText>
+ <h:inputText value="#{combobox.listHeight}"
onchange="submit();"></h:inputText>
+
+ <h:outputText value="listWidth"></h:outputText>
+ <h:inputText value="#{combobox.listWidth}"
onchange="submit();"></h:inputText>
+
+ <h:outputText value="enableManualInput"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.enableManualInput}"
onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="selectFirstOnUpdate"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.selectFirstOnUpdate}"
onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="directInputSuggestions"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.directInputSuggestions}"
onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="disabled"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.disabled}"
onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.rendered}"
onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="immediate"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.immediate}"
onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="required"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.required}"
onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="requiredMessage"></h:outputText>
+ <h:inputText value="#{combobox.requiredMessage}"
onchange="submit();"></h:inputText>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file