Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
[Scala] Form with dynamic fields
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mike V. Girkin  
View profile  
 More options Nov 6 2012, 8:29 am
From: "Mike V. Girkin" <mikegir...@gmail.com>
Date: Tue, 6 Nov 2012 05:29:57 -0800 (PST)
Local: Tues, Nov 6 2012 8:29 am
Subject: [2.0] [Scala] Form with dynamic fields

I have some difficulties creating dynamic forms in my scala playframework
application.
I am quite new to Play!, and got stuck with the following task:
Fields of my form is specified in the database somehow. I need to render
the form and (this is the most important) recieve the data from the user.
Is there any way to use the Forms scala api for this task?
At the moment I have solved the issue "by hand" - getting values directly
from the request, but don't like my solution.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Artem Kozlov  
View profile  
 More options Nov 6 2012, 3:31 pm
From: Artem Kozlov <artem.akoz...@gmail.com>
Date: Tue, 6 Nov 2012 12:31:48 -0800 (PST)
Local: Tues, Nov 6 2012 3:31 pm
Subject: Re: [2.0] [Scala] Form with dynamic fields

Have you read this:
http://www.playframework.org/documentation/2.0.4/ScalaForms ? Especially
part about "Constructing complex objects", "Handling binding failure" and
"Nested values".

And check this example projects:
https://github.com/playframework/Play20/tree/master/samples/scala/forms
https://github.com/playframework/Play20/tree/master/samples/scala/com...

Artem.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike V. Girkin  
View profile  
 More options Nov 7 2012, 7:24 am
From: "Mike V. Girkin" <mikegir...@gmail.com>
Date: Wed, 7 Nov 2012 04:24:44 -0800 (PST)
Local: Wed, Nov 7 2012 7:24 am
Subject: Re: [2.0] [Scala] Form with dynamic fields

Good day!

  Yes, I have. I have no problems with creating "static" forms, when the
content of the form is known at the moment of writing code.

  The problem is, that my form is completely dynamic. Number and type of
fields is defined in the database, and could be different.
  First, I don't understand how to write the dynamic mapping for the
fields, and also I could not understand how to supply *apply *and *unapply*function, if the number of parameters unkown.

среда, 7 ноября 2012 г., 0:31:48 UTC+4 пользователь Artem Kozlov написал:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "[2.0] [Scala] Form with dynamic fields" by Mikhail V. Girkin
Mikhail V. Girkin  
View profile  
 More options Nov 8 2012, 9:27 am
From: "Mikhail V. Girkin" <mikegir...@gmail.com>
Date: Thu, 8 Nov 2012 18:26:56 +0400
Local: Thurs, Nov 8 2012 9:26 am
Subject: Re: [play-framework] Re: [2.0] [Scala] Form with dynamic fields

Hi all!

  Investingated the sources of Play framework, and found out, that it is
impossible to achieve the goal I set.
  Solved the problem by leaving out Forms api, and used mappings and
contstraints from the Play framework.

2012/11/7 Mike V. Girkin <mikegir...@gmail.com>

--
Mike V. Girkin

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Byron Weber Becker  
View profile   Translate to Translated (View Original)
 More options May 8, 6:44 pm
From: Byron Weber Becker <bwbec...@uwaterloo.ca>
Date: Wed, 8 May 2013 15:44:44 -0700 (PDT)
Local: Wed, May 8 2013 6:44 pm
Subject: Re: [play-framework] Re: [2.0] [Scala] Form with dynamic fields

I have the same issue.  Can you elaborate a bit more on the workaround you
used?

Byron


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »