You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2013/06/28 18:30:52 UTC

svn commit: r1497833 - in /myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main: java/org/apache/myfaces/tobago/example/test/ webapp/test/in/ webapp/test/suggest/ webapp/tx/in/

Author: lofwyr
Date: Fri Jun 28 16:30:51 2013
New Revision: 1497833

URL: http://svn.apache.org/r1497833
Log:
TOBAGO-1281: Reimplementation of the input suggest control

Added:
    myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/suggest/
    myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/suggest/tc-in-suggest.xhtml
      - copied, changed from r1497677, myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/in/inputSuggest.xhtml
    myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/suggest/tx-in-suggest.xhtml
      - copied, changed from r1497677, myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tx/in/inputSuggest.xhtml
Removed:
    myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/in/inputSuggest.xhtml
    myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tx/in/inputSuggest.xhtml
Modified:
    myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/InputSuggestController.java

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/InputSuggestController.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/InputSuggestController.java?rev=1497833&r1=1497832&r2=1497833&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/InputSuggestController.java (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/InputSuggestController.java Fri Jun 28 16:30:51 2013
@@ -19,10 +19,10 @@
 
 package org.apache.myfaces.tobago.example.test;
 
-import org.apache.myfaces.tobago.component.UIIn;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import javax.faces.component.UIInput;
 import java.util.ArrayList;
 import java.util.List;
 
@@ -31,7 +31,7 @@ public class InputSuggestController {
 
   private static final Logger LOG = LoggerFactory.getLogger(InputSuggestController.class);
 
-  public List<String> getInputSuggestItems(UIIn component) {
+  public List<String> inputSuggestItems(UIInput component) {
     String prefix = (String) component.getSubmittedValue();
     LOG.info("Creating items for prefix :\"" + prefix + "\"");
     List<String> li = new ArrayList<String>();

Copied: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/suggest/tc-in-suggest.xhtml (from r1497677, myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/in/inputSuggest.xhtml)
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/suggest/tc-in-suggest.xhtml?p2=myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/suggest/tc-in-suggest.xhtml&p1=myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/in/inputSuggest.xhtml&r1=1497677&r2=1497833&rev=1497833&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/in/inputSuggest.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/suggest/tc-in-suggest.xhtml Fri Jun 28 16:30:51 2013
@@ -28,7 +28,7 @@
     <tc:gridLayoutConstraint width="600px" height="300px"/>
 
     <tc:in value="some value" required="true" tabIndex="1"
-           tip="test" suggestMethod="#{inputSuggest.getInputSuggestItems}"/>
+           tip="test" suggestMethod="#{inputSuggest.inputSuggestItems}"/>
 
   </tc:page>
 </f:view>

Copied: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/suggest/tx-in-suggest.xhtml (from r1497677, myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tx/in/inputSuggest.xhtml)
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/suggest/tx-in-suggest.xhtml?p2=myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/suggest/tx-in-suggest.xhtml&p1=myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tx/in/inputSuggest.xhtml&r1=1497677&r2=1497833&rev=1497833&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tx/in/inputSuggest.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/suggest/tx-in-suggest.xhtml Fri Jun 28 16:30:51 2013
@@ -28,8 +28,8 @@
     </f:facet>
     <tc:gridLayoutConstraint width="600px" height="300px"/>
 
-    <tx:in value="some value" required="true" tabIndex="1" label="Suggest"
-           tip="test" suggestMethod="#{inputSuggest.getInputSuggestItems}"/>
+    <tx:in value="some value" required="true" label="Suggest"
+           tip="test" suggestMethod="#{inputSuggest.inputSuggestItems}"/>
 
   </tc:page>
 </f:view>