I am using frames in a page(Home), call them left frame and right frame.
In the left frame i have a form(target is parent), and on submitting the
form the page(home) with updated right frame is rendered.
After the form is submitted there are two conditions, 
1- update the right frame or
2- pop-up a window (can be a modal window) which gives user couple of
options to select from (which is then used to update the right frame in the
main window)
Onsubmit code snippet below.

I am having trouble coding case 2, not sure how to pop-up a window. I have
tried adding java script to response to open pop -up using urlFor but it
didnt work, i think the reason might be that i am using setResponsePage().

Any help is appreciated. Thanks.

public void onSubmit() {
     List<Distributor> distList = getDistributors();
      if (distList != null && distList.size() > 0){
        if (distList.size() > 1) {
           //TODO:IF more than one distributor is found open pop-up with
distributors choice
        } else {
          Distributor distributor = distList.get(0);
          RightFrame alertFrame = new RightFrame(distributor);
         
home.setDistributorFrameSrc(RequestCycle.get().urlFor(alertFrame));
          setResponsePage(home);
        }
      } else { //no results found
        setErrorMsg("No Distributor Found , please try with new criteria");
        setResponsePage(home);
      }
    }


-- 
View this message in context: 
http://www.nabble.com/In-Wicket-frames%2C-pop-up-a-window-after-form-submit-tf4900125.html#a14035564
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to