[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Radiobutton Groups  XML
Forum Index -> Development
Author Message
mbreyer

Power User

Joined: 02/07/2013 16:08:31
Messages: 42
Location: Cologne
Offline

Hi,

we have a tree in a fixgrid.
For single selection of a row our customer wants to have radiobuttons in every row of this grid.
The refvalue is the id of the represented object.
Through a function it is possible to delete the selected object.
As a result the row is removed and the shared value in this group changes to -1.
Of course there is no radiobutton representing this value, but in swing the radiobutton which replaced the removed radiobutton looks like it is selected.
I know that this behaviour is normal in swing, as it cannot change back to nothing selected if there was selected something sometime.

As there is no Logical defaultvalue I wanted to place a radiobutton outside of the grid, which should represent this -1.
Somehow the dynamically rendered radiobuttons in the grid and the static radiobutton don't work together in one Group, as they can be changed indepently. (group is equal)
I added more static radiobuttons and an other grid with dynamic radiobuttons to check this and it really looks like there are now two radiobutton groups with the same name on the same page.
One for the dynamically rendered and one for the static ones.

Is that the intended behaviour?
In my mind the group should be unique on each page, no matter if the radiobuttons are static or dynamically rendered.

kind regards
Mario
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

Hi,

it's "always the same" - things always happen twice...:

We just had the same problem with another user - and I was astonished to really find out that Swing does not remove the selection by default. We found a solution for this problem (if all radio buttons are unselected then we also do an unselect on group level), and added this to 20150706.

So the problem is solved if installing the current update.

Regards, Björn

Björn Müller, CaptainCasa GmbH
mbreyer

Power User

Joined: 02/07/2013 16:08:31
Messages: 42
Location: Cologne
Offline

Hi,

wow that was the fastest Bugfix ever.
We will try the current update, thanks.

Regards
Mario
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team