Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
RadioButton ClickListener under Firefox not de-selecting
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
dbexternal  
View profile  
 More options Nov 27 2007, 7:27 am
From: dbexternal <dennis.bec...@gmail.com>
Date: Tue, 27 Nov 2007 04:27:33 -0800 (PST)
Local: Tues, Nov 27 2007 7:27 am
Subject: RadioButton ClickListener under Firefox not de-selecting
I've got a series of 4 RadioButton objects that control the display of
panels within a deck.  Works fine within hosted mode and under IE.
However, under Firefox, it works, i.e. the panels are displayed based
on the Radio Button selected, the prior RadioButton instance is not
'de-selected'.  Anyone ever run into this - my code is below?

Thanks!

public class ListeningRadioButton extends RadioButton {

        private DeckPanel deckPanel;
        private int deckIndex;

        public ListeningRadioButton(String group, String label, DeckPanel
deck, int deckIndex) {
                super(group, label);
                this.deckPanel = deck;
                this.deckIndex = deckIndex;
                this.addClickListener(new RBClickListener());
                this.setName(group + ":" + label);
        }

        class RBClickListener implements ClickListener {

                public void onClick(Widget sender) {
                        deckPanel.showWidget(deckIndex);
                }

        }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Blazejewicz  
View profile  
 More options Nov 28 2007, 8:41 am
From: Peter Blazejewicz <peter.blazejew...@gmail.com>
Date: Wed, 28 Nov 2007 05:41:33 -0800 (PST)
Local: Wed, Nov 28 2007 8:41 am
Subject: Re: RadioButton ClickListener under Firefox not de-selecting
hi,

try my answer here,
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
maybe that is related what are your group/widgets labels/names

regards,
Peter
On Nov 27, 1:27 pm, dbexternal <dennis.bec...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Ayers  
View profile  
 More options Dec 2 2007, 6:16 am
From: "Eric Ayers" <zun...@google.com>
Date: Sun, 2 Dec 2007 06:16:46 -0500
Local: Sun, Dec 2 2007 6:16 am
Subject: Re: RadioButton ClickListener under Firefox not de-selecting

The behavior you are describing sounds like each radio button is in its own
group.

I think the problem is simply that 'setName()' changes the radio button
group.  In your constructor for ListeningRadioButton() you construct what
appears to be a unique name for each button.

http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/g...
)

But if this is the case, the question should be why IE isn't "working"
(moving the buttons into separate groups on call to setName())

-Eric.
On Nov 28, 2007 8:41 AM, Peter Blazejewicz <peter.blazejew...@gmail.com>
wrote:

--
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »