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

  • Home
  • SEARCH
  • 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 7501351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:29:57+00:00 2026-05-29T20:29:57+00:00

Is it possible to put Entity inside of a nested folder/package and still use

  • 0

Is it possible to put Entity inside of a nested folder/package and still use CRUD module for basic administration?

I’m using YABE app, playframework 1.2.4.

I created another Entity called “Page” and I tried to put it in subfolder called “cms” in all folders like this:

models
-- cms
   -- Page.java
etc.

Existing link for YABE Entities is created like this:

<a href="@{Users.list()}">Users</a>

which generates route admin/users and leads you to a CRUD generated page

but if you put something like this, e.g. also create controller inside nested folder:

<a href="@{cms.Pages.list()}">Pages</a>

generates link like this cms.pages/list and leads you to “Not found“

Even if I put controller in a controllers root folder doesn’t work, obviously because CRUD module can’t find model class because it’s in subfolder.

When Page related classes are in root of controllers and models, everything works fine, but I want something like “packages” here.

What am I doing wrong?

Is something like this possible?

Will it work if I move everything to a separate module?

  • 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-29T20:29:59+00:00Added an answer on May 29, 2026 at 8:29 pm

    It is possible. However I found that keeping the CRUD models for entities in a different package made things a little more complicated and did not add that much value.

    Anyway make sure your controllers use the @CRUD.for annotation so they know which entity to manage:

    @CRUD.For(User.class)
    public class Users extends CRUD {
    }
    

    If you need to place your views in a subpackage, play crud:ov –template cms/Users/list will not work as expected except if you hack the crud commands.py with something like:

    p = a.split('/')[0]
    c = a.split('/')[1]
    t = a.split('/')[2]
    app.override('app/views/CRUD/%s.html' % t, 'app/views/%s/%s/%s.html' % (p, c, t))
    

    I can’t remember for sure but I think you might need to redefine your routing rules with something like:

    GET       /cms/?          cms.Users.index
    GET       /cms/users      cms.Users.list
    GET       /cms/users/new  cms.Users.blank
    GET       /cms/users/{id} cms.Users.show
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using this plugin: http://www.fyneworks.com/jquery/star-rating/ Is it possible to put a click function inside
I'm trying to use Entity Framework and it put it's connection string into app.config.
Is it possible to put an update SQL command inside db-data-config.xml used for indexing
Is it possible to put a combo box inside a list box? I'd like
Is it possible to put the results from more than one query on more
Is is possible to put a constant where clause to a Linq to SQl
Is it possible to put a macro in a macro in c++? Something like:
Based on a simple test I ran, I don't think it's possible to put
Possible Duplicate: How many Python classes should I put in one file? Coming from
Possible Duplicate: PHP detecting request type (GET, POST, PUT or DELETE) This 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.