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

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

I've committed IPartialPageRequestHandler.

How far should we take this?

The *Ajax*-part of AbstractAjaxResponse and XmlAjaxResponse could be dropped. 
I'd like to remove the *Response-suffix too, since these are actually no 
(Wicket-)responses, but rather page updates, which write to responses. E.g.:

   AbstractAjaxResponse -> AbstractPageUpdate
   XmlAjaxResponse -> XmlPageUpdate

I don't want to go overboard with this, and we don't have to change it in 
Wicket 7 either. Ultimately we have to decide whether to change the xml root 
"<ajax-response>" too.

> 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