0

struts integration

asked 2006-03-01 16:56:03 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: nobody

how does zk intergrate with struts and the standard tag libraries.

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2006-03-01 17:49:57 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: tomyeh

Try to search JSF and JSP for thread like
http://sourceforge.net/forum/message.php?msg_id=3504251

Theorectically, it can be done, but we don't have a good pattern yet. We encourage you to try and I love to help. Many of users are looking for this pattern.

link publish delete flag offensive edit

answered 2006-03-06 00:02:03 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: fernando_deleon

I have a small app that uses ZK + JSF + Hibernate + Spring I found that in JSF to forward to a specific zul page i had to wrap the zul page in a jsp file.
otherwise the jsf says cant find file myZul.jsp even though the file is called myZul.zul and that how is written in the jsf config file.
And to pass information from jsf to zk i had to put the info in a session.
I am sure there must be otherways..but i tried some and dont work.

link publish delete flag offensive edit

answered 2006-03-06 02:21:46 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: tomyeh

Interesting. Looks like JSF does something specially regarding JSP.

link publish delete flag offensive edit

answered 2006-03-06 02:27:23 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: fernando_deleon

yes i think is a "feature" of jsf that all pages are for jsp purposes..
the only type of linking i can figure out as of now between zul to any other web framework following a MVC 2 model is for framework X to make available a dto or pojo on a session or request ..
then the zk component would read it from its session handling or request handling capabilitites.


link publish delete flag offensive edit

answered 2006-03-06 02:56:38 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: tomyeh

I am thinking another alternative. Using JSP tags to wrap each ZK component plus a hidden field. Thus, when user click submit (onsubmit), ZK's value is copied to the hidden field and then send back to MVC framework for processing.

On the other hand, ZK components talks back to ZK Update Engine for Ajax stuffs.

Pros: not much change to existent codes
Cons: when the framework forwards to a view, the whole page at the client is reloaded.

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-03-01 16:56:03 +0800

Seen: 809 times

Last updated: Mar 06 '06

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