Hi all, I would like to ask, why ImageButton is stateful ?
THE CODE IN ImageButton ------------------------------------------------------- protected boolean getStatelessHint() { return getImageResource() == null && localizedImageResource.isStateless(); } The method #getImageResource() return never null, so the whole method returns always false and the component is marked as stateful. I use the component this way: ------------------------------------------------------------ ImageButton submitButton = new ImageButton("submitButton", new ResourceReference(VyhladatDomenuPanel.class, "images/Search.png")); form.add(submitButton); I know, that ImageButton uses Locale/Style to find the right image, but what should be done, if I don't want ImageButton to be stateful ? (problem is, that that this ImageButton binds new session, what is unwanted behavior) Thanx. -- View this message in context: http://www.nabble.com/ImageButton---always-stateful---tp20674146p20674146.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]