Java Code Examples for play.data.FormFactory#form()
The following examples show how to use
play.data.FormFactory#form() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PostController.java From htwplus with MIT License | 6 votes |
@Inject public PostController(GroupManager groupManager, PostManager postManager, PostBookmarkManager postBookmarkManager, AccountManager accountManager, Configuration configuration, FormFactory formFactory, NotificationService notificationService, MessagesApi messagesApi) { this.groupManager = groupManager; this.postManager = postManager; this.postBookmarkManager = postBookmarkManager; this.accountManager = accountManager; this.configuration = configuration; this.formFactory = formFactory; this.notificationService = notificationService; this.messagesApi = messagesApi; this.postForm = formFactory.form(Post.class); }
Example 2
Source File: Application.java From htwplus with MIT License | 6 votes |
@Inject public Application(ElasticsearchService elasticsearchService, ElasticsearchResponse elasticsearchResponse, GroupManager groupManager, PostManager postManager, AccountManager accountManager, Configuration configuration, FormFactory formFactory, MessagesApi messagesApi) { this.elasticsearchService = elasticsearchService; this.elasticsearchResponse = elasticsearchResponse; this.groupManager = groupManager; this. postManager = postManager; this.accountManager = accountManager; this.configuration = configuration; this.messagesApi = messagesApi; this.formFactory = formFactory; this.postForm = formFactory.form(Post.class); this.limit = configuration.getInt("htwplus.post.limit"); }
Example 3
Source File: AdminController.java From htwplus with MIT License | 6 votes |
@Inject public AdminController(ElasticsearchService elasticsearchService, MediaManager mediaManager, GroupManager groupManager, PostManager postManager, AccountManager accountManager, FolderManager folderManager, FormFactory formFactory, MessagesApi messagesApi) { this.elasticsearchService = elasticsearchService; this.mediaManager = mediaManager; this.groupManager = groupManager; this.postManager = postManager; this.accountManager = accountManager; this.folderManager = folderManager; this.messagesApi = messagesApi; this.formFactory = formFactory; this.accountForm = formFactory.form(Account.class); this.postForm = formFactory.form(Post.class); }
Example 4
Source File: PortfolioController.java From reactive-stock-trader with Apache License 2.0 | 5 votes |
@Inject private PortfolioController(PortfolioService portfolioService, QuoteService quoteService, BrokerService brokerService, FormFactory formFactory) { this.portfolioService = portfolioService; this.quoteService = quoteService; this.brokerService = brokerService; this.placeOrderForm = formFactory.form(PlaceOrderForm.class); this.openPortfolioForm = formFactory.form(OpenPortfolioForm.class); }
Example 5
Source File: GroupController.java From htwplus with MIT License | 5 votes |
@Inject public GroupController(GroupManager groupManager, GroupAccountManager groupAccountManager, MediaManager mediaManager, FriendshipManager friendshipManager, PostManager postManager, AccountManager accountManager, FolderManager folderManager, AvatarManager avatarManager, NotificationService notificationService, Configuration configuration, FormFactory formFactory, MessagesApi messagesApi) { this.groupManager = groupManager; this.groupAccountManager = groupAccountManager; this.mediaManager = mediaManager; this.friendshipManager = friendshipManager; this.postManager = postManager; this.accountManager = accountManager; this.folderManager = folderManager; this.avatarManager = avatarManager; this.notificationService = notificationService; this.configuration = configuration; this.formFactory = formFactory; this.messagesApi = messagesApi; this.groupForm = formFactory.form(Group.class); this.folderForm = formFactory.form(Folder.class); this.postForm = formFactory.form(Post.class); this.limit = configuration.getInt("htwplus.post.limit"); }
Example 6
Source File: ProfileController.java From htwplus with MIT License | 5 votes |
@Inject public ProfileController(AccountManager accountManager, GroupAccountManager groupAccountManager, PostManager postManager, AccountController accountController, StudycourseManager studycourseManager, AvatarManager avatarManager, MediaManager mediaManager, FriendshipManager friendshipManager, Configuration configuration,FormFactory formFactory, MessagesApi messagesApi) { this.accountManager = accountManager; this.groupAccountManager = groupAccountManager; this.postManager = postManager; this.accountController = accountController; this.studycourseManager = studycourseManager; this.avatarManager = avatarManager; this.mediaManager = mediaManager; this.friendshipManager = friendshipManager; this.configuration = configuration; this.formFactory = formFactory; this.messagesApi = messagesApi; this.accountForm = formFactory.form(Account.class); this.postForm = formFactory.form(Post.class); this.loginForm = formFactory.form(Login.class); this.LIMIT = configuration.getInt("htwplus.post.limit"); }
Example 7
Source File: WireTransferController.java From reactive-stock-trader with Apache License 2.0 | 4 votes |
@Inject private WireTransferController(WireTransferService wireTransferService, FormFactory formFactory) { this.wireTransferService = wireTransferService; this.transferForm = formFactory.form(TransferForm.class); }
Example 8
Source File: DefaultResetPasswordFormDataTest.java From commercetools-sunrise-java with Apache License 2.0 | 4 votes |
@Before public void setup() { final FormFactory formFactory = app.injector().instanceOf(FormFactory.class); form = formFactory.form(DefaultResetPasswordFormData.class); }
Example 9
Source File: DefaultRecoverPasswordFormDataTest.java From commercetools-sunrise-java with Apache License 2.0 | 4 votes |
@Before public void setup() { final FormFactory formFactory = app.injector().instanceOf(FormFactory.class); form = formFactory.form(DefaultRecoverPasswordFormData.class); }
Example 10
Source File: DefaultAddDiscountCodeFormDataTest.java From commercetools-sunrise-java with Apache License 2.0 | 4 votes |
@Before public void setup() { final FormFactory formFactory = app.injector().instanceOf(FormFactory.class); form = formFactory.form(DefaultAddDiscountCodeFormData.class); }
Example 11
Source File: DefaultRemoveDiscountCodeFormDataTest.java From commercetools-sunrise-java with Apache License 2.0 | 4 votes |
@Before public void setup() { final FormFactory formFactory = app.injector().instanceOf(FormFactory.class); form = formFactory.form(DefaultRemoveDiscountCodeFormData.class); }