You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by yyj <ya...@gmail.com> on 2007/12/08 07:45:44 UTC

Autocomplete text box problems in Firefox 2.x

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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org