We recently added wicket-jquery-ui MessageDialog
(http://www.7thweb.net/wicket-jquery-ui/dialog/MessageDialogPage;jsessionid=666ECDD526710BAC40AC4EBBFCC7F4F1?0)
to our app.  But the demo renders the buttons like so:

>button class="ui-button ui-corner-all ui-widget" id="btn04"
type="button"<

But when we use it in our app, there is no class set.  Also, the demo starts
with the focus on the Ok button.  In ours, the user has to initiate an extra
tab before the focus is on the button.  

The demo code doesn't seem to be adding it explicitly, and our use of it
seems pretty mundane.

                msgDialog = new MessageDialog("exitConfirmDirty", "Unsaved 
Changes",
DIRTY_MESSAGE, DialogButtons.YES_NO, DialogIcon.WARN) {

                                        private static final long 
serialVersionUID = 1L;

                                        @Override
                                        protected Component newLabel(String id, 
IModel<String> model) {
                                                return super.newLabel(id, new 
Model<String>(currentMessage));
                                        }
                                        
                                        @Override
                                        public void onClose(AjaxRequestTarget 
target, DialogButton
buttonPressed) {
                                                if 
(buttonPressed.getName().equalsIgnoreCase("Yes")) {
                                                        doAction(target);
                                                }
                                        }
                };

And the button event that opens the dialog looks like:

this.msgDialog.open(target);

Anyone have any idea why i am getting different behavior than the demo?

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to