I believe there is no way you can refresh part of a layout; the whole layout jsp will have to reload.
For your second question, you can write the menu part of your layout (say 'menu.jsp') in a way capable of recognizing the current section selection of the user and self-expand accordingly...

On Sunday, January 19, 2003, at 09:07 AM, Carl Hope wrote:


I'm recoding an existing app using Struts and Tiles. The app originally used frames with the usual
components of header, menu, body and footer. I've replaced the frameset with
a layout template and it works fine. The difficulty I'm having is when I only
want to refresh the menu tile and not repeat all the work to create the body.
e.g. the user clicks on an image in the menu that opens up a tree node to show
sub-menus - only the menu model and view are changed. With frames this was
easy, but with Tiles it's not so easy, at least not for me. There are two
problems:

- Is there a way to process just the menu HTML and avoid re-generating the
body, header and footer?.
- If all tiles must be regenerated, how should I define the Action for the
menu change. This should really just call a menu handler page but if the
entire page must be regenerated, then I need to specify the action for the
current Tiles definition and retain state.

I've considered trappping and caching the generated HTML from each response
and replacing only the changed menu but that doesn't seem "clean". Anyone
have any guidance?

Cagan Senturk

Emirca Technologies, Inc.
75 Spring St. Floor #8
NYC, NY 10012

mailto:[EMAIL PROTECTED]
http://www.emirca.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to