gwt Server side communication with RestyGwt Tweaking default config


Example

Default config is configured in import org.fusesource.restygwt.client.Defaults;

  1. Service root. By default, RestyGWT will use module name to get rest service root, to change it, call on module load:

    Defaults.setServiceRoot("/rest/");
    
  2. Date format. By default, RestyGWT will send unix timestamp as long for java.util.Date. If you don't want to do date processing on client side and just send a string, use

    Defaults.setDateFormat("yyyy-MM-dd'T'HH:mm");