Questions tagged [errai]

Errai is a GWT-based framework for building rich web applications.

Errai provides a comprehensive framework and tools for building rich web applications, leveraging the GWT compiler. With standard server-side APIs, such as CDI in the browser, managing large web applications was never so easy.

115 questions
0
votes
0 answers

GWT to use Eclipse Jetty instead of Mortbay

How to I make GWT use Eclipse Jetty: org.eclipse.jetty jetty-server ${jetty.version}
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
0 answers

Auto-grow / Auto-size TextArea with GwtQuery

This is my code for a TextArea that auto resize (I'm using Errai so TextArea is injected btw): @Inject @DataField TextArea content; @AfterInitialization public void afterInit(){ content.getElement().setAttribute("wrap","off"); …
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

Errai Jax-RS not firing

I really dont understand why errai jax-rs is not firing: Usage @Inject private Caller myService; myService.call(new RemoteCallback() { @Override public void callback(MyModel result) { …
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
0 answers

Cannot run GWT app due to low Xmx JVM setting

This is the JVM config for my app that would not work: -Xmx500m -XX:MaxPermSize=250m -XX:-UseSplitVerifier -Derrai.devel.debugCacheDir=${project.basedir}/.errai…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

Cannot run Errai Dev Mode with JBoss AS or Wildfly

I'm trying to use Errai 3 new features which is JBoss AS integration, however I am getting this error: [ERROR] Unable to load server class 'org.jboss.errai.cdi.server.gwt.JBossLauncher' [ERROR] java.lang.ClassNotFoundException: …
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
2 answers

WARN [ErraiMarshalling] using dynamic marshallers

I'm trying to figure out why this Warning is showing up, as my Errai app loads in GWT Dev mode: [INFO] WARN [ErraiMarshalling] could not locate marshaller class. [INFO] WARN [ErraiMarshalling] using dynamic marshallers. dynamic marshallers are…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

Producers in Errai

Say I have a @ApplicationScoped MyProducer class which in turn have @Produces MyModel model, the question is, when I have anywhere in the app a @Inject MyModel something then this model would be whatever the value of MyModel model in the producer…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
0 answers

GWT and Maven 3- Disable / change debug level from Eclipse console

How to exclude the follwing Info mentioned in image from eclipse console while running a gwt project in development mode. ? I m using Eclipse Juno and Maven 3.
SR-Rehman
  • 83
  • 8
0
votes
1 answer

Calling JSNI method in @PostConstruct - Errai

I'm having an issue trying to call a JS function from Java using Errai 2.3.2 I'm using Bootstrap switch and I need to invoke a JS function in order to activate it. I need to do this after the page is created and all the elements are attached to the…
cristianmiranda
  • 130
  • 2
  • 11
0
votes
1 answer

Sending image data (base64) from client to server

This is my code for sending and image data over Errai Jax-RS: Model model = new Model(); GWT.log("Before setting byte array"); model.setImage(Base64.base64ToByteArray(base64)); GWT.log("After setting byte array"); …
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

Multi-part form upload with Errai

I'm trying to do a file upload for my Errai app, however I'm getting this error: [INFO] DEBUG [SynchronousDispatcher] PathInfo: /blob [INFO] WARN [ExceptionHandler] Failed executing GET /blob [INFO] org.jboss.resteasy.spi.NotAcceptableException: No…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

How to call GWT client code from within a GQuery event handler?

I'm learning GQuery. It seems cool, but also a little confusing. I have the following GWT client code. The selected item fades out, nicely. But the delete method never gets called. There is no error. It's very odd. Is it even possible to call…
Magick
  • 4,603
  • 22
  • 66
  • 103
0
votes
2 answers

Hard to make JSNI work with Errai

I'm finding it hard to make JSNI work directly with Errai, take for example this code: private static native void _createCallOut(JavaScriptObject callout)/*-{ $wnd.hopscotch.getCalloutManager().createCallout(callout); }-*/; Where this JSNI is…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
0 answers

Errai RestEasy issue with 3.0.0-SNAPSHOT

I Am getting this error when running errai 3.0.0 SNAPSHOT The same code works fine with 3.0.0.20130604-M1. Thanks host].[/airit-mobile-demo].[com.airit.mobile.server.local.rest.RestApplication]] (http-/0.0.0.0:8080-2) JBWEB000235: Allocate…
srose
  • 1
0
votes
1 answer

Inject HttpServletRequest inside method body (Errai service implementation)

How to inject HttpServletRequest in a Errai service implementation (server side) for use with code like this: @Override public void login(String username, String password, boolean rememberMe) { try { HttpServletRequest request = null; //…
quarks
  • 33,478
  • 73
  • 290
  • 513