Re: set html for Panel

2012-07-01 Thread Martin Grigorov
Hi, See org.apache.wicket.Component#getVariation(). Using variations you can have MyPanel.html and MyPanel_2.html. You can also use #setMarkup() method. Or you can override IMarkupResourceStreamProvider and return dynamic markup each time. On Mon, Jul 2, 2012 at 6:37 AM, Dan12321 wrote: > Hi, >

set html for Panel

2012-07-01 Thread Dan12321
Hi, is possible to set html file for Panel? When I have MyPanel.java, it render MyPanel.html and I would like to render sometimes MyPanel.html and sometimes MyPanel2.html. Is it possible? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/set-html-for-Panel-tp4650316.html

Re: setOutputMarkupPlaceholderTag not working to render panel with setvisible false...

2012-07-01 Thread kshitiz
Hi, I have already tried that out...its in the code..: *owCommentPanel.setOutputMarkupPlaceholderTag(true); * -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setOutputMarkupPlaceholderTag-not-working-to-render-panel-with-setvisible-false-tp4650313p4650315.html Sent f

Re: setOutputMarkupPlaceholderTag not working to render panel with setvisible false...

2012-07-01 Thread Martin Makundi
Try setOutputMarkupPlaceholderTag(true) 2012/7/1 kshitiz : > Hi, > > I am using a panel with setVisible false on a condition. But it is not > getting rendered when its visibility becomes true. Here is  the code : > > *final ShowCommentPanel showCommentPanel = new ShowCommentPanel( >              

setOutputMarkupPlaceholderTag not working to render panel with setvisible false...

2012-07-01 Thread kshitiz
Hi, I am using a panel with setVisible false on a condition. But it is not getting rendered when its visibility becomes true. Here is the code : *final ShowCommentPanel showCommentPanel = new ShowCommentPanel( "showCommentPanel", postDomain, userDomain, 3);

Re: setResponsePage swallows my session feedback messages

2012-07-01 Thread Martin Grigorov
Hi, Here is my later response. I see two ways to solve this: 1) Use setResponsePage(pageInstance) as I described in my previous response: setMyCookie(); PageB pageB = new PageB(); pageB.info("some text"); setResponsePage(pageB); This way the feedback is associated with a component (pageB) and