You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "John Ghidiu (Created) (JIRA)" <ji...@apache.org> on 2011/11/21 18:18:53 UTC

[jira] [Created] (CLK-780) AutoCompleteTextField does not pop up suggestion list when in a form

AutoCompleteTextField does not pop up suggestion list when in a form
--------------------------------------------------------------------

                 Key: CLK-780
                 URL: https://issues.apache.org/jira/browse/CLK-780
             Project: Click
          Issue Type: Bug
          Components: extras
    Affects Versions: 2.3.0
         Environment: Windows 7, Eclipse 3.4, Google App Engine SDK (latest), JRE 1.6_20
            Reporter: John Ghidiu


I noticed that the AutoCompleteTextField does not seem to work. Looking at the code, I found that dispatchActionEvent() may not be called (in particular, if there is no request parameter with the field's name, then  dispatchActionEvent() will not be called).

As a [temporary] fix, I subclass AutoCompleteTextField and override onProcess() something like this:

if (getContext().isAjaxRequest()) {
    dispatchActionEvent
} else {
    super.onProcess();
}

This seems to work in my case, but it is entirely likely that I am doing something dangerous/stupid/wrong.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CLK-780) AutoCompleteTextField does not pop up suggestion list when in a form

Posted by "Bob Schellink (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13154307#comment-13154307 ] 

Bob Schellink commented on CLK-780:
-----------------------------------

Below is an example of AutoCompleteTextField inside a form working for me?

http://click.avoka.com/click-examples/ajax/auto-complete.htm
                
> AutoCompleteTextField does not pop up suggestion list when in a form
> --------------------------------------------------------------------
>
>                 Key: CLK-780
>                 URL: https://issues.apache.org/jira/browse/CLK-780
>             Project: Click
>          Issue Type: Bug
>          Components: extras
>    Affects Versions: 2.3.0
>         Environment: Windows 7, Eclipse 3.4, Google App Engine SDK (latest), JRE 1.6_20
>            Reporter: John Ghidiu
>              Labels: AutoCompleteTextField
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> I noticed that the AutoCompleteTextField does not seem to work. Looking at the code, I found that dispatchActionEvent() may not be called (in particular, if there is no request parameter with the field's name, then  dispatchActionEvent() will not be called).
> As a [temporary] fix, I subclass AutoCompleteTextField and override onProcess() something like this:
> if (getContext().isAjaxRequest()) {
>     dispatchActionEvent
> } else {
>     super.onProcess();
> }
> This seems to work in my case, but it is entirely likely that I am doing something dangerous/stupid/wrong.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira