I am trying to launch a dialog when the inputText receives focus through the on focus event javascript function and i am doing that through the DWR.
the javascript function is successfully calling the Backing bean code as i'm printing messages when the backing bean function gets executed. However, the browser just pops-up a message saying: "null."
Are there any issues with using DWR with the Faces dialog Framework?
here is the backing bean code that i used to manually launch the dialog.
//... called by a javascript onfocus() event function.
public void launchDialog() {
FacesContext context = FacesContext.getCurrentInstance();
ViewHandler viewHandler = context.getApplication().getViewHandler();
System.out.println("Before Create View");
UIViewRoot dialog = viewHandler.createView(context, "/dialogPage.jsp");
System.out.println("After Create View");
UIViewRoot root = context.getViewRoot();
HashMap properties = new HashMap();
properties.put("width", new Integer(250));
properties.put("height", new Integer(150));
System.out.println("Launching dialog");
AdfFacesContext.getCurrentInstance().launchDialog (dialog,properties,null,true,null);
}