Hmm.. I cut and pasted your example and it works for me. Are you getting
javascript errors?



On Wed, Sep 12, 2012 at 7:48 AM, djst <da...@ctu.dk> wrote:

> Hi there.
>
> I'm trying to get the auto-completion mixin in Tapestry 5.3.2 to work put I
> cannot get it to function properly. Tapestry does not call my
> onProvideCompletionsFrom eventhandler. When inputting characters into the
> textfield I get a little loading icon on the right side of my text field
> but
> nothing further happens. If I uncomment my eventhandler function exactly
> the
> same happens. I can, though, see that a POST is sent since I'm getting the
> following debug message:
>
> 127.0.0.1 -  -  [12/sep/2012:14:29:19 +0000] "POST
> /RMS/randomise.testfield:autocomplete HTTP/1.1" 200 29
> "http://localhost:8080/RMS/randomise";
>
> Here is my code:
>
> From my Someclass.tml:
>
> <t:textfield t:id="TestField" t:value="testValue" t:mixins="autocomplete"/>
>
> From my Someclass.java:
>
> public class SomeClass{
>
>         @Property
>         String testValue;
>
>         List<String> onProvideCompletionsFromTestField(String partial)
>         {
>                 List<String> matches = new ArrayList<String>();
>                 String testString = "help";
>                 if(testString.contains(partial))
>                         matches.add(testString);
>
>                 return matches;
>         }
> }
>
> I then try to type "h" in the textfield and I suppose I it should
> autocomplete to "help", as I said, the loading icon just keeps spinning and
> nothing happens. I've tried different suggestions from other posts where
> people are having the same problem, but non of them turned out to be fixes.
>
> Do you have any idea how I can fix this issue?
>
> Thanks in advance.
>
> /David
>
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-2-autocomplete-mixin-not-working-tp5716234.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to