Hi,
i need some RadioButton group as well in my application, to be put in a 
DataGrid or CellTable Column.Naturally i am not able to. I came across this 
post and tried creating a new class similar to the SelectionCell and made 
some changes but its not working properly.
I am very new to GWT for which i guess i am facing these issues.

Precisely I am able to render the radiogroup but I am not able to clear the 
previously selected option when i am making a new selection is made in this 
Radio Group.
Other than that i am getting exceptions in onBrowserEvent method where we 
are doing select.getSelectedIndex() .
What class should we use instead of the SelectElement. So if we use the 
same class do i need to rewrite the getSelectedIndex method by any chance ?

Thanks in advance.


On Thursday, 18 November 2010 10:14:58 UTC+5:30, BrianV wrote:
>
> I took another approach but have hit a roadblock. Instead of starting 
> with CheckboxCell and CompositeCell, I started with the SelectionCell 
> figuring that it already had multiple options. Unfortunately, I 
> haven't figured out a way to get the "radio group" (aka "name") field 
> into the generated safehtml. I need a unique group per cell (for all 
> of the radio buttons that are created) which on the surface isn't 
> hard. My plan is to generate a new group name for them when "render" 
> is called. 
>
> The one part I'm stumped in is that I need to append some text after 
> the <input ..../> text. For example: <input type="radio" name"group1" 
> value="Goobers" /> Goobers 
>
> When I add the " Goobers" at the end, I get an exception: Content is 
> not allowed in trailing section. I was using a Template to generate 
> the SafeHTML. The template looks like the following: 
>             @Template("<input type=\"radio\" name=\"{0}\" value=\"{1}\"/> 
> {1}") 
>
> I'm doing something wrong (perhaps carrying something over from the 
> SelectionCell I shouldn't be) but the html would seem correct. Any 
> ideas?

-- 
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/-/3GXo1gkbi_cJ.
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/google-web-toolkit?hl=en.

Reply via email to