Equivalent of Line Separator in smartGWT?

Is there an equivalent or alternate for

System.getProperty("line.separator");

It gives the below error

  • Anyone use Pyjamas (pyjs) python to javascript compiler (like GWT..)
  • Learning JavaScript… Should I skip straight to the good stuff (the frameworks)?
  • How to turn on Pause On Uncaught Exceptions in Google Chrome Canary?
  • user.agent value for chrome
  • How do I merge GWT Permutations from different Locales?
  • GWT - Can't Finding entry point classes
  • The method getProperty(String, String) in the type System is not applicable for the arguments (String)

  • Which effects library should I integrate with GWT?
  • Where data sort should be done ? Server or client?
  • javascript/gwt: converting Uint8Array or ArrayBuffer to ImageData element
  • Protocol buffers for JavaScript?
  • Creating widgets in GWT and using them in My existing website
  • Why is Window.open()'s return type void?
  • One Solution collect form web for “Equivalent of Line Separator in smartGWT?”

    I think you need to execute System.getProperty("line.separator") in your server side code and access it using RPC or any other server side gwt communication technique.

    Check GWT JRE Emulation:

    GWT includes a library that emulates a subset of the Java runtime library. The list below shows the set of JRE packages, types and methods that GWT can translate automatically. Note that in some cases, only a subset of methods is supported for a given type.

    System

    err, out
    System(), arraycopy(Object, int, Object, int, int), currentTimeMillis(), gc(), getProperty(String, String), identityHashCode(Object), setErr(PrintStream), setOut(PrintStream)