Skip to main content link. Accesskey S
  • Help
  • IBM Logo
  • IBM Notes and Domino Application Development wiki
  • All Wikis
  • All Forums
  • THIS WIKI IS READ-ONLY. Learn more...
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
  • API Documentation
Search
Learning Center > Getting Started > How to properly group radio buttons in XPages repeat controls by using the "skipContainers" property
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

Click to view profileThomas Gumz
Contribution Summary:
  • Articles authored: 18
  • Articles edited: 21
  • Comments Posted: 1

Recent articles by this author

How can I open documents in a traditional Form rather than an XPage from a viewpanel?

Question:

I have an XPage viewpanel which shows documents from a view. A column is configured to show values as links. However, the links by default open the document in another XPage. How can I change the default link generated for each entry in the view panel to open the document ...

How does "At runtime, open selected document using" work in XPages view panels?

Question:

How does the "At runtime, open selected document using" option work in XPages views?

Answer:

This option may be ambiguous on first reading, but it's probably best explained using the following use case: You have a view panel which uses a Notes View as a data source ...

Are global variables in server-side JavaScript libraries shared across sessions in XPages?

Question:

Are global variables in server-side JavaScript libraries shared across the board regardless of the user/session ?

Answer:

Yes, global variables defined in server-side JavaScript libraries are initially indeed globally shared across sessions. However, they are not ...

How can I use native html tags inside XPages?

Question:

How can I use native html tags inside XPages?

Answer:

There are 3 different ways to manually use html tags in XPages:

#1: You can use the Computed Field control to emit the required HTML in its value property.

Make sure to set the Content type to HTML (so ...

How can I use pattern matching to validate input on fields in XPages?

Question:

Is there an easy way to do pattern matching validation on fields such as an edit box?

Answer:

To enable pattern matching on an edit box: Go to the All Properties tab Click into the validators property Click the add button that appears and choose ...
Learning Center articleHow to properly group radio buttons in XPages repeat controls by using the "skipContainers" property
Added by Thomas Gumz | Edited by IBM contributorDeanna Drschiwiski on October 30, 2009 | Version 6
  • Actions Show Menu▼
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
expanded Abstract
collapsed Abstract
No abstract provided.
Tags: radio buttons, skipContainers, XPages, repeat controls

Question:


I created an XPage with a repeat control on it.
The repeat control creates multiple radio buttons.
In order to connect the different radio buttons to a group they need to have the same group name.
The radio group name needs to be computed in my case.
The problem is that these computed radio group names are not equal per group.
This leads to the problem that the radio buttons don't build a group and it is possible to activate every radio button at the same time.
Is there any other workaround than manually create radio buttons?

Answer:


Use the "skipContainers" property to address this issue.
If you select the Radio control, in the All Properties tab there's a property "skipContainers"



To fix the example you would set skipContainers to 1

If the radio buttons were nested within multiple repeats then you could choose what level to group to, e.g.:

 
<xp:repeat value="#{world.continentList}" var="continent"> 
<xp:repeat value="#{continent.countryList}" var="country"> 
 <xp:radio text="#{country.name}" groupName="nameTypeInCountry"></xp:radio> 
 <xp:radio text="#{country.fullName}" groupName="nameTypeInCountry"></xp:radio> 
 <xp:radio text="#{country.name}" groupName="countryInCurrentContinent" skipContainers="1"></xp:radio> 
 <xp:radio text="#{country.name}" groupName="countryInWorld" value="#{countryInWorld}" skipContainers="2"></xp:radio> 
</xp:repeat> 
</xp:repeat> 


The first two radios will be grouped within the inner repeat.
The 3rd radio will be grouped within the current continent.
The 4rd radio will be grouped across the entire HTML page.

  • Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (6)
collapsed Versions (6)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (6)Oct 30, 2009, 1:01:25 PMDeanna Drschiwiski  IBM contributor
5Oct 20, 2008, 6:27:47 PMThomas Gumz  IBM contributor
4Oct 14, 2008, 6:33:36 PMThomas Gumz  IBM contributor
3Oct 10, 2008, 12:07:55 AMThomas Gumz  IBM contributor
2Oct 10, 2008, 12:07:07 AMThomas Gumz  IBM contributor
1Oct 9, 2008, 11:58:43 PMThomas Gumz  IBM contributor
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedHelpAbout
  • IBM Collaboration Solutions wikis
  • IBM developerWorks
  • IBM Software support
  • Twitter LinkIBMSocialBizUX on Twitter
  • FacebookIBMSocialBizUX on Facebook
  • ForumsLotus product forums
  • BlogsIBM Social Business UX blog
  • Community LinkThe Social Lounge
  • Wiki Help
  • Forgot user name/password
  • About the wiki
  • About IBM
  • Privacy
  • Accessibility
  • IBM Terms of use
  • Wiki terms of use