OpenNTF.org - XPages Extension Library
XPages Extension LibraryOpenDocument[/projects/pmt.nsf/ProjectView?ReadForm&Query=]

My Links (Not logged in)
User Name Password
Hosted by Prominic.NET

   Project: XPages Extension Library (Managed by Philippe Riand, Niklas Heidloff, Dave Delay, Akihiro Kosugi, Maire Kehoe, Tony McGuckin, John Piermarini, Martin Donnelly, James Quill, Darin Egan, Padraic Edwards, Andrejus Chaliapinas, Lorcan McDonald, Simon McLoughlin, Paul Hannan)
Actions:


Subject
 Radio Buttons and Partial Refresh
Categories
 
Posted by
 Ryan Buening on 11/21/2011 at 03:17 PM
Details

Not necessarily related to the ExtLib, but I've asked this in the XPages forum with nobody knowing a solution. When you have radio buttons in a panel that gets refreshed, unless you click on the radio button circle, the value doesn't "stick". It is a pain to deal with. Simple example is posted below. Explained in detail here: http://www-10.lotus.com/ldd/nd85forum.nsf/ShowMyTopicsAllFlatweb/5be066a529abcb698525773d005ce7c1?OpenDocument

 

<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">;
<xp:label id="label1">
<xp:this.value><![CDATA[Clicking the word, "Yes" or "No" doesn't keep the value selected after a partial. You have to actually click the circle.]]></xp:this.value></xp:label>
<xp:panel id="PartialPanel">
<xp:radioGroup id="radioGroup1">
<xp:selectItem itemLabel="Yes" itemValue="Y"></xp:selectItem>
<xp:selectItem itemLabel="No" itemValue="N"></xp:selectItem>
<xp:eventHandler event="onclick" submit="true" refreshMode="partial" refreshId="PartialPanel"></xp:eventHandler>
</xp:radioGroup>
</xp:panel>
</xp:view>
Modification history
Entered 21-Nov-2011 15:17 by Ryan Buening. Last Modified <none> by Niklas Heidloff.


Anonymous