I have a button on a ListGrid, for the button I have:
.addClickHandler(new ClickHandler()
{
@Override
public void onClick(final ClickEvent event)
{
SC.confirm("Are you sure?", new BooleanCallback()
{
@Override
public void execute(Boolean value)
{
if (value == null || Boolean.FALSE.equals(value))
{
event.cancel();
return;
}
// How do I call RS : //localhost:8080/service/task1
}
});
}
How do I send a request to that rest service URL? the base URL is the same, they are on the same grid. The type is a @GET
You can create RestDataSource in SmartGWT. Something like this
On Click of the button call this: