This file contains hidden or 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
<module rename-to="Sample"> | |
<inherits name="org.jboss.errai.ui.Cordova"/> | |
<replace-with class="org.jboss.errai.example.client.local.Config"> | |
<when-type-is class="org.jboss.errai.bus.client.framework.Configuration"/> | |
</replace-with> | |
... |
This file contains hidden or 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
package org.jboss.errai.example.client.local; | |
import org.jboss.errai.bus.client.framework.Configuration; | |
public class Config implements Configuration { | |
@Override | |
public String getRemoteLocation() { | |
return "http://my-app-location.rhcloud.com/"; | |
} | |
} |
This file contains hidden or 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.jboss.errai</groupId> | |
<artifactId>cordova-maven-plugin</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<executions> | |
<execution> | |
<id>build</id> | |
<phase>package</phase> |
This file contains hidden or 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
<pluginRepositories> | |
<pluginRepository> | |
<id>snapshots.jboss.org</id> | |
<name>JBoss Snapshot Repository</name> | |
<url>http://snapshots.jboss.org/maven2</url> | |
<layout>default</layout> | |
<snapshots> | |
<enabled>true</enabled> | |
</snapshots> | |
</pluginRepository> |
This file contains hidden or 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
package org.jboss.errai.ioc.client; | |
import com.google.gwt.core.client.GWT; | |
import com.google.gwt.dom.client.Element; | |
import com.google.gwt.editor.client.IsEditor; | |
import com.google.gwt.event.dom.client.ClickEvent; | |
import com.google.gwt.event.dom.client.ClickHandler; | |
import com.google.gwt.event.dom.client.HasAllDragAndDropHandlers; | |
import com.google.gwt.event.dom.client.HasAllFocusHandlers; | |
import com.google.gwt.event.dom.client.HasAllGestureHandlers; |
This file contains hidden or 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
Pipe<Project> pipe = new PipeFactory().createPipe(Project.class, new Config("project")); | |
pipe.read(new DefaultCallback<List<Project>>() { | |
@Override | |
public void onSuccess(List<Project> result) { | |
System.out.println("All the projects... " + result); | |
} | |
}); |
This file contains hidden or 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
<div data-field="root"> | |
<form> | |
<legend>Login</legend> | |
<div> | |
<label for="inputEmail">Username</label> | |
<div> | |
<input type="text" id="inputEmail" data-field="username"> | |
</div> | |
</div> | |
<div> |
This file contains hidden or 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
@Remote | |
public interface MessageService { | |
@RequireAuthentication | |
String hello(); | |
@RequireRoles("admin") | |
String ping(); | |
} |
This file contains hidden or 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"?> | |
<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee | |
http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"> | |
<interceptors> | |
<class>org.jboss.errai.security.server.SecurityUserInterceptor</class> | |
<class>org.jboss.errai.security.server.SecurityRoleInterceptor</class> | |
</interceptors> | |
</beans> |
OlderNewer