ebean with HTML 5

68 views
Skip to first unread message

thin thiri Naing

unread,
May 3, 2012, 1:14:21 AM5/3/12
to play-framework
Hi All,


How can i use HTML5 with ebean?

With Best Regards,
Thiri

Pascal Voitot Dev

unread,
May 3, 2012, 2:42:57 AM5/3/12
to play-fr...@googlegroups.com
What is the link between HTML5 and ebean???

regards
Pascal


--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.


Lars Grote

unread,
May 3, 2012, 4:28:12 AM5/3/12
to play-fr...@googlegroups.com
Hey Pascal, 
the link is called Play ;)

Cheers, Lars


On Thursday, May 3, 2012 7:42:57 AM UTC+1, Pascal wrote:
What is the link between HTML5 and ebean???

regards
Pascal

On Thu, May 3, 2012 at 7:14 AM, thin thiri Naing <thinthiri...@gmail.com> wrote:
Hi All,


How can i use HTML5 with ebean?

With Best Regards,
Thiri

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-framework@googlegroups.com.
To unsubscribe from this group, send email to play-framework+unsubscribe@googlegroups.com.

thin thiri Naing

unread,
May 3, 2012, 10:33:00 PM5/3/12
to play-framework

In Play 2.0, I want to use HTML5 in (computer-database) project.

Eg.

Instead of this combo box, I want to change HTML 5 tag


@select(
computerForm("company.id"),
options(Company.options),
'_label -> "Company", '_default -> "-- Choose a
company --",
'_showConstraints -> false
)

thin thiri Naing

unread,
May 3, 2012, 10:40:45 PM5/3/12
to play-framework


In computer-database project -> app -> views -> createForm.scala.html

I CHANGE THE FOLLOWING CODING WITH HTML 5 TAG. BUT I DON'T KNOW HOW TO
CHANGE THE Combo Box TO USE THE Company INFORMATION.



@(computerForm: Form[Computer])

@import helper._

@implicitFieldConstructor =
@{ FieldConstructor(twitterBootstrapInput.render) }

@main {

<h1>Add a computer</h1>

<form action="@routes.Application.save()" method="POST">
<table>
<tr><td>Computer name <input type="text" name="name" id="name"
required="required" /></td></tr>
<tr><td>Introduced date <input type="text" name="introduced"
id="introduced" required="required" /></td></tr>
<tr><td>Discontinued date <input type="text" name="discontinued"
id="discontinued" required="required" /></td></tr>
<tr>
<td>
@select(
computerForm("company.id"),
options(Company.options),
'_label -> "Company", '_default -> "-- Choose a
company --",
'_showConstraints -> false
)
</td>
</tr>
<tr><td><input type="submit" value="Create this computer"
class="btn primary"> </td></tr>
<tr><td><a href="@routes.Application.list()" class="btn">Cancel</
a></td></tr>
</table>
</form>

}
Reply all
Reply to author
Forward
0 new messages