Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Most forms have cancel and submit. It would be very useful to see in the requestlog which one has been clicked.
I tryed something like this but i got an IllegalStateException.
Is there a chance to fix it?
if (target instanceof IListenerInterfaceRequestTarget)
{
IListenerInterfaceRequestTarget listener = (IListenerInterfaceRequestTarget)target;
sb.append("Interface[target:");
sb.append(Classes.simpleName(listener.getTarget().getClass()));
sb.append("(");
sb.append(listener.getTarget().getPageRelativePath());
sb.append("), page: ");
sb.append(listener.getPage().getClass().getName());
sb.append("(");
sb.append(listener.getPage().getId());
sb.append("), interface: ");
sb.append(listener.getRequestListenerInterface().getName());
sb.append(".");
sb.append(listener.getRequestListenerInterface().getMethod().getName());
sb.append("- via button ");
if (listener.getTarget() instanceof Form<?>)
sb.append("]");
}