Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5929

Introduce IPartialPageRequestHandler

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 7.0.0-M5
    • 7.0.0
    • wicket
    • None

    Description

      WebSocketRequestHandler currently implements AjaxRequestTarget.

      We can introduce a new interface IPartialPageRequestHandler (or better named), that is implemented by AjaxRequestTarget and WebSocketRequestHandler:

      /**
       * 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();
      }
      

      This way it becomes clearer that WebSocketRequestHandler doesn't have anything to do with Ajax.

      Attachments

        Activity

          People

            svenmeier Sven Meier
            svenmeier Sven Meier
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: