RE: Tapestry 5.3.2 autocomplete mixin not working

2012-09-26 Thread djst
Hey

I fixed the problem. It turned out that some of my code in onActivate() caused 
it not to
call onProvideCompletions(), so the error was a bit besides my question. Sorry 
about that.

Anyway, thanks for your quick answers and help!

/David

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

Hello,

I had similar weird trouble once. I was using tapestry 5.3 and it did not
found my setupRender() function in one of my page classes. I did not do
anything specific to correct that bug except from restarting eclipse and
adding the correct attributes (MarkupWriter and Event) to the function even
if they are not required. I am really not sure what corrects the problem.

I will briefly introduce myself given that it is the first time I am
sending an email to this list. I'm a young french software architect
working in a small and young company called Enyx. I'm using Tapestry for 1
year and a half but I just recently subscribe to the mailing-lists.

Charles Capon.

2012/9/25 djst [hidden email]/user/SendEmail.jtp?type=nodenode=5716484i=0

 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:
 [hidden email]/user/SendEmail.jtp?type=nodenode=5716484i=1]
 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=nodenode=5716479i=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 +] 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;
 
  ListString onProvideCompletionsFromTestField(String partial)
  {
  ListString matches = new ArrayListString();
  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=nodenode=5716479i=1
  For additional commands, e-mail: [hidden
 email]/user/SendEmail.jtp?type=nodenode=5716479i=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
 .
 NAML
 http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=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

Re: Tapestry 5.3.2 autocomplete mixin not working

2012-09-25 Thread djst
Hmm okay. No I'm not getting any java errors. It seems like tapestry is not
recognizing my onProvideCompletionsFrom function as an event handler. 

Sorry about my late reply. I've been on vacation from my work...



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-2-autocomplete-mixin-not-working-tp5716234p5716476.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



Re: Tapestry 5.3.2 autocomplete mixin not working

2012-09-25 Thread Chris Cureau
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 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 +] 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;

 ListString onProvideCompletionsFromTestField(String partial)
 {
 ListString matches = new ArrayListString();
 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




RE: Tapestry 5.3.2 autocomplete mixin not working

2012-09-25 Thread djst
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=nodenode=5716479i=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 +] 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;

 ListString onProvideCompletionsFromTestField(String partial)
 {
 ListString matches = new ArrayListString();
 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=nodenode=5716479i=1
 For additional commands, e-mail: [hidden 
 email]/user/SendEmail.jtp?type=nodenode=5716479i=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 
herehttp://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=5716234code=ZGF2aWRAY3R1LmRrfDU3MTYyMzR8MTAwOTA0NzY3OQ==.
NAMLhttp://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=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.

Re: Tapestry 5.3.2 autocomplete mixin not working

2012-09-25 Thread Charlouze
Hello,

I had similar weird trouble once. I was using tapestry 5.3 and it did not
found my setupRender() function in one of my page classes. I did not do
anything specific to correct that bug except from restarting eclipse and
adding the correct attributes (MarkupWriter and Event) to the function even
if they are not required. I am really not sure what corrects the problem.

I will briefly introduce myself given that it is the first time I am
sending an email to this list. I'm a young french software architect
working in a small and young company called Enyx. I'm using Tapestry for 1
year and a half but I just recently subscribe to the mailing-lists.

Charles Capon.

2012/9/25 djst da...@ctu.dk

 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=nodenode=5716479i=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 +] 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;
 
  ListString onProvideCompletionsFromTestField(String partial)
  {
  ListString matches = new ArrayListString();
  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=nodenode=5716479i=1
  For additional commands, e-mail: [hidden
 email]/user/SendEmail.jtp?type=nodenode=5716479i=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_codenode=5716234code=ZGF2aWRAY3R1LmRrfDU3MTYyMzR8MTAwOTA0NzY3OQ==
 .
 NAML
 http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=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.



Re: Tapestry 5.3.2 autocomplete mixin not working

2012-09-13 Thread Josh Canfield
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 +] 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;

 ListString onProvideCompletionsFromTestField(String partial)
 {
 ListString matches = new ArrayListString();
 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