You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2005/12/17 21:42:18 UTC

svn commit: r357385 - in /incubator/tobago/trunk: tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/ tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/extension/ tobago-tool/gendoc/src/main/webapp/screenshot/

Author: bommel
Date: Sat Dec 17 12:41:21 2005
New Revision: 357385

URL: http://svn.apache.org/viewcvs?rev=357385&view=rev
Log:
try to fix MYFACES-956

Added:
    incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectManyListboxExtensionTag.java
    incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectOneListboxExtensionTag.java
Modified:
    incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectManyListboxTag.java
    incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectManyListboxTagDeclaration.java
    incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneChoiceTag.java
    incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneListboxTag.java
    incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectOneChoiceExtensionTag.java
    incubator/tobago/trunk/tobago-tool/gendoc/src/main/webapp/screenshot/selectManyListBox.jsp
    incubator/tobago/trunk/tobago-tool/gendoc/src/main/webapp/screenshot/selectOneListbox.jsp

Modified: incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectManyListboxTag.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectManyListboxTag.java?rev=357385&r1=357384&r2=357385&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectManyListboxTag.java (original)
+++ incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectManyListboxTag.java Sat Dec 17 12:41:21 2005
@@ -19,20 +19,21 @@
  */
 package org.apache.myfaces.tobago.taglib.component;
 
-import static org.apache.myfaces.tobago.TobagoConstants.FACET_LAYOUT;
-import org.apache.myfaces.tobago.component.ComponentUtil;
+
 import org.apache.myfaces.tobago.component.UISelectMany;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 
 import javax.faces.component.UIComponent;
-import javax.servlet.jsp.JspException;
-
 
 public class SelectManyListboxTag extends SelectManyTag implements SelectManyListboxTagDeclaration {
 
+  private static final Log LOG = LogFactory.getLog(SelectManyListboxTag.class);
+
   public String getComponentType() {
     return UISelectMany.COMPONENT_TYPE;
   }
-
+  /*
   public int doEndTag() throws JspException {
     UIComponent component = getComponentInstance();
     // TODO remove this
@@ -42,5 +43,13 @@
       component.getFacets().put(FACET_LAYOUT, layout);
     }
     return super.doEndTag();
+  } */
+
+  protected void setProperties(UIComponent component) {
+    if (label != null) {
+      LOG.warn("the label attribute is deprecated in tc:selectManyListbox, " +
+          "please use tx:selectManyListbox instead.");
+    }
+    super.setProperties(component);
   }
 }

Modified: incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectManyListboxTagDeclaration.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectManyListboxTagDeclaration.java?rev=357385&r1=357384&r2=357385&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectManyListboxTagDeclaration.java (original)
+++ incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectManyListboxTagDeclaration.java Sat Dec 17 12:41:21 2005
@@ -29,6 +29,8 @@
  */
 @Tag(name="selectManyListbox")
 @UIComponentTag(UIComponent="org.apache.myfaces.tobago.component.UISelectMany")
-public interface SelectManyListboxTagDeclaration extends SelectManyTagDeclaration, HasId, HasValue, IsDisabled, HasHeight, IsInline, HasLabelAndAccessKey, IsRendered, HasBinding, HasTip {
+public interface SelectManyListboxTagDeclaration
+    extends SelectManyTagDeclaration, HasId, HasValue, IsDisabled, 
+    HasHeight, IsInline, HasLabelAndAccessKey, IsRendered, HasBinding, HasTip {
 
 }

Modified: incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneChoiceTag.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneChoiceTag.java?rev=357385&r1=357384&r2=357385&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneChoiceTag.java (original)
+++ incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneChoiceTag.java Sat Dec 17 12:41:21 2005
@@ -19,17 +19,14 @@
  */
 package org.apache.myfaces.tobago.taglib.component;
 
-import static org.apache.myfaces.tobago.TobagoConstants.FACET_LAYOUT;
-import org.apache.myfaces.tobago.component.ComponentUtil;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
 import javax.faces.component.UIComponent;
-import javax.servlet.jsp.JspException;
 
 public class SelectOneChoiceTag extends SelectOneTag implements SelectOneChoiceTagDeclaration {
 
-  private static final Log LOG = LogFactory.getLog(InTag.class);
+  private static final Log LOG = LogFactory.getLog(SelectOneChoiceTag.class);
 
 //  public int doEndTag() throws JspException {
 

Modified: incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneListboxTag.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneListboxTag.java?rev=357385&r1=357384&r2=357385&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneListboxTag.java (original)
+++ incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneListboxTag.java Sat Dec 17 12:41:21 2005
@@ -19,16 +19,18 @@
  */
 package org.apache.myfaces.tobago.taglib.component;
 
-import static org.apache.myfaces.tobago.TobagoConstants.FACET_LAYOUT;
-import org.apache.myfaces.tobago.component.ComponentUtil;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 
 import javax.faces.component.UIComponent;
-import javax.servlet.jsp.JspException;
 
 
 public class SelectOneListboxTag extends SelectOneTag implements SelectOneListboxTagDeclaration {
 
-  public int doEndTag() throws JspException {
+  private static final Log LOG = LogFactory.getLog(SelectOneListboxTag.class);
+
+
+  /*public int doEndTag() throws JspException {
 
     UIComponent component = getComponentInstance();
     // TODO remove this
@@ -37,6 +39,14 @@
       component.getFacets().put(FACET_LAYOUT, layout);
     }
     return super.doEndTag();
+  } */
+
+  protected void setProperties(UIComponent component) {
+    if (label != null) {
+      LOG.warn("the label attribute is deprecated in tc:selectOneListbox, " +
+          "please use tx:selectOneListbox instead.");
+    }
+    super.setProperties(component);
   }
 
 }

Added: incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectManyListboxExtensionTag.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectManyListboxExtensionTag.java?rev=357385&view=auto
==============================================================================
--- incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectManyListboxExtensionTag.java (added)
+++ incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectManyListboxExtensionTag.java Sat Dec 17 12:41:21 2005
@@ -0,0 +1,223 @@
+/*
+ * Copyright 2002-2005 The Apache Software Foundation.
+ *
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+/*
+ * Created: Aug 13, 2002 3:04:03 PM
+ * $Id: SelectOneChoiceTag.java 347824 2005-11-01 21:03:54Z bommel $
+ */
+package org.apache.myfaces.tobago.taglib.extension;
+
+import org.apache.myfaces.tobago.taglib.decl.HasId;
+import org.apache.myfaces.tobago.taglib.decl.HasValue;
+import org.apache.myfaces.tobago.taglib.decl.IsDisabled;
+import org.apache.myfaces.tobago.taglib.decl.HasHeight;
+import org.apache.myfaces.tobago.taglib.decl.IsInline;
+import org.apache.myfaces.tobago.taglib.decl.IsRendered;
+import org.apache.myfaces.tobago.taglib.decl.HasBinding;
+import org.apache.myfaces.tobago.taglib.decl.HasTip;
+import org.apache.myfaces.tobago.taglib.decl.HasValidator;
+import org.apache.myfaces.tobago.taglib.decl.HasConverter;
+import org.apache.myfaces.tobago.taglib.decl.HasLabel;
+import org.apache.myfaces.tobago.taglib.component.SelectManyListboxTag;
+import org.apache.myfaces.tobago.apt.annotation.Tag;
+
+import javax.servlet.jsp.tagext.BodyTagSupport;
+import javax.servlet.jsp.JspException;
+
+/*
+ * Created by IntelliJ IDEA.
+ * User: bommel
+ * Date: 16.12.2005
+ * Time: 19:12:33
+ * To change this template use File | Settings | File Templates.
+ */
+@Tag(name="selectManyListbox")
+public class SelectManyListboxExtensionTag extends BodyTagSupport
+    implements HasId, HasValue, IsDisabled, HasHeight, IsInline,
+    HasLabel, //HasLabelAndAccessKey,
+    IsRendered, HasBinding, HasTip, HasConverter, HasValidator  {
+
+  private String required;
+  private String value;
+  private String disabled;
+  private String readonly;
+  private String onchange;
+  private String labelWithAccessKey;
+  private String inline;
+  private String label;
+  private String rendered;
+  private String binding;
+  private String tip;
+  private String accessKey;
+  private String height;
+  private String converter;
+  private String validator;
+
+  private LabelExtensionTag labelTag;
+  private SelectManyListboxTag selectManyListboxTag;
+
+  @Override
+  public int doStartTag() throws JspException {
+
+    labelTag = new LabelExtensionTag();
+    labelTag.setPageContext(pageContext);
+    if (label != null) {
+      labelTag.setValue(label);
+    }
+    if (tip != null) {
+      labelTag.setTip(tip);
+    }
+    if (rendered != null) {
+      labelTag.setRendered(rendered);
+    }
+    /* TODO accessKey
+    if (labelWithAccessKey != null) {
+      label.setLabelWithAccessKey(labelWithAccessKey);
+    }
+    if (accessKey !=null) {
+      label.setAccessKey(accessKey);
+    } */
+    labelTag.setParent(getParent());
+    labelTag.doStartTag();
+
+    selectManyListboxTag = new SelectManyListboxTag();
+    selectManyListboxTag.setPageContext(pageContext);
+    if (value != null) {
+      selectManyListboxTag.setValue(value);
+    }
+    if (binding != null) {
+      selectManyListboxTag.setBinding(binding);
+    }
+
+    if (onchange != null) {
+      selectManyListboxTag.setOnchange(onchange);
+    }
+    if (validator != null) {
+      selectManyListboxTag.setValidator(validator);
+    }
+    if (converter != null) {
+      selectManyListboxTag.setConverter(converter);
+    }
+    if (disabled != null) {
+      selectManyListboxTag.setDisabled(disabled);
+    }
+    if (inline != null) {
+      selectManyListboxTag.setFocus(inline);
+    }
+    if (id != null) {
+      selectManyListboxTag.setId(id);
+    }
+    if (height != null) {
+      selectManyListboxTag.setHeight(height);
+    }
+    if (readonly != null) {
+      selectManyListboxTag.setReadonly(readonly);
+    }
+    if (required != null) {
+      selectManyListboxTag.setRequired(required);
+    }
+    selectManyListboxTag.setParent(labelTag);
+    selectManyListboxTag.doStartTag();
+
+    return super.doStartTag();
+  }
+
+  @Override
+  public int doEndTag() throws JspException {
+    selectManyListboxTag.doEndTag();
+    labelTag.doEndTag();
+    return super.doEndTag();
+  }
+
+  @Override
+  public void release() {
+    super.release();
+    binding = null;
+    onchange = null;
+    disabled = null;
+    inline = null;
+    label = null;
+    labelWithAccessKey = null;
+    accessKey = null;
+    height = null;
+    readonly = null;
+    rendered = null;
+    converter = null;
+    validator = null;
+    required = null;
+    tip = null;
+    value = null;
+  }
+
+  public void setRequired(String required) {
+    this.required = required;
+  }
+
+  public void setValue(String value) {
+    this.value = value;
+  }
+
+  public void setDisabled(String disabled) {
+    this.disabled = disabled;
+  }
+
+  public void setReadonly(String readonly) {
+    this.readonly = readonly;
+  }
+
+  public void setOnchange(String onchange) {
+    this.onchange = onchange;
+  }
+
+  public void setInline(String inline) {
+    this.inline = inline;
+  }
+
+  public void setLabel(String label) {
+    this.label = label;
+  }
+
+  public void setHeight(String height) {
+    this.height = height;
+  }
+
+  public void setLabelWithAccessKey(String labelWithAccessKey) {
+    this.labelWithAccessKey = labelWithAccessKey;
+  }
+
+  public void setAccessKey(String accessKey) {
+    this.accessKey = accessKey;
+  }
+
+  public void setValidator(String validator) {
+    this.validator = validator;
+  }
+
+  public void setConverter(String converter) {
+    this.converter = converter;
+  }
+
+  public void setRendered(String rendered) {
+    this.rendered = rendered;
+  }
+
+  public void setBinding(String binding) {
+    this.binding = binding;
+  }
+
+  public void setTip(String tip) {
+    this.tip = tip;
+  }
+}

Modified: incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectOneChoiceExtensionTag.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectOneChoiceExtensionTag.java?rev=357385&r1=357384&r2=357385&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectOneChoiceExtensionTag.java (original)
+++ incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectOneChoiceExtensionTag.java Sat Dec 17 12:41:21 2005
@@ -30,16 +30,19 @@
 import org.apache.myfaces.tobago.taglib.decl.IsInline;
 import org.apache.myfaces.tobago.taglib.decl.IsReadonly;
 import org.apache.myfaces.tobago.taglib.decl.IsRendered;
+import org.apache.myfaces.tobago.taglib.decl.HasValidator;
+import org.apache.myfaces.tobago.taglib.decl.HasConverter;
+import org.apache.myfaces.tobago.apt.annotation.Tag;
 
 import javax.servlet.jsp.JspException;
 import javax.servlet.jsp.tagext.BodyTagSupport;
 
-@org.apache.myfaces.tobago.apt.annotation.Tag(name="selectOneChoice")
+@Tag(name="selectOneChoice")
 public class SelectOneChoiceExtensionTag
     extends BodyTagSupport
     implements HasId, HasValue, IsDisabled,
     IsReadonly, HasOnchangeListener, IsInline, HasLabel,
-    IsRendered, HasBinding, HasTip {
+    IsRendered, HasBinding, HasTip , HasValidator, HasConverter {
 
   private String required;
   private String value;
@@ -51,6 +54,8 @@
   private String rendered;
   private String binding;
   private String tip;
+  private String validator;
+  private String converter;
 
   private LabelExtensionTag labelTag;
   private SelectOneChoiceTag selectOneChoiceTag;
@@ -77,15 +82,22 @@
     if (value != null) {
       selectOneChoiceTag.setValue(value);
     }
+    if (validator != null) {
+      selectOneChoiceTag.setValidator(validator);
+    }
+    if (converter != null) {
+      selectOneChoiceTag.setConverter(converter);
+    }
     if (binding != null) {
       selectOneChoiceTag.setBinding(binding);
     }
     if (onchange != null) {
-      selectOneChoiceTag.setConverter(onchange);
+      selectOneChoiceTag.setOnchange(onchange);
     }
     if (disabled != null) {
       selectOneChoiceTag.setDisabled(disabled);
     }
+
     if (inline != null) {
       selectOneChoiceTag.setFocus(inline);
     }
@@ -119,6 +131,8 @@
     disabled = null;
     inline = null;
     label = null;
+    converter = null;
+    validator = null;
     readonly = null;
     rendered = null;
     required = null;
@@ -134,6 +148,10 @@
     this.value = value;
   }
 
+  public void setValidator(String validator) {
+    this.validator = validator;
+  }
+
   public void setDisabled(String disabled) {
     this.disabled = disabled;
   }
@@ -144,6 +162,10 @@
 
   public void setOnchange(String onchange) {
     this.onchange = onchange;
+  }
+
+  public void setConverter(String converter) {
+    this.converter = converter;
   }
 
   public void setInline(String inline) {

Added: incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectOneListboxExtensionTag.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectOneListboxExtensionTag.java?rev=357385&view=auto
==============================================================================
--- incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectOneListboxExtensionTag.java (added)
+++ incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectOneListboxExtensionTag.java Sat Dec 17 12:41:21 2005
@@ -0,0 +1,227 @@
+/*
+ * Copyright 2002-2005 The Apache Software Foundation.
+ *
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+/*
+ * Created: Aug 13, 2002 3:04:03 PM
+ * $Id: SelectOneChoiceTag.java 347824 2005-11-01 21:03:54Z bommel $
+ */
+package org.apache.myfaces.tobago.taglib.extension;
+
+import org.apache.myfaces.tobago.taglib.decl.HasId;
+import org.apache.myfaces.tobago.taglib.decl.HasValue;
+import org.apache.myfaces.tobago.taglib.decl.IsDisabled;
+import org.apache.myfaces.tobago.taglib.decl.IsReadonly;
+import org.apache.myfaces.tobago.taglib.decl.HasOnchangeListener;
+import org.apache.myfaces.tobago.taglib.decl.IsRendered;
+import org.apache.myfaces.tobago.taglib.decl.HasBinding;
+import org.apache.myfaces.tobago.taglib.decl.HasHeight;
+import org.apache.myfaces.tobago.taglib.decl.HasTip;
+import org.apache.myfaces.tobago.taglib.decl.IsRequired;
+import org.apache.myfaces.tobago.taglib.decl.HasConverter;
+import org.apache.myfaces.tobago.taglib.decl.HasValidator;
+import org.apache.myfaces.tobago.taglib.decl.HasLabel;
+import org.apache.myfaces.tobago.taglib.component.SelectOneListboxTag;
+import org.apache.myfaces.tobago.apt.annotation.Tag;
+
+import javax.servlet.jsp.tagext.BodyTagSupport;
+import javax.servlet.jsp.JspException;
+
+/*
+ * Created by IntelliJ IDEA.
+ * User: bommel
+ * Date: 17.12.2005
+ * Time: 08:24:21
+ * To change this template use File | Settings | File Templates.
+ */
+/**
+ * Render a single selection option listbox.
+ */
+@Tag(name="selectOneListbox")
+public class SelectOneListboxExtensionTag
+    extends BodyTagSupport implements HasId, HasValue, IsDisabled,
+    HasLabel, // HasLabelAndAccessKey,
+    IsReadonly, HasOnchangeListener, IsRendered,
+    HasBinding, HasHeight, HasTip , IsRequired, HasConverter, HasValidator {
+  private String required;
+  private String value;
+  private String disabled;
+  private String readonly;
+  private String onchange;
+  private String labelWithAccessKey;
+  private String inline;
+  private String label;
+  private String rendered;
+  private String binding;
+  private String tip;
+  private String accessKey;
+  private String height;
+  private String converter;
+  private String validator;
+
+  private LabelExtensionTag labelTag;
+  private SelectOneListboxTag selectOneListboxTag;
+
+  @Override
+  public int doStartTag() throws JspException {
+
+    labelTag = new LabelExtensionTag();
+    labelTag.setPageContext(pageContext);
+    if (label != null) {
+      labelTag.setValue(label);
+    }
+    if (tip != null) {
+      labelTag.setTip(tip);
+    }
+    if (rendered != null) {
+      labelTag.setRendered(rendered);
+    }
+    /* TODO accessKey
+    if (labelWithAccessKey != null) {
+      label.setLabelWithAccessKey(labelWithAccessKey);
+    }
+    if (accessKey !=null) {
+      label.setAccessKey(accessKey);
+    }*/
+    labelTag.setParent(getParent());
+    labelTag.doStartTag();
+
+    selectOneListboxTag = new SelectOneListboxTag();
+    selectOneListboxTag.setPageContext(pageContext);
+    if (value != null) {
+      selectOneListboxTag.setValue(value);
+    }
+    if (binding != null) {
+      selectOneListboxTag.setBinding(binding);
+    }
+    if (onchange != null) {
+      selectOneListboxTag.setOnchange(onchange);
+    }
+    if (validator != null) {
+      selectOneListboxTag.setValidator(validator);
+    }
+    if (converter != null) {
+      selectOneListboxTag.setConverter(converter);
+    }
+    if (disabled != null) {
+      selectOneListboxTag.setDisabled(disabled);
+    }
+    if (inline != null) {
+      selectOneListboxTag.setFocus(inline);
+    }
+    if (id != null) {
+      selectOneListboxTag.setId(id);
+    }
+    if (height != null) {
+      selectOneListboxTag.setHeight(height);
+    }
+    if (readonly != null) {
+      selectOneListboxTag.setReadonly(readonly);
+    }
+    if (required != null) {
+      selectOneListboxTag.setRequired(required);
+    }
+    selectOneListboxTag.setParent(labelTag);
+    selectOneListboxTag.doStartTag();
+
+    return super.doStartTag();
+  }
+
+  @Override
+  public int doEndTag() throws JspException {
+    selectOneListboxTag.doEndTag();
+    labelTag.doEndTag();
+    return super.doEndTag();
+  }
+
+  @Override
+  public void release() {
+    super.release();
+    binding = null;
+    onchange = null;
+    disabled = null;
+    inline = null;
+    label = null;
+    labelWithAccessKey = null;
+    accessKey = null;
+    height = null;
+    readonly = null;
+    rendered = null;
+    converter = null;
+    validator = null;
+    required = null;
+    tip = null;
+    value = null;
+  }
+
+  public void setRequired(String required) {
+    this.required = required;
+  }
+
+  public void setValue(String value) {
+    this.value = value;
+  }
+
+  public void setDisabled(String disabled) {
+    this.disabled = disabled;
+  }
+
+  public void setReadonly(String readonly) {
+    this.readonly = readonly;
+  }
+
+  public void setOnchange(String onchange) {
+    this.onchange = onchange;
+  }
+
+  public void setInline(String inline) {
+    this.inline = inline;
+  }
+
+  public void setLabel(String label) {
+    this.label = label;
+  }
+
+  public void setHeight(String height) {
+    this.height = height;
+  }
+
+  public void setLabelWithAccessKey(String labelWithAccessKey) {
+    this.labelWithAccessKey = labelWithAccessKey;
+  }
+
+  public void setAccessKey(String accessKey) {
+    this.accessKey = accessKey;
+  }
+
+  public void setValidator(String validator) {
+    this.validator = validator;
+  }
+
+  public void setConverter(String converter) {
+    this.converter = converter;
+  }
+
+  public void setRendered(String rendered) {
+    this.rendered = rendered;
+  }
+
+  public void setBinding(String binding) {
+    this.binding = binding;
+  }
+
+  public void setTip(String tip) {
+    this.tip = tip;
+  }
+}

Modified: incubator/tobago/trunk/tobago-tool/gendoc/src/main/webapp/screenshot/selectManyListBox.jsp
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-tool/gendoc/src/main/webapp/screenshot/selectManyListBox.jsp?rev=357385&r1=357384&r2=357385&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-tool/gendoc/src/main/webapp/screenshot/selectManyListBox.jsp (original)
+++ incubator/tobago/trunk/tobago-tool/gendoc/src/main/webapp/screenshot/selectManyListBox.jsp Sat Dec 17 12:41:21 2005
@@ -14,6 +14,7 @@
  *    limitations under the License.
 --%>
 <%@ taglib uri="http://myfaces.apache.org/tobago/component" prefix="tc" %>
+<%@ taglib uri="http://myfaces.apache.org/tobago/extension" prefix="tx" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
 <%@ taglib tagdir="/WEB-INF/tags/layout" prefix="layout" %>
 
@@ -22,16 +23,16 @@
     <jsp:body>
       <tc:panel>
         <f:facet name="layout">
-          <tc:gridLayout rows="40px;1*" />
+          <tc:gridLayout rows="45px;1*" />
         </f:facet>
 <%-- code-sniplet-start id="selectManyListbox" --%>
-        <tc:selectManyListbox inline="true" id="LabeledInlineMultiSelect"
-                             labelWithAccessKey="Contact via: " height="90px">
+        <tx:selectManyListbox inline="true" id="LabeledInlineMultiSelect"
+                             label="Contact via: ">
           <f:selectItem itemValue="Phone" itemLabel="Phone" />
           <f:selectItem itemValue="eMail" itemLabel="eMail"/>
           <f:selectItem itemValue="Mobile" itemLabel="Mobile"/>
           <f:selectItem itemValue="Fax"  itemLabel="Faxscimile"/>
-        </tc:selectManyListbox>
+        </tx:selectManyListbox>
 <%-- code-sniplet-end id="selectManyListbox" --%>
         <tc:cell/>
 

Modified: incubator/tobago/trunk/tobago-tool/gendoc/src/main/webapp/screenshot/selectOneListbox.jsp
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-tool/gendoc/src/main/webapp/screenshot/selectOneListbox.jsp?rev=357385&r1=357384&r2=357385&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-tool/gendoc/src/main/webapp/screenshot/selectOneListbox.jsp (original)
+++ incubator/tobago/trunk/tobago-tool/gendoc/src/main/webapp/screenshot/selectOneListbox.jsp Sat Dec 17 12:41:21 2005
@@ -15,6 +15,7 @@
 --%>
 
 <%@ taglib uri="http://myfaces.apache.org/tobago/component" prefix="tc" %>
+<%@ taglib uri="http://myfaces.apache.org/tobago/extension" prefix="tx" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
 <%@ taglib tagdir="/WEB-INF/tags/layout" prefix="layout" %>
 
@@ -23,16 +24,16 @@
     <jsp:body>
       <tc:panel>
         <f:facet name="layout">
-          <tc:gridLayout rows="40px;1*" columns="300px;1*" />
+          <tc:gridLayout rows="90px;1*" columns="300px;1*" />
         </f:facet>
 <%-- code-sniplet-start id="selectOneListbox" --%>
-        <tc:selectOneListbox id="LabeledInlineSingleSelect"
-                             labelWithAccessKey="Contact via: " height="90px">
+        <tx:selectOneListbox id="LabeledInlineSingleSelect"
+                             label="Contact via: " height="90px">
           <f:selectItem itemValue="Phone" itemLabel="Phone" />
           <f:selectItem itemValue="eMail" itemLabel="eMail"/>
           <f:selectItem itemValue="Mobile" itemLabel="Mobile"/>
           <f:selectItem itemValue="Fax"  itemLabel="Faxscimile"/>
-        </tc:selectOneListbox>
+        </tx:selectOneListbox>
 <%-- code-sniplet-end id="selectOneListbox" --%>
         <tc:cell/>
         <tc:cell/>