public void searchAction(ActionEvent p0) {
//TODO Auto-generated method stub
logger.fine("searchAction");
// get the binding container
BindingContainer bindings =
BindingContext.getCurrent().getCurrentBindingsEntry();
OperationBinding method = bindings.getOperationBinding("searchITunes");
method.execute();
for (Object o : method.getErrors()) {
JboException ex = (JboException)o;
String msgText = ex.getMessage();
String methodName = method.getName();
logger.severe(ex.getMessage());
FacesMessage msg =
new FacesMessage(FacesMessage.SEVERITY_WARN, methodName,
msgText);
FacesContext.getCurrentInstance().addMessage(null, msg);
}
AttributeBinding attr = (AttributeBinding)bindings.getControlBinding("resultCount");
logger.fine("Total result: "+attr.getInputValue().toString());
}