myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r419709 - in /myfaces/tobago/trunk: core/src/main/java/org/apache/myfaces/tobago/taglib/extension/InExtensionTag.java example/demo/src/main/webapp/overview/basicControls.jsp
Date Thu, 06 Jul 2006 21:49:49 GMT
Author: lofwyr
Date: Thu Jul  6 14:49:49 2006
New Revision: 419709

URL: http://svn.apache.org/viewvc?rev=419709&view=rev
Log:
TOBAGO-93

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/InExtensionTag.java
    myfaces/tobago/trunk/example/demo/src/main/webapp/overview/basicControls.jsp

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/InExtensionTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/InExtensionTag.java?rev=419709&r1=419708&r2=419709&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/InExtensionTag.java
(original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/InExtensionTag.java
Thu Jul  6 14:49:49 2006
@@ -31,6 +31,7 @@
 import org.apache.myfaces.tobago.taglib.decl.IsRequired;
 import org.apache.myfaces.tobago.taglib.decl.HasOnchange;
 import org.apache.myfaces.tobago.taglib.decl.HasValueChangeListener;
+import org.apache.myfaces.tobago.taglib.decl.HasSuggestMethod;
 
 import javax.servlet.jsp.JspException;
 import javax.servlet.jsp.tagext.BodyTagSupport;
@@ -54,7 +55,7 @@
 public class InExtensionTag extends BodyTagSupport
     implements HasValue, HasValueChangeListener, HasValidator, HasIdBindingAndRendered,
     HasConverter, IsReadonly, IsDisabled, HasOnchange,
-    IsRequired, HasTip, HasLabel, IsPassword, IsFocus {
+    IsRequired, HasTip, HasLabel, IsPassword, IsFocus, HasSuggestMethod {
 
   private String binding;
   private String converter;
@@ -70,6 +71,7 @@
   private String value;
   private String valueChangeListener;
   private String onchange;
+  private String suggestMethod;
 
   private LabelExtensionTag labelTag;
   private InTag inTag;
@@ -111,6 +113,9 @@
      if (onchange != null) {
       inTag.setOnchange(onchange);
     }
+    if (suggestMethod != null) {
+     inTag.setSuggestMethod(suggestMethod);
+   }
     if (disabled != null) {
       inTag.setDisabled(disabled);
     }
@@ -159,6 +164,7 @@
     value = null;
     valueChangeListener = null;
     onchange = null;
+    suggestMethod = null;
   }
 
   public void setValue(String value) {
@@ -191,6 +197,10 @@
 
   public void setOnchange(String onchange) {
     this.onchange = onchange;
+  }
+
+  public void setSuggestMethod(String suggestMethod) {
+    this.suggestMethod = suggestMethod;
   }
 
   public void setValidator(String validator) {

Modified: myfaces/tobago/trunk/example/demo/src/main/webapp/overview/basicControls.jsp
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/demo/src/main/webapp/overview/basicControls.jsp?rev=419709&r1=419708&r2=419709&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/demo/src/main/webapp/overview/basicControls.jsp (original)
+++ myfaces/tobago/trunk/example/demo/src/main/webapp/overview/basicControls.jsp Thu Jul 
6 14:49:49 2006
@@ -38,10 +38,9 @@
           <f:facet name="layout">
             <tc:gridLayout />
           </f:facet>
-          <tx:label value="#{overviewBundle.basic_textboxLabel}" tip="test">
-            <tc:in value="#{overviewController.basicInput}"
-                suggestMethod="#{overviewController.getInputSuggestItems}" />
-          </tx:label>
+          <tx:in value="#{overviewController.basicInput}"
+              label="#{overviewBundle.basic_textboxLabel}" tip="test"
+              suggestMethod="#{overviewController.getInputSuggestItems}" />
           <tx:date value="#{overviewController.basicDate}"
               label="#{overviewBundle.basic_dateLabel}">
             <f:convertDateTime pattern="dd.MM.yyyy" />



Mime
View raw message