I’d like be able to reference a control inside the Java code. I think this is possible but I cant find the syntax.
Any help is appreciated!
Lucas.
I’d like be able to reference a control inside the Java code. I think this is possible but I cant find the syntax.
Any help is appreciated!
Lucas.
You can generate a control getter method in the java code by right clicking on the control instance in the view editor and selecting the ‘Source > Create Control Accessor’ item from the context menu.
The java code will have something like this:
/**
* Getter method for the control with id='searchBarForm:htmlOutputText'
*/
public com.webmethods.caf.faces.component.standard.HtmlOutputText getHtmlOutputText() {
return (com.webmethods.caf.faces.component.standard.HtmlOutputText)findComponentInRoot("searchBarForm:htmlOutputText");
}
Ok, I’ll fool with that… thanks Eric!