I'm trying to change the text of label based on whether a flag is set for
graph or not graph.
        graphLink.add(new Label("graphLinkLabel", new Model() {
            @Override
            public Object getObject() {
                return isGraph ? "List" : "Graph";
            }
        }));

When I do this, I get a     private
org.apache.wicket.markup.html.link.PopupSettings
org.apache.wicket.markup.html.link.Link.popupSettings[6]
[class=com.spinn.ui.person.weight.ViewWeights$4, path=6:border:graphLink]
          final javax.servlet.http.HttpServletRequest
com.spinn.ui.person.weight.ViewWeights$4.val$request
[class=org.apache.catalina.connector.RequestFacade] <----- field that is not
serializable
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:339)

If I change it to a normal label I do not.
Any ideas?
-jim

Reply via email to