Scala Play Framework - Dynamic Forms

Shookit

I'm currently in the process of trying to define a dynamic form in Play (Scala). What I mean by a "dynamic" form is one which presents different form elements (and POSTs different data) depending on the state of some runtime (specifically database-side) data.

A brief illustrative example: on a to-do list application, how could one create a form which creates a "delete" check box next to each of the list elements? I realize this could be done with GET links or with AJAX/javascript, but I want this to be a standard POST form with a "submit" button.

I'm aware of the repeated mapping form functionality, but is it possible to define an even more dynamically generated form, where the structure is less strict than just single+repeated elements?

Thanks for any suggestions you might have. I realize this might just be more than POST is cut out for.

Shookit

The closest thing that I have to an answer for this is that POST and any sane web framework supports "array" inputs. Hence, if you can get your data into any regularized format, you can serialize/deserialize via that. You may be able to support semiexotic data patterns by using this method as well.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Purely Dynamic forms using play framework

From Dev

How to Validate Negative BigDecimals in scala play Framework FORMS?

From Dev

How to Validate Negative BigDecimals in scala play Framework FORMS?

From Dev

Play Framework Forms (Java)

From Dev

Play framework in Scala deployment

From Dev

Play Framework Scala Template

From Dev

Play framework dynamic template include

From Dev

Play framework dynamic template include

From Dev

Use of @Singleton in Scala play framework

From Dev

Depedency injection framework of Play and Scala?

From Dev

Firebase and Play Framework (Scala) is it possible?

From Dev

Scala parameter to Java (Play Framework)

From Dev

Scala backticks in Play Framework Routes

From Dev

Nested requests with Scala and play Framework

From Dev

Firebase and Play Framework (Scala) is it possible?

From Dev

Scala Dependency Injection in Play Framework

From Dev

Play! Framework Scala Form Submitbutton

From Dev

scala play framework json conversion

From Dev

Migrating from Spring framework to Play framework (Scala)

From Dev

How to correctly validate forms with Play! in Scala?

From Dev

Error message not displaying Scala Play Forms

From Dev

Play Scala Anorm dynamic SQL for UPDATE query

From Dev

Dynamic Build ws Request in Scala Play

From Dev

Display Dynamic Image in Play! Framework Template

From Dev

Long dynamic routes in play framework 2

From Dev

Play Framework - Register a custom DataBinder for dynamic fields

From Dev

Dynamic value of textarea with Play framework with Silhouette

From Dev

Play Framework, Dynamic statement inside for loop

From Dev

Unit Test controllers in Play 2 framework with Scala

Related Related

HotTag

Archive