How to change value small letters to capital letters
How to change value small letters to capital letters
We have to show out put like this give small letters in first input text
Then hit on enter button output will come in Caps letters.
First, we need to create new application name as Small to
caps
Then create jspx page
We need to input text fields in that page
package view.bean;
import javax.faces.event.ValueChangeEvent;
import oracle.adf.view.rich.component.rich.input.RichInputText;
public class SmallToCaps {
private
RichInputText inputVal;
String out;
public
SmallToCaps() {
}
public void
VCLMethod(ValueChangeEvent valueChangeEvent) {
// Add event
code here...
String val =
getInputVal().getValue().toString();
String val2
=val.toUpperCase();
this.setOut(val2);
}
public void
setOut(String out) {
this.out =
out;
}
public String
getOut() {
return out;
}
public void
setInputVal(RichInputText inputVal) {
this.inputVal
= inputVal;
}
public
RichInputText getInputVal() {
return
inputVal;
}
}
------------------- ------------------------------------------------------------------------------------
Some properties changes for input text fields
Then
Run the page to see output.
Comments
Post a Comment