PDA

View Full Version : Problem with Component id



alex_05
23 Nov 2009, 4:57 AM
Hello, I have a problem if i set the component's id "1.2.3". It looks like you can't set a String that contains "." . Is there a limitation?Or a bug? I did not found this on API docs.

Thanks, Alex

Condor
23 Nov 2009, 5:28 AM
No, using a string with '.' should work just fine. What kind of problem do you have?

ps. The id should not contain the TabPanel idDelimiter ('__') if the component is used as a tab in a tabpanel or as the tabpanel itself.

alex_05
23 Nov 2009, 5:46 AM
TextField<String> textField = new TextField<String>();
textField.setFieldLabel(baseField.getName());
textField.setId("1.2.3");
The error I got:
(TypeError): 'null' is null or not an object number: -2146823281 description: 'null' is null or not an object

TextField component is added to a FieldSet component.
If I replace "." with "_" it works just fine.

Condor
23 Nov 2009, 6:09 AM
My answer was for Ext JS and not for GXT.

You should ask this question in the GXT Help forum.

alex_05
23 Nov 2009, 6:33 AM
OK, sorry I'm new here. Thanks anyway