Giter Club home page Giter Club logo

gwt-material-demo's Issues

Not able to run the project: Internal compiler Error

I have cloned the project and tried to run it in Super DevMode using mvn package gwt:run, but without any luck. Here is the stacktrace:

[INFO]    [ERROR] An internal compiler exception occurred
[INFO] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.
[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:121)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:296)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
[INFO]  at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:67)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
[INFO]  at com.google.gwt.dev.jjs.ast.JMethodCall.visitChildren(JMethodCall.java:253)
[INFO]  at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:246)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
[INFO]  at com.google.gwt.dev.jjs.ast.JExpressionStatement.traverse(JExpressionStatement.java:42)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:95)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:351)
[INFO]  at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:149)
[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:145)
[INFO]  at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO]  at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:600)
[INFO]  at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:569)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO]  at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:1505)
[INFO]  at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:870)
[INFO]  at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1305)
[INFO]  at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1038)
[INFO]  at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.precompile(JavaToJavaScriptCompiler.java:954)
[INFO]  at com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.precompile(MonolithicJavaToJavaScriptCompiler.java:303)
[INFO]  at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:38)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:286)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
[INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:206)
[INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:158)
[INFO]  at com.google.gwt.dev.Compiler$1.run(Compiler.java:120)
[INFO]  at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
[INFO]  at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
[INFO]  at com.google.gwt.dev.Compiler.main(Compiler.java:127)
[INFO] Caused by: java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils
[INFO]  at org.apache.velocity.runtime.resource.ResourceManagerImpl.initialize(ResourceManagerImpl.java:161)
[INFO]  at org.apache.velocity.runtime.RuntimeInstance.initializeResourceManager(RuntimeInstance.java:730)
[INFO]  at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:263)
[INFO]  at org.apache.velocity.runtime.RuntimeInstance.requireInitialization(RuntimeInstance.java:302)
[INFO]  at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1531)
[INFO]  at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:343)
[INFO]  at com.gwtplatform.mvp.rebind.velocity.AbstractVelocityGenerator.mergeTemplate(AbstractVelocityGenerator.java:55)
[INFO]  at com.gwtplatform.mvp.rebind.velocity.ginjectors.GinjectorProviderGenerator.generate(GinjectorProviderGenerator.java:54)
[INFO]  at com.gwtplatform.mvp.rebind.velocity.GenerateFormFactorGinjectors.generateGinjectorProvider(GenerateFormFactorGinjectors.java:65)
[INFO]  at com.gwtplatform.mvp.rebind.velocity.GenerateFormFactorGinjectors.generate(GenerateFormFactorGinjectors.java:51)
[INFO]  at com.gwtplatform.mvp.rebind.GinjectorGenerator.writeFormFactors(GinjectorGenerator.java:294)
[INFO]  at com.gwtplatform.mvp.rebind.GinjectorGenerator.generate(GinjectorGenerator.java:102)
[INFO]  at com.gwtplatform.mvp.rebind.ApplicationControllerGenerator.generate(ApplicationControllerGenerator.java:89)
[INFO]  at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
[INFO]  at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:760)
[INFO]  at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:160)
[INFO]  at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
[INFO]  at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
[INFO]  at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)
[INFO]  at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:87)
[INFO]  at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createStaticRebindExpression(UnifyAst.java:485)
[INFO]  at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createRebindExpression(UnifyAst.java:443)
[INFO]  at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:576)
[INFO]  at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:306)
[INFO]  at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:248)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO]  ... 46 more
[INFO] Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils
[INFO]  at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
[INFO]  at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[INFO]  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
[INFO]  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[INFO]  ... 73 more
[INFO]       [ERROR] at gwt_00046material_00046design_00046demo_00046GwtMaterialDesignDemo__EntryMethodHolder.java(3): GWT.create(ApplicationController.class)
[INFO]          com.google.gwt.dev.jjs.ast.JMethodCall
[INFO]       [ERROR] at gwt_00046material_00046design_00046demo_00046GwtMaterialDesignDemo__EntryMethodHolder.java(3): (EntryPoint) GWT.create(ApplicationController.class)
[INFO]          com.google.gwt.dev.jjs.ast.JCastOperation
[INFO]       [ERROR] at gwt_00046material_00046design_00046demo_00046GwtMaterialDesignDemo__EntryMethodHolder.java(3): ((EntryPoint) GWT.create(ApplicationController.class)).onModuleLoad()
[INFO]          com.google.gwt.dev.jjs.ast.JMethodCall
[INFO]       [ERROR] at gwt_00046material_00046design_00046demo_00046GwtMaterialDesignDemo__EntryMethodHolder.java(3): ((EntryPoint) GWT.create(ApplicationController.class)).onModuleLoad()
[INFO]          com.google.gwt.dev.jjs.ast.JExpressionStatement
[INFO]       [ERROR] at gwt_00046material_00046design_00046demo_00046GwtMaterialDesignDemo__EntryMethodHolder.java(3): {
[INFO]   ((EntryPoint) new UserAgentAsserter()).onModuleLoad();
[INFO]   ((EntryPoint) new DocumentModeAsserter()).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(ApplicationController.class)).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(MaterialWithJQueryDebug.class)).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(MaterialDesign.class)).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(MaterialAddins.class)).onModuleLoad();
[INFO] }
[INFO]          com.google.gwt.dev.jjs.ast.JBlock
[INFO]       [ERROR] at gwt_00046material_00046design_00046demo_00046GwtMaterialDesignDemo__EntryMethodHolder.java(3): {
[INFO]   ((EntryPoint) new UserAgentAsserter()).onModuleLoad();
[INFO]   ((EntryPoint) new DocumentModeAsserter()).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(ApplicationController.class)).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(MaterialWithJQueryDebug.class)).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(MaterialDesign.class)).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(MaterialAddins.class)).onModuleLoad();
[INFO] }
[INFO]          com.google.gwt.dev.jjs.ast.JMethodBody
[INFO]       [ERROR] at gwt_00046material_00046design_00046demo_00046GwtMaterialDesignDemo__EntryMethodHolder.java(3): public static final void init();
[INFO]
[INFO]          com.google.gwt.dev.jjs.ast.JMethod

unable to run demo project

I have downloaded the latest code. When I run the demo I get an error asking me to include below 2 lines in GWT XML

set-configuration-property name="CssResource.enableGss" value="true"
set-configuration-property name="CssResource.legacy" value="true"

I resolve the error by adding above 2 lines but i see a BLANK page when I run the demo

Additionally "MaterialDemo.ui.xml" has some merge issue and is messed up

Floating Table/Column Header

Hello,

there seems to be an issue with the floating table header on mobile devices. Just open the demo page on a mobile device of your choice and scroll around on a table. The floating header stays in the same position for a second before floating upwards where it should be, which makes for a real awkward user experience.

I already tried using the stickyHeader attribute but to no avail.

thx and kr

Chris

NEW WIDGET - Signature Pad

  • Basic Demo
  • Pen Color
  • Export Signature as SVG, JPEG
  • Background Color
  • Velocity
  • Responsive Pad
  • Line minimum / maximum widths
  • Throttle
  • Start / End signature events

Bug on right sidebar on Firefox

The sidebar of the right of the screen open as a weird scrolled panel on Firefox:

screenshot from 2015-11-16 11 05 00

The demo already opens with that floating panel on the screen.

Tested on Firefox 42.0 on Ubuntu 14.04.2 x64.

minimum row issue with material table v 1.0-rc3

Hello,
please help me at bellow points.
a) If number of rows in table is less then 5 the data table is throwing out of bound exception when it loads.
Exception: java.lang.IndexOutOfBoundsException: fromIndex: 0, toIndex: 5, size: 2
b) When we load pager table for the very first time it is not showing row expand icon there.
screenshot from 2016-12-03 16-45-54

c) please refer image I have attached. I have popup in this page which is hidden by default but whenever I refresh the page popup is showing and after few seconds it gets invisible.
but till material version 1.0 rc2 it is running good.
screenshot from 2016-12-03 16-50-14

d) Also is it possible to get person object in in row expansion handler.

thanks

Autocomplete example not working (snapshot version)

Just open http://gwtmaterialdesign.github.io/gwt-material-demo/snapshot/#!autocomplete

If you start it in superdev mode, you will see something similar in the console:
at Unknown.IndexOutOfBoundsException_1_g$(IndexOutOfBoundsException.java:25)
at Unknown.checkIndexBoundsForInsertion_0_g$(ComplexPanel.java:152)
at Unknown.adjustIndex_0_g$(ComplexPanel.java:117)
at Unknown.insert_2_g$(ComplexPanel.java:192)
at Unknown.insert_1_g$(ComplexPanel.java:182)
at Unknown.insert_24_g$(MaterialWidget.java:632)
at Unknown.insert_23_g$(MaterialWidget.java:103)
at Unknown.addItem_20_g$(MaterialAutoComplete.java:387)
at Unknown.setValue_30_g$(MaterialAutoComplete.java:655)
at Unknown.setValue_29_g$(MaterialAutoComplete.java:647)
at Unknown.setItemValues_0_g$(MaterialAutoComplete.java:437)
at Unknown.AutoCompleteView_1_g$(AutoCompleteView.java:29)

Update all the demo showcase with recent removal of deprecated apis.

Deprecated APIs that has been removed v2.0:

BaseCheckBox

  • setChecked(boolean checked).
  • replaceInputElement(Element elem)

Reason we can now call setValue(boolean value)

ComplexWidget

Reason: We have the MaterialWidget as replacement

Cell Widgets

  • MaterialButtonCell
  • MaterialCheckBoxCell
  • MaterialImageCell

Reason: We have the MaterialDataTable project to build this components

ViewPortHelper

Reason: We have the ViewPort as replacement of this API

MaterialLoader

  • showLoading(boolean)
  • showProgress(boolean)

Reason: We refactor it to loading(boolean) & progress(boolean) for standard naming convention

MaterialAnimator

Reason: We created new concrete class MaterialAnimation and it's method (Avoid static method).

No API Key error while loading the Material GEO Chat

Hi Team,

Please help,
I am facing issue while loading the GEO Chat, in local eclipse server getting the below warining and when i deploy in server linux i am getting error

Warning/Error message ๐Ÿ‘
Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

My code is as below ๐Ÿ‘
//ApiLoader apiLoader = new ApiLoader("AIzaSyD-9tSrke72PouQMnMX-a7eZSW0jkFMBWY");
ChartLoader chartLoader = new ChartLoader(ChartPackage.GEOCHART){
public void loadApi(Runnable callback) {
AjaxLoaderOptions options = AjaxLoaderOptions.newInstance();
JsArrayString packagesArray = JsArrayString.createArray().cast();
for (int i = 0; i < getPackages().length; i++) {
packagesArray.push(getPackages()[i].getName());
}
options.setPackages(packagesArray);
if (getLanguage() != null) {
options.setLanguage(getLanguage());
}
options.setOtherParms("sensor=true&key=AIzaSyB3KyY4kYnnaIp1voVczGqE1cNxJBi1SVk");
AjaxLoader.loadApi("visualization", "1", callback, options);
}

			};
			//AjaxLoader.init("AIzaSyB3KyY4kYnnaIp1voVczGqE1cNxJBi1SVk");
			chartLoader.loadApi(new Runnable() {

				@Override
				public void run() {
					
					// Create and attach the chart
					geoChart = new GeoChart();
					cardContent.add(geoChart);
					draw(result);
				}
			});

Tanks
Saru

Demo not works correctly on Firefox (51.0.1, Windows)

Error message on the console:
SEVERE: Possible problem with your *.gwt.xml module file.
The compile time user.agent value (safari) does not match the runtime user.agent value (gecko1_8).
Expect more errors.
com.google.gwt.useragent.client.UserAgentAsserter$UserAgentAssertionError: Possible problem with your *.gwt.xml module file.
The compile time user.agent value (safari) does not match the runtime user.agent value (gecko1_8).
Expect more errors.

Add Recent Datatable API changes showcase.

Here are the lists of datatable changes

  • Implement rendering events for two use cases:
    • RENDERED: Called when 'setRowData' calls finish rendering. Guaranteed to only be called once from the data set render, ignoring sort renders and refreshView renders.
    • COMPONENTS_RENDERED: Each time components are rendered, which includes sorting renders and refreshView() renders.
  • Added addCategory(String) for adding categories manually.
  • Expose the row components API.
    • Add updateRow and getRowByModel.
  • Implement autoSort property to Columns.
  • Category Fields (Thead instances)

Rework Demo

Added missing demo

  • Collapsible
    • open(index) close(index)
  • DatePicker
    • clear / getvalue
  • ListValueBox
    • lazy adding
  • Slider
    • start / pause
  • Errors
    • helper

Addins

  • Avatar - dynamic reloading of avatar items.
  • Camera - capture and events

(POC) Implement Basic Selenium Test thru Browserstack

This is a POC to be implemented, if success can be distributed to all projects.

  • Base Test suite (Opening the demo app in browser)
  • Android / IOS Test suite
  • Create Simple Test case on MaterialSearch -> Type DatePicker -> Navigate to showcase datepicker -> Open DatePicker.
  • Integrate with Maven to incorporate with mvn test
  • Integrate Parallel Tests for Multiple Platform / Browser Instances.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.