Use the following code to create a basic inputEx UpperCaseField.
var field = new Y.inputEx.UpperCaseField({parentEl: 'container1', value: 'i was lowercase'});
var el = Y.one('#container1');
var button1 = inputEx.cn('button', null, null, "SetValue with 'InputEx'");
var val = 'InputEx';
el.appendChild(button1);
Y.one(button1).on('click' ,function() {
field.setValue(val);
val = (val == 'InputEx') ? '' : 'InputEx';
button1.innerHTML = "SetValue with '"+val+"'";
});
var logDiv = inputEx.cn('div', null, null, "Log :");
el.appendChild(logDiv);
field.on('updated', function(value) {
logDiv.innerHTML += "Updated at "+(new Date())+" with value "+value;
logDiv.appendChild(inputEx.cn('br'));
});