public FeedForm() {
setHeaderVisible(false);
txtfldTitle = new TextField<String>();
txtfldTitle.setAllowBlank(false);
FormData fd_txtfldTitle = new FormData("100%");
fd_txtfldTitle.setMargins(new Margins(2, 20, 2, 2));
add(txtfldTitle, fd_txtfldTitle);
txtfldTitle.setFieldLabel("Title");
txtfldTitle.getMessages().setBlankText("Title is required");
txtrDescription = new TextArea();
txtrDescription.setAllowBlank(false);
FormData fd_txtrDescription = new FormData("100% -150");
fd_txtrDescription.setMargins(new Margins(2, 20, 2, 2));
add(txtrDescription, fd_txtrDescription);
txtrDescription.setFieldLabel("Description");
txtrDescription.getMessages().setBlankText("Description is required");
txtfldLink = new TextField<String>();
txtfldLink.setRegex("^http\\://[a-zA-Z0-9\\-\\.]+\\.[a-zA-Z]{2,3}(/\\S*)?$");
txtfldLink.setAllowBlank(false);
FormData fd_txtfldLink = new FormData("100%");
fd_txtfldLink.setMargins(new Margins(2, 20, 2, 2));
add(txtfldLink, fd_txtfldLink);
txtfldLink.setFieldLabel("Link");
txtfldLink.getMessages().setBlankText("Link is required");
txtfldLink.getMessages().setRegexText("The link field must be a URL e.g. http://www.example.com/rss.xml");