Git Product home page Git Product logo

grid-renderers-collection-addon's People

Contributors

alvarezguille avatar caalador avatar dependabot[bot] avatar juhopiirainen avatar onlineandy avatar tatulund avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grid-renderers-collection-addon's Issues

client-side ClassCastException

Hi,
I tried the extension, with a simple CheckBoxRenderer on a boolean property, but I get a client-side error which breaks the grid

SEVERE: Error sending state change eventscom.google.gwt.event.shared.UmbrellaException: Exception caught: undefined
	at Unknown.ep(com.softbridge.viewer.SoftbridgeWidgetSet-0.js)
        .....
	at Unknown.d(com.softbridge.viewer.SoftbridgeWidgetSet-0.js)
Caused by: java.lang.ClassCastException

My config is vaadin-7.6.8 with theses addons :

        <inherits name="com.vaadin.DefaultWidgetSet" />
        <inherits name="com.softbridge.svg.WidgetSet" />
        <inherits name="org.vaadin.gwtgraphics.GWTGraphics" />
        <inherits name="org.vaadin.sliderpanel.WidgetSet" />
        <inherits name="org.vaadin.peter.contextmenu.ContextmenuWidgetset" />
        <inherits name="org.vaadin.teemusa.gridextensions.GridExtensionPackWidgetSet" />
        <inherits name="com.vaadin.addon.charts.Widgetset" />
        <inherits name="com.vaadin.addon.contextmenu.WidgetSet" />
        <inherits name="com.vaadin.addon.timeline.gwt.TimelineWidgetSet" />
        <inherits name="org.vaadin.peter.imagestrip.ImageStripApplicationWidgetset" />
        <inherits name="org.tltv.gantt.WidgetSet" />
        <inherits name="org.vaadin.grid.cellrenderers.RenderersCollectionWidgetSet" />

I don't have actually the time to dig but I will come later on this subject..

Franck

Client site caching for EnabledProvider?

Regarding #46:

I think it the EnabledProvider is called even when scrolling through the grid and no data is changed. This produces unnessacary networkrequests. Normally no problem for uns, but unter certain conditions its a little bit slow.

Is it prossible to implement a client side caching, so that the state is only synced with the server when data (for the row) has changed?

GWTGraphics not found issue

Hello,

I have a strange issue when using the 'grid-renderers-collection-addon' in a Vaadin project, that used gradle for build management. I created the initial project with the Vaadin Gradle Plugin. I inserted my code and all dependecies and everything works as expected so far, but then I added the 'grid-renderers-collection-addon', because the DeleteButtonRenderer class is deprecated in the GridFastNavigation addon.

And now I can not execute 'VaadinCompile' anymore and get this error:
Unable to find 'org/vaadin/gwtgraphics/GWTGraphics.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?

I tried it within Eclipse and on the console, but I always receive the same issue.
I'm not sure what is the reason, but when I remove the addon from the gradle build file everything is fine.
So I guess that it is myabe a problem with the 'grid-renderer-collection-addon'!?

Here is the used gradle build file:

``
plugins {
id 'com.devsoap.plugin.vaadin' version '2.0.0.beta1'
id 'eclipse-wtp'
}

apply plugin: 'java-library'
apply plugin: 'com.devsoap.plugin.vaadin'
apply plugin: 'war'

sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories{
jcenter()
}

dependencies {
compile group: 'org.glassfish.jersey.core', name: 'jersey-client', version:'2.27'
compile group: 'org.glassfish.jersey.inject', name: 'jersey-hk2', version:'2.27'
compile group: 'commons-fileupload', name: 'commons-fileupload', version:'1.3.3'
compile group: 'com.github.scribejava', name: 'scribejava-apis', version:'3.0.0'
compile group: 'org.json', name: 'json', version:'20180813'
compile group: 'org.vaadin.patrik', name: 'GridFastNavigation', version:'2.4.3'
compile group: 'com.vaadin', name: 'grid-renderers-collection-addon', version:'2.3.3'
compile group: 'org.vaadin.olli', name: 'v8-client-storage', version:'0.1'
compile group: 'javax.servlet', name: 'javax.servlet-api', version:'3.0.1'
}

vaadin {
version '8.4.4'
push true
}

vaadinRun {
server 'jetty'
serverPort 8080
}
``
Any ideas, what could be the reason?

Feature Request: HtmlButtonRenderer should support adding styles

Currently all types of Buttons in a grid look kinda out of place (native button element) - it would be awesome to allow simple styling by passing styles to it! (a simple addClassName or so, it doesn't need to implement all the magic that normal Vaadin components do)

Thanks!

Issue with CheckboxRenderer when used with generated columns on a grid

Hi,

I am facing issues with CheckboxRenderer in a vaadin 7.7.1 version when used with generated columns on a grid. Source code is as below:

BeanItemContainer bic = new BeanItemContainer<>(CustomClass.class);
GeneratedPropertyContainer container = new GeneratedPropertyContainer(
bic);
setContainerDataSource(container);

container.addGeneratedProperty("isAccepted", new PropertyValueGenerator() {
@OverRide
public Boolean getValue(Item item, Object itemId, Object propertyId) {
SpinSignal signal = (SpinSignal) itemId;

			return signal.getSignalDescription().getUsed();
		}

		@Override
		public Class<Boolean> getType() {
			return Boolean.class;
		}
	});    

Column isAcceptedColumn = getColumn("isAccepted");
isAcceptedColumn.setHeaderCaption("Is Accepted");
isAcceptedColumn.setRenderer(new CheckboxRenderer());

But this column is not getting rendered at all in UI and I dont see any errors also. Can you please check and help? I used 1.2.0 version of the add-on.

Best Regards,
Ramesh

CellStyleGenerator is not invoked for editor cells

I have a CheckboxRenderer for a Boolean property in a Grid. I want it to be centered so I added a CellStyleGenerator to add a custom style.

The style is added to "v-grid-cell" elements but not to "v-grid-editor=cells" cells.

The label next the check box.

I need someway to remove the description next to the checkbox. Currently when you do batch editing and the field is logical, it is displayed as a checkbox with no label. I would like to duplicate that when the checkbox is just displayed. In my opinion, having the field label repeat the column label make things more cluttered then they need to be.

Rowkeys are getting Updated on LazyLoading

Hi, We have overridden onChange(String rowKey, String columnId, String newValue) method of TextFieldRenderer class. But for each scroll up/down rowKeys are getting changed. Lets say I have scroll down, lazy loading happened and I am scrolling up and changing some value of starting row, this time rowKey has some different value , it supposed to be one again. Do we have any way to retain the row indexes after scroll up/down?

Error after adding add on into maven

After I add add on into maven and try to compile widgetset (or start app) I got this error:

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building jpgz 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- vaadin-maven-plugin:8.4.1:update-widgetset (default-cli) @ jpgz ---
[WARNING] GWT plugin is configured to detect modules, but none were found.
[INFO] No widgetsets found - generating AppWidgetset if necessary.
[INFO] Updating widgetset AppWidgetset
[INFO] Adding resource directory to command classpath: /home/djerman/git/jpgz/src/main/resources
[INFO] Adding resource directory to command classpath: /home/djerman/git/jpgz/target/generated-resources/gwt
[INFO] Using com.vaadin:vaadin-client version 8.4.1
[INFO] Using com.vaadin:vaadin-client-compiler version 8.4.1
[INFO] Widgetsets found from classpath:
[INFO] org.vaadin.teemu.ratingstars.gwt.RatingStarsWidgetset in jar:file:/home/djerman/.m2/repository/org/vaadin/addons/ratingstars/2.1/ratingstars-2.1.jar!/
[INFO] org.vaadin.sparklines.SparklinesWidgetset in jar:file:/home/djerman/.m2/repository/org/vaadin/addons/sparklines/7.0.2/sparklines-7.0.2.jar!/
[INFO] org.vaadin.grid.cellrenderers.RenderersCollectionWidgetSet in jar:file:/home/djerman/.m2/repository/com/vaadin/grid-renderers-collection-addon/2.2.10/grid-renderers-collection-addon-2.2.10.jar!/
[INFO] com.vaadin.DefaultWidgetSet in jar:file:/home/djerman/.m2/repository/com/vaadin/vaadin-client/8.4.1/vaadin-client-8.4.1.jar!/
[INFO] Addon styles found from classpath:
[INFO]
[INFO] Search took 21ms
[INFO]
[INFO] --- vaadin-maven-plugin:8.4.1:compile (default-cli) @ jpgz ---
[INFO] auto discovered modules [AppWidgetset]
[INFO] Using com.vaadin:vaadin-client version 8.4.1
[INFO] Using com.vaadin:vaadin-client-compiler version 8.4.1
[INFO] Compiling module AppWidgetset
[INFO] [ERROR] An internal compiler exception occurred
[INFO] com.google.gwt.dev.jjs.InternalCompilerException: Error constructing Java AST
[INFO] at com.google.gwt.dev.jjs.impl.GwtAstBuilder.translateException(GwtAstBuilder.java:3997)
[INFO] at com.google.gwt.dev.jjs.impl.GwtAstBuilder.getInternalCompilerException(GwtAstBuilder.java:4404)
[INFO] at com.google.gwt.dev.jjs.impl.GwtAstBuilder.createMembers(GwtAstBuilder.java:4096)
[INFO] at com.google.gwt.dev.jjs.impl.GwtAstBuilder.processImpl(GwtAstBuilder.java:3929)
[INFO] at com.google.gwt.dev.jjs.impl.GwtAstBuilder.process(GwtAstBuilder.java:3971)
[INFO] at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater$UnitProcessorImpl.process(CompilationStateBuilder.java:129)
[INFO] at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process(JdtCompiler.java:336)
[INFO] at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470)
[INFO] at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:1040)
[INFO] at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:325)
[INFO] at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:548)
[INFO] at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:479)
[INFO] at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:465)
[INFO] at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:423)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:222)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:202)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:143)
[INFO] at com.google.gwt.dev.Compiler.compile(Compiler.java:204)
[INFO] at com.google.gwt.dev.Compiler.compile(Compiler.java:155)
[INFO] at com.google.gwt.dev.Compiler.compile(Compiler.java:144)
[INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:118)
[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:125)
[INFO] Caused by: java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.lookup.MethodBinding.isDefaultMethod()Z
[INFO] at com.google.gwt.dev.jjs.impl.GwtAstBuilder.createMethod(GwtAstBuilder.java:4191)
[INFO] at com.google.gwt.dev.jjs.impl.GwtAstBuilder.createMembers(GwtAstBuilder.java:4086)
[INFO] ... 21 more
[INFO] [ERROR] at DefaultRule_eu.java(22): public class DefaultRule_eu extends DefaultRule
[INFO] org.eclipse.jdt.internal.compiler.ast.TypeDeclaration
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.081 s
[INFO] Finished at: 2018-05-12T11:19:36+02:00
[INFO] Final Memory: 24M/347M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.vaadin:vaadin-maven-plugin:8.4.1:compile (default-cli) on project jpgz: Command [[
[ERROR] /bin/sh -c '/usr/lib/jvm/java-8-oracle/jre/bin/java' '-Xmx1G' '-Dgwt.persistentunitcache=false' 'com.google.gwt.dev.Compiler' '-logLevel' 'INFO' '-style' 'OBF' '-war' '/home/djerman/git/jpgz/target/classes/VAADIN/widgetsets' '-localWorkers' '4' '-failOnError' '-XfragmentCount' '-1' '-sourceLevel' 'auto' '-gen' '/home/djerman/git/jpgz/target/.generated' 'AppWidgetset'
[ERROR] ]] failed with status 1
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Same with vaadin 8.3.3

BooleanSwitchRenderer still usable with grid.setEnabled(false)

Version 2.3.2

If I disable the grid (e.g. in org.vaadin.grid.cellrenderers.demo.DemoUI.DateTextDemo) then the checkboxes (and the other widgets like textfield and datefield) looks disabled. But they are usable without firing a changeevent.

So, it is kind of mixed state. I would like to have disabled checkboxes if the whole grid is disabled with setEnabled(false).

Grid not displaying any items when using SimpleSelectRenderer

I am using SimpleSelectRenderer for showing a drop down in the Grid.
SimpleSelectRenderer<FieldNameProperties, String> fieldTypeRenderer = new SimpleSelectRenderer<>(FieldNameProperties::setFieldType, items);
namePropertiesGrid.addColumn(FieldNameProperties::getFieldType, fieldTypeRenderer).setCaption("Field Type");

The error trace is as follows

com.vaadin.client.ApplicationConfiguration
SEVERE: The given column index (0) does not exist
java.lang.IllegalArgumentException: The given column index (0) does not exist
at Unknown.Dg(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.Fg(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.nHd(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.vod(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.Hod(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.lrd(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.mrd(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.rrd(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.ti(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.ki(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.Vh(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.Uh(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.eval(com.vaadin.DefaultWidgetSet-0.js)

Checkbox keeps state even if save editor is cancelled

I have a grid which is set to editable.
Using the CheckboxRenderer, I am displaying checkboxes for boolean values.
It is possible to click on a checkbox even if the row is not in edit-mode (i.e. not double-clicked). The checkbox state changes and the edit-mode for the row is automatically activated (okay so far).

However, if I now cancel the edit-mode of the row, the checkbox state is still displayed as changed. I would expect that if the edit mode is cancelled, the checkbox should be reset to its previous state.

If I double-click on a row to activate the edit-mode explicitly, everything is working as expected. The issue only happens if the edit mode is activated implicitly by changing a checkbox without activating the edit-mode beforehand.

BooleanSwitchRenderer setReadonly

I use BooleanSwitchRenderer lie this

records.addColumn(ApplicationRecordDto::getM1)
                .setRenderer(new BooleanSwitchRenderer((dto, value) -> ((ApplicationRecordDto) dto).setM1((Boolean) value)))
                .setCaption("1");

And later on I want to make it read only
records.getColumns().subList(1, records.getColumns().size()).forEach(value -> ((BooleanSwitchRenderer)value.getRenderer()).setReadOnly(flag));

but it doesn't seam to work!

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.