Apache Wicket 8.x Reference GuideHTML links. Following the analogy with GUI frameworks, we can consider Wicket link as a “click” event handler: its purpose is to perform some actions (on server side!) when the user clicks on it. That paragraph we had a first taste of Wicket links and we have seen how they can be considered as a “click” event listener and how they can be used to navigate from a page to another. 13 Chapter 5. Wicket as page helloWorld.layoutTenda; import helloWorld.LoginPanel; import org.apache.wicket.event.Broadcast; import org.apache.wicket.event.IEventSink; public class SimpleLoginPage extends JugTemplate { public SimpleLoginPage(){0 码力 | 350 页 | 9.95 MB | 1 年前3
Apache Wicket 7.x Reference GuideHTML links. Following the analogy with GUI frameworks, we can consider Wicket link as a “click” event handler: its purpose is to perform some actions (on server side!) when the user clicks on it. That paragraph we had a first taste of Wicket links and we have seen how they can be considered as a “click” event listener and how they can be used to navigate from a page to another. 14 Chapter 5. Wicket as page helloWorld.layoutTenda; import helloWorld.LoginPanel; import org.apache.wicket.event.Broadcast; import org.apache.wicket.event.IEventSink; public class SimpleLoginPage extends JugTemplate { public SimpleLoginPage(){0 码力 | 346 页 | 10.00 MB | 1 年前3
Apache Wicket 10.x Reference GuideHTML links. Following the analogy with GUI frameworks, we can consider Wicket link as a “click” event handler: its purpose is to perform some actions (on server side!) when the user clicks on it. That paragraph we had a first taste of Wicket links and we have seen how they can be considered as a “click” event listener and how they can be used to navigate from a page to another. 14 Chapter 5. Wicket as page helloWorld.layoutTenda; import helloWorld.LoginPanel; import org.apache.wicket.event.Broadcast; import org.apache.wicket.event.IEventSink; public class SimpleLoginPage extends JugTemplate { public SimpleLoginPage(){0 码力 | 336 页 | 7.16 MB | 1 年前3
Apache Wicket 9.x Reference GuideHTML links. Following the analogy with GUI frameworks, we can consider Wicket link as a “click” event handler: its purpose is to perform some actions (on server side!) when the user clicks on it. That paragraph we had a first taste of Wicket links and we have seen how they can be considered as a “click” event listener and how they can be used to navigate from a page to another. 13 Chapter 5. Wicket as page helloWorld.layoutTenda; import helloWorld.LoginPanel; import org.apache.wicket.event.Broadcast; import org.apache.wicket.event.IEventSink; public class SimpleLoginPage extends JugTemplate { public SimpleLoginPage(){0 码力 | 335 页 | 7.15 MB | 1 年前3
Introducing Apache Wicketimplements links with component org.apache.wicket.markup.html.link.Link, but it's more like onClick event listener than a link: public class HomePage extends WebPage { public HomePage(){ add(new OnLoadHeaderItem(";alert('hello!');"); ● OnEventHeaderItem: execute JavaScript code when a specifc event is triggered. OnEventHeaderItem item = new OnEventHeaderItem("elementId", items meant to work with JavaScript events. In this way we can execute our code only when a specifc event occurs. Bundle resources ● To reduce the number of requests to the server, resources can be aggregated0 码力 | 53 页 | 1.85 MB | 1 年前3
共 5 条
- 1













