-2

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);
user1263633
  • 289
  • 1
  • 3
  • 13
  • 4
    how about not starting new questions each day? What about the questions you got answers/comments ? If you not react to people,no one is willing to help you. Also: what have you tried? What did not work? Reading the available JavaDoc should answer some of your questions – bert Mar 27 '12 at 05:41

1 Answers1

1

See https://github.com/wicketstuff/core/wiki/ModalX. This project provides extension of ModalWindow that supports that feature.

martin-g
  • 17,243
  • 2
  • 23
  • 35