Re: Collapsable Tree & frames
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Wednesday, February 17, 2010, 9:01:48 AM, ashishjoking12 wrote: > Hi I am new to freemarker & need some help. > Can I create a templete which will have two frames left & right? My left > frame should have a collapsable tree structure & when I click on any node in > this tree the details should be shown in the right pane? Can I do this using > freemarker? If yes how do I create a templete & how do I store the data? > A example would really help. If by frame you mean the HTML frames, then you will have 3 HTML pages there (frameset + 2 frames), and each will be requested by the client independently. That means, you will need (at least) 3 templates (or a static HTML and 2 templates). That's how HTML and HTTP works, FreeMarker can't do anything about it. I guess your problem here is that while these 3 HTML-s rendered independently, in your application they had to share matching data... Well, that's a problem you face when using HTML frames, regardless of what view technology your are using. Use Servlet sessions to store the data the individual HTML-s should share, and/or code information into the URL-s of frames and tree node links via query strings (or store the data in the farmeset HTML and pull it into the two frames with JavaScript, but this last is more tricky as it involves quite much of client-side work). Another approach is not using HTML frames at all, but achieve something like what you want with CSS tricks and AJAX... But that solution surely requires the most skills. -- Best regards, Daniel Dekany ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev