|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.scooterframework.web.util.F
public class F
F (FormHelper) class has helper methods for http form.
In order to display validation messages for a form element, formForOpen, formForClose and label methods must be used together. If there is error for a field, the field's label element will be highlighted.
formProperties is used to specify properties for form tag, including AJAX properties.
Ajax Examples:
//add a post and then refresh the posts list
formForOpen("posts", null, "data-ajax:true; data-target:#posts_list; data-handler:html")
result: