0

Any richlet demo?

asked 2009-11-24 22:02:20 +0800

likebean gravatar image likebean
39 2

Hi all,I want to use richlet instead of zul,but I can not find any demo using it.any?

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-11-25 13:39:53 +0800

fselva gravatar image fselva
66 1

Follow is a richlet demo. You must include the richlet definition into zk.xml like you do with a servlet.

public class ZKRichletTest extends GenericRichlet {
	// Richlet//
	public void service(Page page) {
		page.setTitle("Richlet Test");
		Window window = new Window("Richlet test", "normal", false);
		window.setWidth("400px");
		window.setHeight("400px");
		Label label = new Label("Hello!");
		window.appendChild(label);
		window.setPage(page);
	}
}

/fselva

link publish delete flag offensive edit

answered 2009-11-25 19:11:38 +0800

likebean gravatar image likebean
39 2

This is a test class only,any demo like petstore?

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-11-24 22:02:20 +0800

Seen: 400 times

Last updated: Nov 25 '09

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