public Widget searchWidget(){
		HorizontalPanel hp = new HorizontalPanel();
		final Button sendButton = new Button("get event");
		final Button allButton = new Button("all events");
		final TextBox idEventArea = new TextBox();
		final Label label = new Label("id de l'event");
		idEventArea.setValue("1");
		sendButton.addClickHandler(new ClickHandler() {

			public void onClick(ClickEvent clickEvent) {
				RequestBuilder rb = new RequestBuilder(RequestBuilder.GET, GWT
						.getHostPageBaseURL() + "rest/events/"+idEventArea.getText());
				rb.setCallback(new RequestCallback() {

					public void onResponseReceived(Request request, Response response) {

						EventItf event = EventJsonConverter.getInstance()
								.deserializeFromJson(response.getText());

						tableEvents.clearTable();
						tableEvents.showEvent(event, 1);
					}

					public void onError(Request request, Throwable exception) {
						Window.alert(exception.getMessage());
					}
				});

				try {
					rb.send();
				} catch (RequestException e) {
					e.printStackTrace();
				}
			}
		});

		allButton.addClickHandler(new ClickHandler() {

			public void onClick(ClickEvent clickEvent) {
				RequestBuilder eventsRequest = new RequestBuilder(RequestBuilder.GET, GWT
						.getHostPageBaseURL() + "rest/events");
				eventsRequest.setCallback(new RequestCallback() {

					public void onResponseReceived(Request request, Response response) {

						EventListItf eventsObject = EventListJsonConverter.getInstance()
								.deserializeFromJson(response.getText());
						List<EventItf> events = eventsObject.getevents();
						int i = 1;
						for (EventItf event : events ){
							tableEvents.showEvent(event, i);
							i++;
						}
					}

					public void onError(Request request, Throwable exception) {
						Window.alert(exception.getMessage());
					}
				});

				try {
					eventsRequest.send();
				} catch (RequestException e) {
					e.printStackTrace();
				}
				
			}
		});
		hp.add(label);
		hp.add(idEventArea);
		hp.add(sendButton);
		hp.add(allButton);
		return hp;
	}