Is it the best practice to use "include" tag to dynamically change the page content?

asked 2009-08-05 10:40:55 +0800

baskaraninfo gravatar image baskaraninfo
526 2 2 9

I have been using a home page which contains include tag as "container" and the home page consists of several menu with menu items. On each menu items action, I have been replacing the include tag's "src" value. Hence, it replaces that particular portion in the home page with the specified content.

But, I want to conform, whether the whole page is requested from the server each time? or only the requested portion of the "include" tag?

Shall we catch the sub-portion as locally for the future reference of the include tag?

Is there any best alternative to do this?

Home page code snippet:
<columnchildren width="87%">
<include id="container"
src="/main/content.zul" />
<!--<include id="container"
src="${currentPage}" />

Tool bar page code snippet:
<toolbarbutton image="${each.menuImagePath}"
popup='${each.menuName}' forEach="${menunames}" />
<menupopup id="Sales">
<menuitem id="${each.menuItemPath}" src=""
label="${each.menuItemName}" onClick="container.src=self.id"
forEach="${sales}" />


delete flag offensive retag edit
Be the first one to reply this discussion!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2009-08-05 10:40:55 +0800

Seen: 159 times

Last updated: Aug 05 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More