hello, i'm very new to tapestry and try to find out if it fits my needs...
I spend a lot of work learning cocoon and hibernate. I have a working hibernate subclass mapping, but i get some doubts whether cocoon is the right thing for my needs. I'm evaluating some other frameworks to find something better... thats why i'm here... what i have... i have several database objects, which all inherite some general properties and functionality from an abstract Entity object, which implements the Entity_IF. The database id (long) is over all kind of entities unique. So when i retrieve an Enity_IF object from the database by id, hibernate returns the right object instance. For instance id 123 retrieves an Address object, id 124 retrieves a Person object. This polymorph hibernate subclassmapping is already tested and works fine! what i want to do... 1. I want to place a component on a page identified only by the db id and let hibernate instantiate the specific Entity POJO. The POJO knows what kind of Entity it is and knows how to render the component. e.g. the following html template: ... our favorite person: and the adress of our favorite person: ... should render to: ... our favorite person: Thomas and the adress of our favorite person: CityKassel StreetPanoramaweg CountryGermany ... after tapestry and hibernate have done their work. 2. The next step... what about when the content from ... comes also from the database? e.g. when the dbid of the story comes from the url: http://domain.d/stories/id=125 (sorry... i don't know how tapestry url's look like - it's only an example...) The POJO of the story with the id=125 should be retrieved by hibernate from the db. The story object e.g. stores html content which could also hold nested components. So first render the story content and afterwards scan for nested components, retrieve them also from db and render them... Any idea if and how this could be solved with tapestry or any other framework? If you give me hope on that i promise to learn all that tapestry stuff... ;) thank you very much for your help!!! regards, thomas -------------------- m2f -------------------- Sent from www.TapestryForums.com Read this topic online here: <<topic_link>> http://www.tapestryforums.com/viewtopic.php?p=12606#12606 -------------------- m2f --------------------
