Skip to content

{ Tag Archives } framework

InfoQ: Tapestry for Nonbelievers

InfoQ: Tapestry for Nonbelievers.
This looks like a pretty good intro to Tapestry 5 for me. I’ve been reading through a lot of the documentation and it looks like what I’ve been hoping to acomplish should be fairly straight forward with the stock framework.

Also tagged

My look at Wicket has ended, bad news I’m afraid

Well I gave it the old college try, which for me is a couple of hours over a few nights. My biggest issue was lack of downloadable and runnable examples. I’ve been spoiled with the Spring and jQuery documentation. Sure, there are examples, references, and (another link that I can’t find, another part of [...]

Also tagged , ,

Calling different methods via submit buttons using Spring MVC

Using Spring 2.5 annotation, you can specify different buttons like so:
<input type="submit" name="save" value="Save" />
<input type="submit" name="saveAndContinue" value="Save and Continue" />
In your controller, you can handle this like so
@RequestMapping(params = "saveAndContinue", method = RequestMethod.POST)
public String saveAndContinue() {
save(request);
return "redirect:/newPage.html";
}

@RequestMapping(params = "save", method = RequestMethod.POST)
public String save() {
[...]

Also tagged ,