0

How to reuse custom components

asked 2009-08-05 13:24:33 +0800

gyowanny gravatar image gyowanny
283 1 2 6

Hi

I have a bandbox which loads all the products from a catalog. I have several screen that will contains a bandbox like that so I would like to know how to reuse this component in order to avoid "Glue Code" in all the places that will contains this component?

Thank you

Gyo

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-08-05 16:28:07 +0800

windeyu gravatar image windeyu flag of United States
288 3

I think there are several ways to do it. The two ways we're doing in our company are that
1) Put the common component inside a zul file. Everywhere else that needs it simply includes the zul file.
2) Write a custom component extending the bandbox. Everywhere else that needs this custom component simply uses its custom tag in zul.

link publish delete flag offensive edit

answered 2009-08-05 16:42:21 +0800

gyowanny gravatar image gyowanny
283 1 2 6

Cool,

This enough, at least I know where I have to start from.

Thank you windeyu

Gyo

link publish delete flag offensive edit
Your reply
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

Follow

RSS

Stats

Asked: 2009-08-05 13:24:33 +0800

Seen: 188 times

Last updated: Aug 05 '09

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