[ 
https://issues.apache.org/jira/browse/WICKET-1324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Igor Vaynberg resolved WICKET-1324.
-----------------------------------

       Resolution: Won't Fix
    Fix Version/s: 1.3.2
         Assignee: Igor Vaynberg

autocomplete textfield cannot return the pojo because the user can enter text 
that is not one of the choices - that is why the text is returned instead of 
the pojo.

> AutoCompleteTextField does not return the pojo which was selected by the user
> -----------------------------------------------------------------------------
>
>                 Key: WICKET-1324
>                 URL: https://issues.apache.org/jira/browse/WICKET-1324
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket-extensions
>    Affects Versions: 1.3.0-final
>         Environment: any
>            Reporter: Sam Barnum
>            Assignee: Igor Vaynberg
>             Fix For: 1.3.2
>
>
> getModelObject() returns the selected
> String, not the POJO object which the string is rendered from.  I've gotten 
> around this by saving the last query string sent
> via AJAX.  When the user makes a selection, I iterate over the
> options for that query string one more time, and take the POJO whose
> rendered string matches the user-selected text.
> getModelObject() should probably return the java object.

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

Reply via email to