Hi Shantanu,

If they are string constants, which values are already initialized I think,
then you don't need to put them into quotes.

Instead of : item1.setId("ITEM_ID"); and menu.setId("MENU_ID");
Do: item1.setId(ITEM_ID); and menu.setId(MENU_ID);

Hope this may help you.

Horacio.


2008/12/6 shantanu <[EMAIL PROTECTED]>

>
> They are just string constants.
>
> On Dec 5, 9:21 am, "Horacio TONOU" <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Tell me exactly what "ITEM_ID" and "MENU_ID" represent in your program. I
> > mean is they just texts or String objects.
> >
> > Horacio
> >
> > 2008/12/4 shantanu <[EMAIL PROTECTED]>
> >
> >
> >
> > > I am using selenium to test my GWT application and need to set known
> > > IDs (not randomly generated) for all my widgets. I used setId() method
> > > to set the them but it is not working for the following classes :-
> > >    com.gwtext.client.widgets.menu.Item
> > >    com.gwtext.client.widgets.menu.Menu
> >
> > > My code looks like :-
> >
> > > Menu menu = new Menu();
> > > Item item1 = new Item("Item1");
> > > item1 .addListener(ControllerFactory.buildBaseItemListener(Some
> > > listner));
> > > item1.setId("ITEM_ID");
> > > menu.addItem(item1);
> > > menu.setId("MENU_ID");
> >
> > > It worked for "com.gwtext.client.widgets.form.DateField" though.
> >
> > > Is there any other way for setting IDs? Any help will be highly
> > > appreciated.
> > > Thanks,
> > > Shantanu
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to