Grails views for subclasses
Posted
by Jeff Beck
on Stack Overflow
See other posts from Stack Overflow
or by Jeff Beck
Published on 2010-06-16T23:05:39Z
Indexed on
2010/06/16
23:12 UTC
Read the original article
Hit count: 150
I have a domain object called page that only has a title, I then have subclasses what are StaticPage that also has a textblock and PicturePage that contains a url. I have a site object that has many pages, I am looking for a way in the view for the site to call the a different template for each subclass. I can easily iterate through the pages but I would like to call each subclasses own view.
© Stack Overflow or respective owner