How to autosize a ModalWindow in wicket which is depend on content
        Posted  
        
            by 
                user1263633
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user1263633
        
        
        
        Published on 2012-03-27T05:24:57Z
        Indexed on 
            2012/03/27
            5:30 UTC
        
        
        Read the original article
        Hit count: 265
        
wicket
|modal-window
i am working on modalwindow but it does not autosizes when content of this
     window getting increased
     Also tell how to set scrollbar to Modalwindow if size of
     content is more.
     I want modalwindow autosizable please tell me simple code how to do
     this??
     & what is the actual use of setOutputMarkupId(true)??? 
final ModalWindow modalpostyourView=new ModalWindow("modalpostyourView");
    modalpostyourView.setPageMapName("modalpostyourView-1");
    modalpostyourView.setCookieName("modalpostyourView-1");
    modalpostyourView.setWidthUnit("");
    add(modalpostyourView);
    modalpostyourView.setPageCreator(new ModalWindow.PageCreator() 
    {
        @Override
        public Page createPage() 
        {
            return new UserPost(ForumForm.this,modalpostyourView);
        }
    });
    AjaxLink postyourView=new AjaxLink("postyourView")
    {
        @Override
        public void onClick(AjaxRequestTarget target) 
        {
            modalpostyourView.show(target);
        }
    };
    add(postyourView);
        © Stack Overflow or respective owner