Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DWR and ADF Faces Dialog Framework

antonyuloOct 5 2006 — edited Oct 28 2006
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);

}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 25 2006
Added on Oct 5 2006
4 comments
890 views