rasyahadlinugraha / wiquery

Automatically exported from code.google.com/p/wiquery
MIT License
0 stars 0 forks source link

Problem with AutocompleteAjaxComponent #233

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use the application and the page included
2. select one value from first autocomplete (i.e type "java")
3. submit ajax
4. delete the value from autocomplete you've just submitted
5. submit container form (also an ajax submit)

Note: It looks very similar to the issue 179 but in this case I have inner 
forms and ajax submits.

What is the expected output? What do you see instead?
This is the exception I've got:
ERROR - RequestCycle               - 
java.lang.NullPointerException
    at org.odlabs.wiquery.ui.autocomplete.AbstractAutocompleteComponent.convertInput(AbstractAutocompleteComponent.java:278)
    at org.apache.wicket.markup.html.form.FormComponent.validate(FormComponent.java:1207)
    at org.apache.wicket.markup.html.form.Form$23.validate(Form.java:2209)
    at org.apache.wicket.markup.html.form.Form$ValidationVisitor.formComponent(Form.java:175)

What version of the product are you using? On what operating system?
wiquery 1.2.4 wicket 1.4.19

Providing a good description and a patch or a quickstart [1] will really
help us fixing the problem quickly! Please provide any additional
information below.

[1] http://code.google.com/p/wiquery/wiki/Quickstart15

Original issue reported on code.google.com by marcia.p...@gmail.com on 13 Feb 2012 at 2:22

Attachments:

GoogleCodeExporter commented 9 years ago
apologies for the late response. this has been fixed by checking if input is 
null so that the model will reflect the removal of the text in the textfield.

Original comment by hielke.hoeve on 29 Mar 2012 at 7:11

GoogleCodeExporter commented 9 years ago

Original comment by hielke.hoeve on 29 Mar 2012 at 7:14