[solved] uioutput cannot be resolved to a type JSF
[solved] uioutput cannot be resolved to a type JSF:
Error meaning is you did not import the UIOutput in your bean/controller.
So you have to import the below UIOutput package,
“import javax.faces.component.UIOutput;”
to resolve the uioutput cannot be resolved to a type error/exception.
If you are getting this exception in eclipse like in the below/similar line,
String ajaxListValue = (String) ((UIOutput) event.getSource()).getValue();
then you need to put the cursor near UIOutput and enter the Ctrl+Space to get the auto import suggestions.
In that select and import
“javax.faces.component.UIOutput;”