Re: [T5] Using Autocomplete.configure to specify an afterUpdateElement function

2008-07-09 Thread Patrick Moriarty
Sorry, guess I should have searched first.  Could consider this a bump I
suppose :)

On 09/07/2008, Joel Wiegman <[EMAIL PROTECTED]> wrote:
>
> There is indeed... Looks like the fix version is "5.0" though, which is
> some strange holding place where defects seem to disappear to:
>
> https://issues.apache.org/jira/browse/TAPESTRY-2234
>
>
> -Original Message-
> From: Andreas Andreou [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 09, 2008 8:58 AM
> To: Tapestry users
> Subject: Re: [T5] Using Autocomplete.configure to specify an
> afterUpdateElement function
>
> i think there's already a jira for this
>
> On 7/9/08, Patrick Moriarty <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> >  Although I can subclass Autocomplete and implement the
> > configure(JSONObject)  method to specify an afterUpdateElement, the
> > fuction I specify (as a String
> >  here) gets surrounded by double-quotes by JSONObject.toString()
> >
> >  Thus it is not interpreted as a function.  It would be nice if I
> > could use  some object, JavascriptFunction for example, which would
> > not be quoted by  toString().
> >
> >  protected void configure(JSONObject config) {
> >   config.put("afterUpdateElement", "function (element,
> > selectedElement)  {element.blur();}");  }
> >
> >  results in the following script:
> >
> >  new Ajax.Autocompleter(xxx, xxx:menu', '/xxx/xxx:autocomplete',
> > {"indicator":"xxx:loader","afterUpdateElement":"function (element,
> >  selectedElement) {element.blur();}","paramName":"t:input"});
> >
> >  Should I create a JIRA issue for this?
> >
> >  Regards,
> >
> >  Paudi
> >
>
>
> --
> Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr Tapestry /
> Tacos developer Open Source / JEE Consulting
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: [T5] Using Autocomplete.configure to specify an afterUpdateElement function

2008-07-09 Thread Joel Wiegman
There is indeed... Looks like the fix version is "5.0" though, which is
some strange holding place where defects seem to disappear to:

https://issues.apache.org/jira/browse/TAPESTRY-2234 

-Original Message-
From: Andreas Andreou [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2008 8:58 AM
To: Tapestry users
Subject: Re: [T5] Using Autocomplete.configure to specify an
afterUpdateElement function

i think there's already a jira for this

On 7/9/08, Patrick Moriarty <[EMAIL PROTECTED]> wrote:
> Hi,
>
>  Although I can subclass Autocomplete and implement the 
> configure(JSONObject)  method to specify an afterUpdateElement, the 
> fuction I specify (as a String
>  here) gets surrounded by double-quotes by JSONObject.toString()
>
>  Thus it is not interpreted as a function.  It would be nice if I 
> could use  some object, JavascriptFunction for example, which would 
> not be quoted by  toString().
>
>  protected void configure(JSONObject config) {
>   config.put("afterUpdateElement", "function (element, 
> selectedElement)  {element.blur();}");  }
>
>  results in the following script:
>
>  new Ajax.Autocompleter(xxx, xxx:menu', '/xxx/xxx:autocomplete',  
> {"indicator":"xxx:loader","afterUpdateElement":"function (element,
>  selectedElement) {element.blur();}","paramName":"t:input"});
>
>  Should I create a JIRA issue for this?
>
>  Regards,
>
>  Paudi
>


--
Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr Tapestry /
Tacos developer Open Source / JEE Consulting

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] Using Autocomplete.configure to specify an afterUpdateElement function

2008-07-09 Thread Andreas Andreou
i think there's already a jira for this

On 7/9/08, Patrick Moriarty <[EMAIL PROTECTED]> wrote:
> Hi,
>
>  Although I can subclass Autocomplete and implement the configure(JSONObject)
>  method to specify an afterUpdateElement, the fuction I specify (as a String
>  here) gets surrounded by double-quotes by JSONObject.toString()
>
>  Thus it is not interpreted as a function.  It would be nice if I could use
>  some object, JavascriptFunction for example, which would not be quoted by
>  toString().
>
>  protected void configure(JSONObject config) {
>   config.put("afterUpdateElement", "function (element, selectedElement)
>  {element.blur();}");
>  }
>
>  results in the following script:
>
>  new Ajax.Autocompleter(xxx, xxx:menu', '/xxx/xxx:autocomplete',
>  {"indicator":"xxx:loader","afterUpdateElement":"function (element,
>  selectedElement) {element.blur();}","paramName":"t:input"});
>
>  Should I create a JIRA issue for this?
>
>  Regards,
>
>  Paudi
>


-- 
Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]