Re: why does the HTML widget do not have a name attribute?

2011-10-25 Thread Thomas Broyer
GWT cannot know how many instances of your component you'll instantiate in the lifetime of your application, so it doesn't make it easy to give widgets an ID. It's still possible though (myWidget.getElement().setId(myId), which supposes you know what you're doing). See also

Re: why does the HTML widget do not have a name attribute?

2011-10-24 Thread Thomas Broyer
Nothing. Use CSS classes. What's wrong with them? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/tAZdqwNn6vAJ. To post to this group, send

Re: why does the HTML widget do not have a name attribute?

2011-10-24 Thread wahaha
nothing wrong,but if there is just one widget need to be styled alonely,we use css classes,it does not in accordance with the principles of html designing. On Oct 24, 2:54 pm, Thomas Broyer t.bro...@gmail.com wrote: Nothing. Use CSS classes. What's wrong with them? -- You received this message

Re: why does the HTML widget do not have a name attribute?

2011-10-23 Thread wahaha
if name wont help for css as you say,then what is the substitute for the id attribute in html? On Oct 21, 6:31 pm, Thomas Broyer t.bro...@gmail.com wrote: name won't help for CSS. Seehttp://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#He... ui:style .myLabel { coor: red;}

Re: why does the HTML widget do not have a name attribute?

2011-10-21 Thread Thomas Broyer
Let me rephrase: why do you want it to have a name? what would you use it for? what problem are you trying to solve? (and this is a general comment as to all your questions here; you're sort-of spamming the group with questions which you obviously didn't even try to answer by yourself; state

Re: why does the HTML widget do not have a name attribute?

2011-10-21 Thread wahaha
it is very simple reason.i want add a name attribute to the Lable tag,and then write css rules for the tag in ui.xml On Oct 21, 5:27 pm, Thomas Broyer t.bro...@gmail.com wrote: Let me rephrase: why do you want it to have a name? what would you use it for? what problem are you trying to solve?

why does the HTML widget do not have a name attribute?

2011-10-20 Thread wahaha
why does the HTML widget do not have a name attribute? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to

Re: why does the HTML widget do not have a name attribute?

2011-10-20 Thread Thomas Broyer
Why would it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/D3wB_RSuwfEJ. To post to this group, send email to

Re: why does the HTML widget do not have a name attribute?

2011-10-20 Thread wahaha
can you more clearly? On Oct 20, 4:27 pm, Thomas Broyer t.bro...@gmail.com wrote: Why would it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from

Re: why does the HTML widget do not have a name attribute?

2011-10-20 Thread wahaha
and the Label widget do not have a name attribute too,why?? On Oct 21, 11:23 am, wahaha il...@yahoo.com.cn wrote: can you more clearly? On Oct 20, 4:27 pm, Thomas Broyer t.bro...@gmail.com wrote: Why would it? -- You received this message because you are subscribed to the Google

Re: why does the HTML widget do not have a name attribute?

2011-10-20 Thread Gal Dolber
The HTML widget is implemented with a div.. so there's no reason to set a name... If you still want to set the name attribute to it: htmlWidget.getElement().setAttribute(name, SomeName); On Fri, Oct 21, 2011 at 12:23 AM, wahaha il...@yahoo.com.cn wrote: can you more clearly? On Oct 20, 4:27

Re: why does the HTML widget do not have a name attribute?

2011-10-20 Thread Gal Dolber
OMG On Fri, Oct 21, 2011 at 1:05 AM, wahaha il...@yahoo.com.cn wrote: and the Label widget do not have a name attribute too,why?? On Oct 21, 11:23 am, wahaha il...@yahoo.com.cn wrote: can you more clearly? On Oct 20, 4:27 pm, Thomas Broyer t.bro...@gmail.com wrote: