Coder Social home page Coder Social logo

alejandro-du / enterprise-app Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 6.0 143 KB

A powerful Vaadin add-on to create web applications that integrate Vaadin, Hibernate, JasperReports and Quartz technologies.

License: GNU Affero General Public License v3.0

Java 100.00%

enterprise-app's People

Contributors

alejandro-du avatar thisisbinh avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

enterprise-app's Issues

Delete does not work for an embedded crud field

The example project has the Person DTO with an embedded oneToMany contactInfo property. It is possible to add new contactInfos, but deletion is not possible.

EDIT: Discovered that deletion works, when the complete row is selected by cliking the empty space between the cells. You may remove this issue.

Example for DownloadField

First of all, thanks for creating this great application framework!

I have been trying to implement a DTO with an file "attachment" property. The purpose is to utilize the DownloadField to provide the uploading and downloading of files.

My first trial includes only a single file per DTO instance:

@Getter
@Setter
@Downloadable(propertyFileName="attachmentFileName"
private File attachment;

@Getter
@Setter
private String attachmentFileName;

With this, the upload works perfectly, but the dowload throws the following exception:

java.lang.RuntimeException: java.lang.ClassCastException: java.io.File cannot be cast to [B

Could you please provide an example how to define this in the correct way?

Furthermore, I continued to test with the possibility to upload multiple files. Instead of defining just a single file, I changed to property to an embedded CRUD property (OneToMany relationship to an own Attachment DTO).

@Getter
@Setter
@OneToMany(cascade=ALL, orphanRemoval=true)
@CrudField(embedded=true, forceRequired=false)
private Set<Attachment>

However, this shows only a CRUD table with all properties in the Attachment DTO, except for the file "attachment" itself.

An example for also getting this to work would be highly appreciated. Thanks, in advance!

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.