Could anybody suggest how to create a popup button. I read in the forum that
a link can be attached to a button. But it did not help me.

Not sure, where is the mistake in the below code.

html code
--------------
//having a link id inside a button..

 <input type="button"  wicket:id="mawbNotes"  value='Mawb Notes' /> #  

java code.
-----------

PopupSettings popupSettings = new PopupSettings(PopupSettings.LOCATION_BAR |
PopupSettings.RESIZABLE |
PopupSettings.SCROLLBARS).setHeight(300).setWidth(730).setTop(300).setLeft(180);

//Link
            Link notesLink = new Link("notesLink") {
                @Override
                public void onClick() {
                        
                }
            };

                notesLink.setPopupSettings(popupSettings);
                
//Button
                Button mawbNotes = new Button("mawbNotes") {            
                        @Override
                        public void onSubmit() {                                
                        
                         setResponsePage(getPage())
                        }
                };
                
                
//adding link to a button               
                mawbNotes.add(notesLink);

//adding button to the from
mawbForm.add(mawbNotes.setDefaultFormProcessing(false));


The above code does not pop up.. rather opens the page in the same window.

Thanks in advance for your help.

Jamuna.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-create-a-Popup-Button-tp2256714p2256714.html
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