This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<jaxb:bindings xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/jaxb http://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd" | |
version="2.1" jaxb:extensionBindingPrefixes="xjc"> | |
<jaxb:globalBindings> | |
<!-- Use java.util.Calendar instead of javax.xml.datatype.XMLGregorianCalendar for xs:dateTime --> | |
<jaxb:javaType name="java.util.Calendar" xmlType="xs:dateTime" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.jvnet.jax-ws-commons</groupId> | |
<artifactId>jaxws-maven-plugin</artifactId> | |
<version>2.1</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>wsgen</goal> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.jvnet.jax-ws-commons</groupId> | |
<artifactId>jaxws-maven-plugin</artifactId> | |
<version>2.1</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>wsimport</goal> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@WebService | |
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) | |
public class MovieSearchServiceImpl implements MovieSearchService { | |
@WebMethod | |
@Override | |
public SearchResult search(Filter filter) { | |
throw new UnsupportedOperationException("Not supported yet."); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<ui:composition template="../templates/default.xhtml" | |
xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:ui="http://java.sun.com/jsf/facelets" | |
xmlns:h="http://java.sun.com/jsf/html" | |
xmlns:f="http://java.sun.com/jsf/core"> | |
<ui:define name="title">Template client page title</ui:define> | |
<ui:define name="content"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void someaction(AjaxBehaviorEvent event) { | |
dosomething; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ManagedBean | |
@RequestScoped | |
public class MyBean { | |
private List<Book> books; | |
@PostConstruct | |
public void init() { | |
//retrieve books. | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http://wicket.apache.org" lang="en"> | |
<head> | |
<meta charset="utf-8"/> | |
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico"/> | |
</head> | |
<body> | |
<header> | |
<h1> | |
<img src="img/logo.png" id="logo"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final Form form; | |
// form initialize | |
final TextField<String> messageField = new TextField<String>("messageField", Model.of("")); | |
messageField.add(new AjaxFormComponentUpdatingBehavior ("onkeyup") { | |
@Override | |
protected void onUpdate(AjaxRequestTarget target) { | |
myListenerMethod(); | |
target.addComponent(form); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final BookProvider userProvider = new BookProvider(); | |
IColumn[] columns = new IColumn[3]; | |
columns[0] = new PropertyColumn(new Model("Author"), "author", "author"); | |
columns[1] = new PropertyColumn(new Model("Title"), "title", "title"); | |
columns[2] = new PropertyColumn(new Model("Release date"), "releaseDate", "releaseDate"); | |
DefaultDataTable table = new DefaultDataTable("datatable", columns, BookProvider, 10); | |
add(table); |
OlderNewer