[ 
https://issues.apache.org/jira/browse/WICKET-5929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14595022#comment-14595022
 ] 

Sven Meier commented on WICKET-5929:
------------------------------------

As a benefit WebSocketRequestHandler will get rid of #addListener() and 
#registerRespondListener() which have empty implementations currently.

Although this is a small API break from previous milestones, I think we can 
still change this for Wicket 7.
WDYT?

> Introduce IPartialPageRequestHandler
> ------------------------------------
>
>                 Key: WICKET-5929
>                 URL: https://issues.apache.org/jira/browse/WICKET-5929
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 7.0.0-M5
>            Reporter: Sven Meier
>            Assignee: Sven Meier
>            Priority: Minor
>
> WebSocketRequestHandler currently implements AjaxRequestTarget.
> We can introduce a new interface IPartialPageRequestHandler (or better 
> named), that is implemented by AjaxRequestTarget and WebSocketRequestHandler:
> {code}
> /**
>  * Request handler that allows partial updates of the current page instance.
>  */
> public interface IPartialPageRequestHandler extends IPageRequestHandler
> {
>       void add(final Component component, final String markupId);
>       void add(Component... components);
>       void addChildren(MarkupContainer parent, Class<?> childCriteria);
>       void appendJavaScript(CharSequence javascript);
>       void prependJavaScript(CharSequence javascript);
>       void focusComponent(Component component);
>       String getLastFocusedElementId();
>       Collection<? extends Component> getComponents();
>       IHeaderResponse getHeaderResponse();
> }
> {code}
> This way it becomes clearer that WebSocketRequestHandler doesn't have 
> anything to do with Ajax.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to