You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (Commented) (JIRA)" <ji...@apache.org> on 2012/03/14 17:44:40 UTC
[jira] [Commented] (WICKET-4449) Change IValidationError API to
work with java.io.Serializable as other methods (info, error, success, ...)
in Component and Session
[ https://issues.apache.org/jira/browse/WICKET-4449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13229330#comment-13229330 ]
Martin Grigorov commented on WICKET-4449:
-----------------------------------------
With this patch the user can do:
MyValidator#validate(IValidatable validatable) {
validatable.error(new MyValidationError(new MySerializableMessage()));
}
class MyValidationError implements IValidationError {
private Serializable ser;
public MyValidationError(Serializable ser) {
this.ser = ser;
}
public Serializable getErrorMessage() { return ser;}
}
> Change IValidationError API to work with java.io.Serializable as other methods (info, error, success, ...) in Component and Session
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: WICKET-4449
> URL: https://issues.apache.org/jira/browse/WICKET-4449
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 6.0.0
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
> Fix For: 6.0.0
>
> Attachments: WICKET-4449.patch
>
>
> Since a while o.a.w.Component's and o.a.w.Session #info(), #error(), #success(), etc. methods accept java.io.Serializable.
> With this ticket I suggest a change that will make o.a.w.validation.IValidationError in sync with this.
--
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