Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » [neon] SVG Field
[neon] SVG Field [message #1735377] Fri, 17 June 2016 18:50 Go to next message
Eclipse UserFriend
Do SVG fields work yet?
To the client, I added to the pom.xml:
    <dependency>
      <groupId>org.eclipse.scout.rt</groupId>
      <artifactId>org.eclipse.scout.rt.svg.client</artifactId>
    </dependency>

and to the ui.html, I added to the pom.xml:
	<dependency>
	    <groupId>org.eclipse.scout.rt</groupId>
	    <artifactId>org.eclipse.scout.rt.svg.ui.html</artifactId>
	</dependency>

However, any forms with SVG Fields cause the HTML UI to fail with the following error:
Uncaught Error: Failed to create Scout object for objectType:SvgField. Either file/class 'scout.SvgField' does not exist, or no factory is registered to create an instance for the given objectType at http://localhost:8082/res/application-all-22dd27cb.min.js:9
Error: Failed to create Scout object for objectType:SvgField. Either file/class 'scout.SvgField' does not exist, or no factory is registered to create an instance for the given objectType

Is the SVG field not functional yet or did I make a mistake?
Re: [neon] SVG Field [message #1735409 is a reply to message #1735377] Sat, 18 June 2016 11:17 Go to previous messageGo to next message
Eclipse UserFriend
yes, they do Smile

it seems that you got the proper dependencies in your poms.

however, you will also need to make sure to also reference the SVG related javascript and css code via your index.html file.

In your index.html file you probably have include statements similar to the one of the Widgets demo app:

    
<scout:stylesheet src="res/libs-all-macro.css" />
<scout:stylesheet src="res/widgets-all-macro.css" />
<scout:script src="res/libs-all-macro.js" />
<scout:script src="res/widgets-all-macro.js" />


make sure that in your file xyz-all-macro.js you have the necessary include for the svg field

__include("scout-module.js");
__include("svg-module.js");


and in your file xyz-all-macro.css

//@include("scout-module.css")
//@include("svg-module.css")


to check a working application with SVG check out the Scout widgets application. For this, try to install the Neon Scout demo applications (in your IDE press F1 and then select the "Eclipse Scout User Guide". then go to "Getting Started" and "Import the Scout Demo Applications")

please let us know if this works for you
matthias
Re: [neon] SVG Field [message #1735455 is a reply to message #1735409] Sun, 19 June 2016 20:27 Go to previous messageGo to next message
Eclipse UserFriend
I can't believe I overlooked this. Thank you Smile
Re: [neon] SVG Field [message #1735466 is a reply to message #1735455] Mon, 20 June 2016 02:47 Go to previous message
Eclipse UserFriend
You're welcome. This nicely demonstrates how easily you forget about the HTML5/CSS/Javascript part when you are using Scout Wink
Previous Topic:[neon] problem with table formdata
Next Topic:MDC and null values: problem with Log4j 1.x
Goto Forum:
  


Current Time: Mon Sep 22 06:06:42 EDT 2025

Powered by FUDForum. Page generated in 0.03898 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top