After update form all dialog are refreshed Primefaces JSF

UI Components for JSF
Post Reply
yougeshwar
Posts: 3
Joined: 21 Oct 2014, 11:42

21 Oct 2014, 11:44

I'm try to add Dialog dynamically via code means onClick and it showing only when refreshing the form but its refreshing all the dialogs, all the dialogs field are cleared everything is become new

how can i show dialog without refreshing form?

Its data entry form, want to open multiple forms at a time.

thanks

Code: Select all

UIComponent component = FacesContext.getCurrentInstance().getViewRoot().findComponent("webForm");
    if (component != null) {
        int count = countDialog(component.getChildren()) + 1;
        Dialog tp = new Dialog();
        tp.setVisible(true);
        tp.setWidgetVar("widget" + count);
        component.getChildren().add(tp);

        RequestContext request = RequestContext.getCurrentInstance();
        request.update("webForm");
    }

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

21 Oct 2014, 12:07

Check out Dialog Framework.

yougeshwar
Posts: 3
Joined: 21 Oct 2014, 11:42

21 Oct 2014, 12:14

I checked that but its not opening multiple dialog at same time

yougeshwar
Posts: 3
Joined: 21 Oct 2014, 11:42

21 Oct 2014, 12:27

is there any solution please tell me i really need to it, my complete app is developed only this thing got me stuck
please help me anyone, thanks

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 39 guests