Because it is urgent, I tried some changes without success. 
It seems to be the AjaxFallBackLink in the dataview, wich causes the table
not to be shown when the page shows up. 
Is there any other possibility to show a modal window without an AjaxLink?

Here is some code of the dataview with the link ...

                dataView = new DataView<WebConfig>("sorting", dp) {
                    private static final long serialVersionUID = 1L;
        
                    /*
                     * (non-Javadoc)
                     * @see 
org.apache.wicket.markup.repeater.data.DataViewBase#onDetach()
                     */
                    @Override
                    protected void onDetach() {
                        super.onDetach();
                    }
        
                    /*
                     * (non-Javadoc)
                     * @see
org.apache.wicket.markup.repeater.RefreshingView#populateItem(org.apache.wicket.markup.repeater.Item)
                     */
                    @Override
                    protected void populateItem(final Item<WebConfig> item) {
                                WebConfig con = (WebConfig) 
item.getModelObject();
                                AjaxLink<WebConfig> detailLink = new 
AjaxLink<WebConfig>("detailLink") {
                                        private static final long 
serialVersionUID = 1L;

                                        @Override
                                        public void onClick(AjaxRequestTarget 
target) {
                                                WebConfig item = (WebConfig) 
getParent()
                                                .getDefaultModelObject();
                                                LOGGER.debug("show details " + 
item.getKey() + " ...");
                                                
modalNewConfig.setTitle("Configuration Parameter - Details");
                                                modalNewConfig.setContent(new
NewConfigPanel(modalNewConfig.getContentId(),
                                                                item, true, 
feedback,modalNewConfig));
                                                modalNewConfig.show(target);
                                                
target.appendJavascript("document.getElementById('inKey').focus()");
                                        }
                                };
                                item.add(detailLink);
                                
                                detailLink.add(new Label("key",con.getKey()));
        
...

Thanks in advance, Peter
-- 
View this message in context: 
http://old.nabble.com/Ajax-refresh-problem-with-WebMarkupContainer-and-CSS-class-in-DeploymentMode-tp27998174p28039133.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to