I figured it out.
I used Karsten's JSFUtils to get the UI Component like this:
import javax.faces.component.UIComponent;
UIComponent comp=JSFUtil.findComponent("inputText1");
But I got the UIComponent, there was no get Value for get Submitted value. Thats because UIComponent is a base class.
The class we need it the UIInput class. Now the code looks like this:
import javax.faces.component.UIInput;
UIInput comp = (UIInput) JSFUtil.findComponent("inputText1");
Now, you can use comp.getValue() to get the current value of the field.
I'll be using this a great deal in validators where I need to know the current value of one field to validate the current field.
-- Jeff
Karsten's JSFUtils are found here: