|
![]() |
Mark Spritzler wrote:What about the gsp pages? Do you stick with them? Although I did notice <table> tr, td tags which I don't like. Well, to be honest, I don't like any html. ;)
But I heard that using tables for layout is old old school now.
Mark
Mark Spritzler wrote:If I keep Band and Person separate, even with a One To One relationship, for entering data into other objects and such, should I create a Filter so that they only see their band data, or some other means?
Thanks
Mark
Gregg Bolinger wrote:Did you update the SpringSecurity.config file so it knows Band is your person object? Also, you should be able to copy the original Person controller code directly to the band controller. Or you can just re-run the scripts 'generate-manager', etc.
Mark Spritzler wrote:Does that make sense.
Gregg Bolinger wrote:Are you saying you just want the root index.gsp to show something different?
Mark Spritzler wrote:
Gregg Bolinger wrote:Are you saying you just want the root index.gsp to show something different?
I want the List of News, and edit News, and create News to be in the body section, not take the entire page which removes the header/left nav that you see from the index page.
so the main layout is the main layout, with another main layout in the body of the first main layout. So the CRUD pages looks to stay in the main page, but in the body section.
I guess I could put the stuff that is in the index into the main layout gsp page, then all the others that use the main layout will have the header and left nav always there.
Mark
Gregg Bolinger wrote:
Mark Spritzler wrote:
Gregg Bolinger wrote:Are you saying you just want the root index.gsp to show something different?
I want the List of News, and edit News, and create News to be in the body section, not take the entire page which removes the header/left nav that you see from the index page.
so the main layout is the main layout, with another main layout in the body of the first main layout. So the CRUD pages looks to stay in the main page, but in the body section.
I guess I could put the stuff that is in the index into the main layout gsp page, then all the others that use the main layout will have the header and left nav always there.
Mark
Ah, I see. That junk you see in index.gsp is something I generally move to a protected page accessed via a secure controller. It's not something you want all your general users seeing. But if you really want that, then as you said, you'll need to move that into your layout/main.gsp. There might be a way to nest layouts but I haven't had a need so haven't looked that deeply into customizing sitemesh beyond the basics.
Gregg Bolinger wrote:Well, yea, you can use the index page as your entry point. Most times I create a HomeController with an index page and then simply have the root index redirect me. I always like to hit a controller first and by using the root index.gsp, you aren't really doing that. By move, I meant copy. I still have my root indexgsp. It's just simply a redirect.
Gregg Bolinger wrote:Well, just don't try and blame grails on your lack of CSS skillz.
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |