Git Product home page Git Product logo

cargotracker-regapp's Introduction

Hantsy Bai(@hantsy)

hantsy

I'm Hantsy - a freelancer from China. Previously I worked with diverse teams around the world and helped numerous customers with professional service, not limited to coaching the team members, cooking startup POCs and delivering large-scale distributed applications.

Getting in touch

cargotracker-regapp's People

Contributors

dependabot[bot] avatar hantsy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cargotracker-regapp's Issues

HandlingReportService is null

When submiting report data, https://github.com/hantsy/cargotracker-regapp/blob/master/src/main/java/org/eclipse/cargotrakcer/regapp/ui/HandlingReportController.java#L70

If I used @FXML private void onSubmit(), it will throw exception info like HandlingReportService is null, it seems the HandlingReportService injection is not worked as expected.

When I used a public method public void onSubmit(), the JavaFX components will not be recognized, it will throw exception info this.completionTimeField is null, thus I can not read the values from JavaFx components.

Build native executable

Currently when building the application into a jar file, it requires a JavaFX runtime to start up it.

We could use module-info.java to assemble the java application and start up the Application without dependencies(JRE, JavaFX runtime)

Initialize a form

I added a @PostConstruct to initialize data into a form, but I found it did not work as expected.

https://github.com/hantsy/cargotracker-regapp/blob/master/src/main/java/org/eclipse/cargotrakcer/regapp/ui/HandlingReportController.java#L60

It is very strange the init method is called when hitting the submit button.

Caused by: java.lang.NullPointerException: Cannot invoke "javafx.scene.control.ComboBox.setItems(javafx.collections.ObservableList)" because "this.eventTypeField" is null
    at org.eclipse.cargotrakcer.regapp.ui.HandlingReportController.init (HandlingReportController.java:61)

In the back of CDI and Java FX integration, I used javafx-weaver to load the controller class and FXML files.

https://github.com/hantsy/cargotracker-regapp/blob/master/src/main/java/org/eclipse/cargotrakcer/regapp/ui/PrimaryStageInitializer.java#L25

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.