You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Patrick Moriarty <pm...@annadaletech.com> on 2008/07/09 12:01:26 UTC
[T5] Using Autocomplete.configure to specify an afterUpdateElement function
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
Re: [T5] Using Autocomplete.configure to specify an afterUpdateElement function
Posted by Patrick Moriarty <pm...@annadaletech.com>.
Sorry, guess I should have searched first. Could consider this a bump I
suppose :)
On 09/07/2008, Joel Wiegman <Jo...@dswinc.com> 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:andreoua@gmail.com]
> 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 <pm...@annadaletech.com> 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 - andyhot@apache.org - http://blog.andyhot.gr Tapestry /
> Tacos developer Open Source / JEE Consulting
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
RE: [T5] Using Autocomplete.configure to specify an afterUpdateElement function
Posted by Joel Wiegman <Jo...@dswinc.com>.
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:andreoua@gmail.com]
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 <pm...@annadaletech.com> 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 - andyhot@apache.org - http://blog.andyhot.gr Tapestry /
Tacos developer Open Source / JEE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] Using Autocomplete.configure to specify an afterUpdateElement function
Posted by Andreas Andreou <an...@gmail.com>.
i think there's already a jira for this
On 7/9/08, Patrick Moriarty <pm...@annadaletech.com> 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 - andyhot@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org