Revision history [back]

click to hide/show revision 1
initial version

asked 2015-03-23 09:11:18 +0800

cka gravatar image cka

Structuring zu-code without includes?

In my situation I have a list of objects in my first browser "page" and with a click on one row I get the details of one object.

I structured the detail 'page' in a 'main-zul' and several "sub-zul"s, which each contain one tab on this page. These sub-zuls are included by the zkoss-include-mechanism.

For structuring and reusing the zul-code this is a good mechanism, but I see several disadvantages:

  • I cannot pass parameters from the list-page to the sub-zuls. (I use Executions.createComponent() and the map is only transported to main-zul, because the include-Component is creating a new component with an own parameter-stack.)

  • The sub-zuls and the main-zul are not on the same zkoss-page, but on the same desktop. For eventing I see several advantages to use the page-level eventing. (No old listener to unsubscribe after a reload.)

Is there a possibilty to "include" zuls without having a new page, only to structure the zul-code?

Are there other mechanisms to structure zul-code?

Thanks

Christian

Structuring zu-code zul-code without includes?

In my situation I have a list of objects in my first browser "page" and with a click on one row I get the details of one object.

I structured the detail 'page' in a 'main-zul' and several "sub-zul"s, which each contain one tab on this page. These sub-zuls are included by the zkoss-include-mechanism.

For structuring and reusing the zul-code this is a good mechanism, but I see several disadvantages:

  • I cannot pass parameters from the list-page to the sub-zuls. (I use Executions.createComponent() and the map is only transported to main-zul, because the include-Component is creating a new component with an own parameter-stack.)

  • The sub-zuls and the main-zul are not on the same zkoss-page, but on the same desktop. For eventing I see several advantages to use the page-level eventing. (No old listener to unsubscribe after a reload.)

Is there a possibilty to "include" zuls without having a new page, only to structure the zul-code?

Are there other mechanisms to structure zul-code?

Thanks

Christian

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