0

ZK 3.6.0 Macro component with Composer

asked 2009-03-05 09:47:49 +0800

mixgho gravatar image mixgho
193 3

updated 2009-03-12 13:17:48 +0800

I love this feature, but don't how to use it in my Custom Components Library.
I'm importing to my web application JAR file with my custom components defined in lang-addon.xml. How do I specify here that my component is using Composer instead of extendign HtmlMacroComponent?

I'mean something like this:

<component>
	<component-name>myBox</component-name>
	<!-- Instead of component-class I need component-composer -->
	<!-- <component-class>com.component.MyBox</component-class> -->
	<component-composer>com.component.MyBoxComposer</component-composer>
	<extends>box</extends>
</component>

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2009-03-09 01:22:35 +0800

robbiecheng gravatar image robbiecheng
1144 2
http://robbiecheng.sys-co...

please use the following statement,

<apply>com.component.MyBoxComposer</apply>

/robbie

link publish delete flag offensive edit

answered 2009-03-10 15:37:54 +0800

mixgho gravatar image mixgho
193 3

updated 2009-03-11 14:05:01 +0800

Cool, but how do i now append this macro component into other HtmlMacroComponent?

I did it this way with classic HtmlMacroComponent

MyComp myComp = new MyComp();
myComp.setParent(mBox);
myComp.afterCompose();

But now myComp has a Composer as backend and this does not work anymore.

link publish delete flag offensive edit

answered 2009-03-16 12:37:30 +0800

mixgho gravatar image mixgho
193 3

Any suggestions please?

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-03-05 09:47:49 +0800

Seen: 219 times

Last updated: Mar 16 '09

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