import org.apache.wicket.PageParameters;\r
import org.apache.wicket.RestartResponseException;\r
import org.apache.wicket.ajax.AjaxRequestTarget;\r
-import org.apache.wicket.behavior.IBehavior;\r
import org.apache.wicket.behavior.SimpleAttributeModifier;\r
import org.apache.wicket.markup.html.basic.Label;\r
import org.apache.wicket.markup.html.image.ContextImage;\r
Label status = new Label("statusChange", entry.getStatus().toString());\r
String css = TicketsUI.getLozengeClass(entry.getStatus(), false);\r
WicketUtils.setCssClass(status, css);\r
- for (IBehavior b : status.getBehaviors()) {\r
- if (b instanceof SimpleAttributeModifier) {\r
- SimpleAttributeModifier sam = (SimpleAttributeModifier) b;\r
- if ("class".equals(sam.getAttribute())) {\r
- status.add(new SimpleAttributeModifier("class", "status-change " + sam.getValue()));\r
- break;\r
- }\r
- }\r
- }\r
frag.add(status);\r
addUserAttributions(frag, entry, avatarWidth);\r
addDateAttributions(frag, entry);\r