Hi All, I have a requirement where I have 2 lists (left and right) and the following behavior is required:
1. The user can only select one item from the left list to be moved to the right. 2. The user can only choose one item either from the left or the right list. This will make sure that if there are any javascript events invoked the select value will only be a single item. Tomahawk sandbox has a component s:selectManyPickList defined. It meets the basic requirement of a typical picklist however to my dismay it does not provide control to the user to allow multiple/single selection while moving elements between lists or selecting items from either list to invoke some external events. The following HTML code gets generated by this component: <select id="form:listValue_AVAILABLE" name="form:listValue_AVAILABLE" multiple="true" size="10" ondblclick="A4J.AJAX.Submit('_viewRoot','form',event,{'parameters':{'form:a4jDesc':'form:a4jDesc'} ,'actionUrl':'/BenefitBuilder/web/jsp/supervisor/drugListMaintenanceScreen.jsf'} )" style="width=25pc"> <option value="9">Fertility Drugs</option> ..... I would have been happy if the component user had control over setting of the "multiple" attribute. I tried to find the code for sandbox components but was not able to locate it. I was thinking of extending this component and adding an additional attribute which will give me the required behavior. Does anyone know if I can get the above mentioned behavior without extending the component in its current form? If that is not possible then it will be great if I can get some pointers to where I can find the sandbox code so that I can have a look at the component classes. Thanks, Madhav **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS***