Hey!

Thanks for the reply, but I'm not using tapestry5-jquery.

I did make some progress though. I just tried my sample code in a fresh new 
project and it works.
Pretty weird, but I'll try to figure out what is interfering in my current 
project.

Thanks for the replies.

/David


From: ccureau [via Tapestry] [mailto:ml-node+s1045711n5716479...@n5.nabble.com]
Sent: 25. september 2012 13:38
To: David Teglbjærg
Subject: Re: Tapestry 5.3.2 autocomplete mixin not working

Hi!

This may or may not be your issue, but f you are using tapestry5-jquery,
you may have some issues with autocomplete unless you use
t:mixins="jquery/autocomplete" or disable Prototype first.

Just a thought...

On Wed, Sep 12, 2012 at 9:48 AM, djst <[hidden 
email]</user/SendEmail.jtp?type=node&node=5716479&i=0>> 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: [hidden 
> email]</user/SendEmail.jtp?type=node&node=5716479&i=1>
> For additional commands, e-mail: [hidden 
> email]</user/SendEmail.jtp?type=node&node=5716479&i=2>
>
>

________________________________
If you reply to this email, your message will be added to the discussion below:
http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-2-autocomplete-mixin-not-working-tp5716234p5716479.html
To unsubscribe from Tapestry 5.3.2 autocomplete mixin not working, click 
here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5716234&code=ZGF2aWRAY3R1LmRrfDU3MTYyMzR8MTAwOTA0NzY3OQ==>.
NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-2-autocomplete-mixin-not-working-tp5716234p5716483.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Reply via email to