You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Andreas (JIRA)" <de...@tapestry.apache.org> on 2008/02/14 19:37:10 UTC

[jira] Created: (TAPESTRY-2163) Autocomplete with forceValidOption=false doesn't accept any values besides model-ones

Autocomplete with forceValidOption=false doesn't accept any values besides model-ones
-------------------------------------------------------------------------------------

                 Key: TAPESTRY-2163
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2163
             Project: Tapestry
          Issue Type: Bug
    Affects Versions: 4.1.3
         Environment: Netbeans 6.0
Tomcat 6.0.14
Java 1.6.0_03
            Reporter: Andreas


I recently ran into some problems with Autocomplete...

Provide a Page with an Automcomplete field.
Allow this field to accept any value (set forceValidOptions = false).

Type in one of the options... everything fine.
Now provide some value besides the options... argh. The value will not be accepted and an empty value will be saved.  >:o(

This is very annoying because as a workaround you have to add just another TextField FOR EACH Autocompleter to be able to enter free values!

Please check whether it's my fault when implementing the Autocompleter or it's a real bug!

Will add testcase.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-2163) Autocomplete with forceValidOption=false doesn't accept any values besides model-ones

Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569089#action_12569089 ] 

Andreas Andreou commented on TAPESTRY-2163:
-------------------------------------------

It's much easier to try/test this if you attach a maven project - we can quickly
run it + open it this way...

> Autocomplete with forceValidOption=false doesn't accept any values besides model-ones
> -------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2163
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2163
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.3
>         Environment: Netbeans 6.0
> Tomcat 6.0.14
> Java 1.6.0_03
>            Reporter: Andreas
>         Attachments: tapestry_testcase_issue2163.zip
>
>
> I recently ran into some problems with Autocomplete...
> Provide a Page with an Automcomplete field.
> Allow this field to accept any value (set forceValidOptions = false).
> Type in one of the options... everything fine.
> Now provide some value besides the options... argh. The value will not be accepted and an empty value will be saved.  >:o(
> This is very annoying because as a workaround you have to add just another TextField FOR EACH Autocompleter to be able to enter free values!
> Please check whether it's my fault when implementing the Autocompleter or it's a real bug!
> Will add testcase.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-2163) Autocomplete with forceValidOption=false doesn't accept any values besides model-ones

Posted by "Andreas (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas updated TAPESTRY-2163:
------------------------------

    Attachment: tapestry_testcase_issue2163.zip

Testcase that shows the problem.

Load PageA and select some option, send form... everything fine. You see the selected option.

Now enter some value into Autocomplete different from options, send form... boom --> empty string will be sent and shown.

> Autocomplete with forceValidOption=false doesn't accept any values besides model-ones
> -------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2163
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2163
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.3
>         Environment: Netbeans 6.0
> Tomcat 6.0.14
> Java 1.6.0_03
>            Reporter: Andreas
>         Attachments: tapestry_testcase_issue2163.zip
>
>
> I recently ran into some problems with Autocomplete...
> Provide a Page with an Automcomplete field.
> Allow this field to accept any value (set forceValidOptions = false).
> Type in one of the options... everything fine.
> Now provide some value besides the options... argh. The value will not be accepted and an empty value will be saved.  >:o(
> This is very annoying because as a workaround you have to add just another TextField FOR EACH Autocompleter to be able to enter free values!
> Please check whether it's my fault when implementing the Autocompleter or it's a real bug!
> Will add testcase.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-2163) Autocomplete with forceValidOption=false doesn't accept any values besides model-ones

Posted by "Andreas (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569840#action_12569840 ] 

Andreas commented on TAPESTRY-2163:
-----------------------------------

I just tried 4.1.5 (sorry, the web page long time stated 4.1.3 was the newest one...) and the bug also exists in 4.1.5.

Maven projects? Uhm... don't know anything about Maven but I'll try next time... actually i just test in my current developer tree and only copy the files necessary for bug reports.

> Autocomplete with forceValidOption=false doesn't accept any values besides model-ones
> -------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2163
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2163
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.3, 4.1.5
>         Environment: Netbeans 6.0
> Tomcat 6.0.14
> Java 1.6.0_03
>            Reporter: Andreas
>         Attachments: tapestry_testcase_issue2163.zip
>
>
> I recently ran into some problems with Autocomplete...
> Provide a Page with an Automcomplete field.
> Allow this field to accept any value (set forceValidOptions = false).
> Type in one of the options... everything fine.
> Now provide some value besides the options... argh. The value will not be accepted and an empty value will be saved.  >:o(
> This is very annoying because as a workaround you have to add just another TextField FOR EACH Autocompleter to be able to enter free values!
> Please check whether it's my fault when implementing the Autocompleter or it's a real bug!
> Will add testcase.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-2163) Autocomplete with forceValidOption=false doesn't accept any values besides model-ones

Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569090#action_12569090 ] 

Andreas Andreou commented on TAPESTRY-2163:
-------------------------------------------

btw, a lot of things were fixed in T4.1.5 - what happens if you try that?

> Autocomplete with forceValidOption=false doesn't accept any values besides model-ones
> -------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2163
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2163
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.3
>         Environment: Netbeans 6.0
> Tomcat 6.0.14
> Java 1.6.0_03
>            Reporter: Andreas
>         Attachments: tapestry_testcase_issue2163.zip
>
>
> I recently ran into some problems with Autocomplete...
> Provide a Page with an Automcomplete field.
> Allow this field to accept any value (set forceValidOptions = false).
> Type in one of the options... everything fine.
> Now provide some value besides the options... argh. The value will not be accepted and an empty value will be saved.  >:o(
> This is very annoying because as a workaround you have to add just another TextField FOR EACH Autocompleter to be able to enter free values!
> Please check whether it's my fault when implementing the Autocompleter or it's a real bug!
> Will add testcase.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-2163) Autocomplete with forceValidOption=false doesn't accept any values besides model-ones

Posted by "Andreas (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas updated TAPESTRY-2163:
------------------------------

    Affects Version/s: 4.1.5

> Autocomplete with forceValidOption=false doesn't accept any values besides model-ones
> -------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2163
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2163
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.3, 4.1.5
>         Environment: Netbeans 6.0
> Tomcat 6.0.14
> Java 1.6.0_03
>            Reporter: Andreas
>         Attachments: tapestry_testcase_issue2163.zip
>
>
> I recently ran into some problems with Autocomplete...
> Provide a Page with an Automcomplete field.
> Allow this field to accept any value (set forceValidOptions = false).
> Type in one of the options... everything fine.
> Now provide some value besides the options... argh. The value will not be accepted and an empty value will be saved.  >:o(
> This is very annoying because as a workaround you have to add just another TextField FOR EACH Autocompleter to be able to enter free values!
> Please check whether it's my fault when implementing the Autocompleter or it's a real bug!
> Will add testcase.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Resolved: (TAPESTRY-2163) Autocomplete with forceValidOption=false doesn't accept any values besides model-ones

Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Andreou resolved TAPESTRY-2163.
---------------------------------------

    Resolution: Won't Fix

Your EmbeddedAutocompleteModel should be modified to accept any kind of values
if that's what's you're after.

So, the getValue method should deal with the fact that the key may not exist in your cache ArrayList
and the getValues method should append the current string (the filter parameter) to the ArrayList returned.

> Autocomplete with forceValidOption=false doesn't accept any values besides model-ones
> -------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2163
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2163
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.3, 4.1.5
>         Environment: Netbeans 6.0
> Tomcat 6.0.14
> Java 1.6.0_03
>            Reporter: Andreas
>         Attachments: tapestry_testcase_issue2163.zip
>
>
> I recently ran into some problems with Autocomplete...
> Provide a Page with an Automcomplete field.
> Allow this field to accept any value (set forceValidOptions = false).
> Type in one of the options... everything fine.
> Now provide some value besides the options... argh. The value will not be accepted and an empty value will be saved.  >:o(
> This is very annoying because as a workaround you have to add just another TextField FOR EACH Autocompleter to be able to enter free values!
> Please check whether it's my fault when implementing the Autocompleter or it's a real bug!
> Will add testcase.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org