I am using the onchange event of an autocomplete text field to populate a
simple text box. The text related to the value selected in the autocomplete
text box is populated correctly in Firefox 1.5. However the value cannot be
seen in FF 2.x and Internet Explorer. I am pasting the related code below:
============================
TextField txtItemCode = new AutoCompleteTextField("txtItemC
ode",new PropertyModel(objMstFinishedProductProssesModel,"txtItemCode"))
             {
                 protected Iterator getChoices(String itemCode)
                    {
                         List lst1 = new ArrayList();
                        
                         String strInput = new String(itemCode+"%");
                         System.out.println("-------strInput---"+strInput);
                        
                         List
lst=objtbItemMstHome.getDetailsLikeby(strInput);
                         System.out.println("--------lst---"+lst.size());
                         for(Iterator itr = lst.iterator();itr.hasNext();)
                        {
                              tbItemMst objtbItemMst=(tbItemMst)itr.next();
                              lst1.add (objtbItemMst.getItemCode());
                             
System.out.println("--------lst1.size()--------"+lst1.size());
                           
                        }   
                        
                         return lst1.iterator();
                    }
             };
add(txtItemCode);

txtItemCode.add(new AjaxFormComponentUpdatingBehavior("onchange")
                {
                    protected void onUpdate(AjaxRequestTarget target)
                    {
                                          
objMstFinishedProductProssesModel.setTxtName(objMstFinishedProductProssesModel.getTxtItemCode
());
                   }
               };
===================================

Please help!

Thanks in anticipation

Yashodhan Joshi

-- 
View this message in context: 
http://www.nabble.com/Autocomplete-text-box-problems-in-Firefox-2.x-tf4966103.html#a14226008
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to