I guess the real question dwelve. Reason why I tried to use the onclick is that
I have some infos in the onRender function of the link, this code does get run.
But it seems that the infos just dosent get rendered, if I refresh the page
they do get shown. So why would that be, because they cant be rendered after my
onRender call?
regards Nino
-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] på vegne af Johan Compagner
Sendt: fr 09-06-2006 15:07
Til: wicket-user@lists.sourceforge.net
Cc:
Emne: Re: [Wicket-user] PageLink onClick, never gets called?
the markup is a submit button. not a link.
Or make the markup a link or make the PageLink a Button.
jhan
On 6/9/06, Nino Wael [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
wrote:
Hi
Im a little curious since I recall doing this earlier.. Now it
seems that PageLink onClick never gets called why is that?
See snip below
Html:
INPUT type=submit wicket:id=openword value=Aring;ben i
word /
Java snip:
myReport = new PageLink(openword, new
IPageLink() {
public Page getPage() {
Page myPop = null;
try {
myPop = new
PopupReport(reportModel);
} catch (Exception e) {
// TODO Auto-generated
catch block
throw new
RuntimeException(e);
}
return myPop;
}
public Class getPageIdentity() {
return PopupReport.class;
}
}) {
public void onClick() {
generate_errormsgs = true;
super.onClick();
}
protected void onRender(MarkupStream
markupStream) {
// TODO Auto-generated method
stub
}
PopupSettings popupSettings = new
PopupSettings(PageMap
.forName(popuppagemap),
PopupSettings.MENU_BAR
| PopupSettings.TOOL_BAR |
PopupSettings.SCROLLBARS
| PopupSettings.RESIZABLE
).setHeight(500).setWidth(700);
myReport.setPopupSettings(popupSettings);
pagenavigation.add(myReport);
regards Nino
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
winmail.dat___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user