title: Dojo RadioButton, setup a group programmatically
body: <p>I have a custom widget 'MyWidget' with three radion buttons I would like to be of the same "group".
  If I set a 'name' attribute in the radiobuttons in the template file, then problem is when I create multiply 'MyWidget' widgets then all radiobuttons share the same group.</p>
  
  <p>I tried to put the 'name' of the radio button with </p>
  
  <pre><code>radioWifget.set('name', some_value) 
  </code></pre>
  
  <p>without success, and also going direct to DOM code with:</p>
  
  <pre><code>dojo.query("INPUT[type='radio']", this.domNode).forEach( dojo.hitch(this, function(inputNode){
      inputNode.name = 'perill_'+this.id;
  }));
  </code></pre>
  
  <p>The second form sets the name attrbitue but it doesn't works as a group.</p>
  
  <p>Any help.</p>
  
  <p>Thanks in advance.</p>
  
  <hr>
  
  <p>I apologize because I found the answer by myself.</p>
  
  <p>I will risk someone vote me negatively but prefer to put the solution here because maybe can help someone other than me.</p>
  
  <p>The solution is the radio buttons in the template of "MyWidget" must be enclosed in a 'dijit.form.Form' widget. This way every 'MyWidget' will have its own radiobuttons groups.</p>