Yes that is what I have done and after your comments I'll keep on doing that. The panel is a ConfirmButton. It contains a AjaxLink and a ModalWindow. When pressing the button the modal will popup and ask for a confirmation and then a the buttonpanel's abstract method onconfirmation will fire. The panels constuctor is somethig like this: ConfirmButtonPanel(String pId,String pButtonLabelResourceKey,String pModalTitleKey,String pModalMessageKey,DialogButtons.OKCANCEL).
It works well but is it possible to do something like this only extending AjaxLink? Because of the modalwindow I need to add a <div id="mymodalwindow"/> in the markup somewhere and AjaxLink dont have any markup beacuse its a component. Is it possibly to dynamically add a div with wicket:id in the markupstream? Jens Alenius igor.vaynberg wrote: > > instead of wicket:message add a label and whatever model you want. > that gives you full control over the text. > > -igor > > On Mon, Nov 17, 2008 at 1:34 AM, jensiator <[EMAIL PROTECTED]> > wrote: >> >> Hi >> I've created a Panel that I would like to act as a AjaxLink in the >> markup. I >> would like to be able to add a <wicket:message> tag in the body content >> of >> the panel and get hold of it in the panel java code before the body >> content >> is replaced. Can this be done? >> Jens >> -- >> View this message in context: >> http://www.nabble.com/Getting-Panel-body-content-tp20536289p20536289.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Getting-Panel-body-content-tp20536289p20554735.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
