Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6888385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:00:32+00:00 2026-05-27T06:00:32+00:00

I am trying to build a web application where the user can select and

  • 0

I am trying to build a web application where the user can select and define a web-page’s content through the use of some predefined UI components (without exposing any HTML to the users).

Since I’m new to Play framework, I need some good practices to store the (component-based) content of this web page “the Play way“. Basically I can think of two approaches:

  • I can define a page-content definition model that will store the user’s creation; and then produce the live page by a smart template mechanism based on the info in this model.
  • or, I can convert and store the page-content directly as a template (play template) on the filesytem. But then re-editing of a previously generated content will be difficult to handle I think.
  • or, I can use both: the model for the editing and updating, the template to store and display.

Do you propose any one of them, or would another approach be more practical/right for a Play application?

Thank you very much 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:00:33+00:00Added an answer on May 27, 2026 at 6:00 am

    The Play! way would be to define all your entities as part of your model and store them in a database. This way you can make the best use of the integrated jpa features which come bundled with Play!.
    You could define your html components as Models which are associated with a particular user/site and keep them updated on the db.

    public class User extends Model {
    
       @OneToMany
       List<HtmlComponent> components;
    }
    

    I suggest you go through the jpa section and the tutorial if you need a better idea of how Play! works.

    Personally I would seldomely use the filesystem for anything else than properties and configuration.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What I’m trying to do: Build a mobile web application where the user can
I am trying to build an iPhone web application using ASP.NET. The page is
I'm trying to use NAnt/NAntContrib build script to build a web application on Windows
I am trying to use Aptana to build an IPhone web application. I've never
I'm trying to build a web application in which users can invite their friends
I'm trying to build a Web page that has a rich text editor. Is
I'm trying to build an application that will allow the user to setup N
I am trying to build a web application in ASP.NET MVC and need build
I am trying to build a web application that enables users to refer people
I am trying to build a free web application using ruby/rails It should be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.