Hi all,

I’m new in this forum and I am no expert on wicket. 
I try to get a popup window to the front at the browser IE11,
with Firefox and Chrome it works. 
I open the popup window with an item "*HELP*" from a
Choicebox. Here the code:

public class SwitchAboutChoice extends DropDownChoice<CHOICE> {
        private static final long serialVersionUID = 1L;

        private final Logger log =
LoggerFactory.getLogger(SwitchAboutChoice.class);

        @SuppressWarnings("unused")
        private final CHOICE currentChoice = CHOICE.INFO;

        private class ChoiceRenderer implements IChoiceRenderer<CHOICE> {
                private static final long serialVersionUID = 1L;

                @Override
                public Object getDisplayValue(CHOICE c) {
                        return new StringResourceModel("HIST." + c.name(),
SwitchAboutChoice.this, null).getString();
                }

                public String getIdValue(CHOICE c, int arg1) {
                        return c.name();
                }
        }

        public SwitchAboutChoice(String id, final PtsModal modalAbout, final
ICommonWebSession iws) {
                super(id);
                this.setDefaultModel(new PropertyModel<PtsClient>(this, 
"currentChoice"));
                setOutputMarkupId(true);
                setChoices(Arrays.asList(CHOICE.values()));
                setChoiceRenderer(new ChoiceRenderer());
                add(new AjaxFormComponentUpdatingBehavior("onchange") {
                        private static final long serialVersionUID = 1L;

                        @Override
                        protected void onUpdate(AjaxRequestTarget target) {
                                log.debug("AboutChoice update: {}", 
getModelObject().name());
                                switch (getModelObject()) {
                                case HELP:
                                        // Makes the pop-up window RESIZABLE
                                        PopupSettings popup = new 
PopupSettings("_blank",
PopupSettings.RESIZABLE);
                                        
                                        //Generates URL only dependent on the 
current base Url
                                        popup.setTarget("'"+
RequestCycle.get().getUrlRenderer().renderContextRelativeUrl(iws.getManualUri())+"'");
                                                                                
                                        
target.appendJavaScript(popup.getPopupJavaScript());
                                        
                                        break;

                                case ABOUT:
                                        if (target != null) {
                                                ………..
                                        }
                                        break;

                                default:
                                        break;
                                }
                                setModelObject(CHOICE.INFO);
                                target.add(SwitchAboutChoice.this);
                        }
                });

                setNullValid(false);
        }
}

Can anyone help here? 
Kind regards
Harry


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-16-problem-with-popup-window-to-the-front-by-IE11-tp4673821.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to