0

zul tiles with jsp, struts et al

asked 2006-09-08 11:24:02 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3904692

By: nobody

i wrote a how-to section on the wiki for ZK + Struts + Tiles + JSP (+ Spring).
one thing that i notice is that my zul tile is writing out <html>...</html> embedded within my enclosing jsp page. i could wrap the zul tile in an iframe but that defeats the point of showing zul within a tile within a jsp. is there anyway that i can tell the Window or Desktop not to render the html tags?

delete flag offensive retag edit

9 Replies

Sort by ยป oldest newest

answered 2006-09-08 16:03:36 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3905775

By: nobody

Can you provide a pointer to your how-to article?

link publish delete flag offensive edit

answered 2006-09-08 22:42:13 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3906214

By: simon_massey

the one entitled
# 3.2 Struts + Tiles + JSP (+ Spring)
on the wiki at http://en.wikibooks.org/wiki/ZK/How-Tos which is below the Spring integration section. i have also extended the section above it about Spring itegration to refactor the spring bean lookups into a Window subclass that is the business delegate to a spring injected session facade.

link publish delete flag offensive edit

answered 2006-09-09 07:05:17 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3906451

By: nobody

to be clearer about what i am seeing. my jsp looks like

<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %> <tiles:insert page="site-layout.jsp" flush="true">
<tiles:put name="body-content" value="/search-results.zul" /> </tiles:insert>

and there is no filtering of the jsp. i do not need to run a filter on the jsp as the jsp is pulling in the xhtml created when search-results.zul is loaded by zkLoader. my problem is that the zkLoader puts <html></html> around it's output. that is fine if someone hits the zul page directly - but browser dont see it directly for me. they see it tiled within my JSP page.

clearly zkLoader might not know at the moment that a given zul file is being tiled into a jsp or is being sent straight to the browser. i was wondering whether i could put something into the actual search results page that could ask zkLoader not to write out the html tags.

link publish delete flag offensive edit

answered 2006-09-11 03:18:33 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3908307

By: tomyeh

Thanks for your contribution. May we know your name? It will be better if you can write a small talk:)

To know whether to generate <html>, ZK check whether a page is included (RequestDispatcher's include). You might take a look at lin 490 in PageImpl.java.
To check whehter it is included, it actually checks whether the javax.servlet.include.servlet_path attribute is defined.

How do you create components from a ZUL page?

link publish delete flag offensive edit

answered 2006-09-12 20:02:51 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3911276

By: nobody

My name is Simon Massey. Thanks for that Tom. I guess that as my Tiles approach causes the ZK loader to render <html> that I must have come up with something new :-)

I just now updated my wiki entry to point out that it was a very un-AJAX way of doing things. I came up with it as I need to justify to my employer that ZK "plays well" with our existing J2EE technology stack. My additions to the wiki today point out that ZK can do it so much better with a single page app with transparent AJAX. We have implimented my suggestions on the wiki. I will ask the "powers that be" whether I can wrap up the code into a Small Talk. Working for a major global financial firm I need dot the i's and cross the t's before doing such a Small Talk.

Today I have been aggressively soak testing my refactored AJAX search results page. JMeter has been hammering it for six hours and all is well. Perhaps you would like me to do a Small Talk on how to configure JMeter and other free tools to soak and load test ZK? Big financial firms like mine like to do such due diligence. A Small Talk on how I did it would give others a jump start on getting ZK past their architectual Toll Gates.

link publish delete flag offensive edit

answered 2006-09-12 20:12:54 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3911289

By: nobody

p.s. my wiki entry outlines exactly how to configure what i am doing with Tiles.
once i have cleared it with management i will post the code.

link publish delete flag offensive edit

answered 2006-09-13 04:33:43 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3911732

By: tomyeh

Hi Simon,

Yes, it will be great to see your small talk about testing ZK with JMeter. In addition to configuration, your test results are welcome.

Contact me at zkscape [at] gmail [dot] com.

Thanks,
Tom

link publish delete flag offensive edit

answered 2006-10-01 09:17:42 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3941104

By: nobody

i wrote you an email two weeks ago about doing a small talk but i did not get a reply :(

link publish delete flag offensive edit

answered 2006-10-02 02:36:48 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3941801

By: tomyeh

Hi Simon,

I don't know what went wrong, but I didn't receive your email. Would you send again?

Thanks and Regards,
Tom / ZK
zkscape [at] gmail [dot] com



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: 2006-09-08 11:24:02 +0800

Seen: 579 times

Last updated: Oct 02 '06

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