You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Fridolin Jackstadt (Commented) (JIRA)" <ji...@apache.org> on 2012/03/02 11:58:59 UTC
[jira] [Commented] (WICKET-2745) Add info about SubmittingButton to
RequestLogger
[ https://issues.apache.org/jira/browse/WICKET-2745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220833#comment-13220833 ]
Fridolin Jackstadt commented on WICKET-2745:
--------------------------------------------
Abwesenheitsnotiz/ Out-of-Office-Reply
Vielen Dank für Ihre E-Mail.
Während meiner Abwesenheit kann ich Ihre Nachricht leider nicht bearbeiten.
Bei dringenden Angelegenheiten wenden Sie sich bitte an:
Telefon: +49 721 480848-000
Fax: +49 721 480848-801
Gerne stehe ich Ihnen ab dem 15.03.2012 wieder zur Verfügung.
Mit besten Grüßen
Fridolin Jackstadt
Diese Nachricht wurde nicht weitergeleitet.
Thank you for your E-Mail.
During my absence your mail will not reach me.
In case of any urgent issues, please feel free to get in touch with:
Phone: +49 721 480848-000
Fax: +49 721 480848-801
I will be back in the office on 15th of March 2012].
Best regards
Fridolin Jackstadt
This message will not be forwarded.
> Add info about SubmittingButton to RequestLogger
> ------------------------------------------------
>
> Key: WICKET-2745
> URL: https://issues.apache.org/jira/browse/WICKET-2745
> Project: Wicket
> Issue Type: Improvement
> Reporter: Fridolin Jackstadt
> Assignee: Emond Papegaaij
> Attachments: form_logging.patch, logger.zip
>
>
> 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<?>) {
> Form<?> form = (Form<?>) listener.getTarget();
> sb.append(form.findSubmittingButton().getPageRelativePath());
> }
> sb.append("]");
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira