Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Last active September 14, 2015 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdamBien/fc5ef11d8863935187fd to your computer and use it in GitHub Desktop.
Save AdamBien/fc5ef11d8863935187fd to your computer and use it in GitHub Desktop.
18thAirhacksQ&A.md
@andrejb-dev
Copy link

Hi Adam, I am using afterburner in multipage application and I am curious what is the best approach to switch pages. Not sure if it was already asked - I discovered these gists just recently.

My idea was to have one root page with menu (this way menu is reused for all pages) and with content pane. The content pane instance will be passed at app start to some PageController.setContentRef(Parent root);
For example in this way I have dashboard as first content pane children with some icons/buttons. After clicking on icon, the PageController.showDetailA(); method is called from dashboardPresenter. The method clears children from content pane and add one specific children.
This children can have one Back button (that calls PageController.showDashboard(); and some controls to go even deeper in views chain (PageController.showDeeperDetailOfDetailA();) etc.

The PageController can have instancies of all pages, or recreate them every time (for now not sure what will be better).

Do you think there is better way to do this? For example using multiple Stage instances somehow? If so, could you please create some simple demo.

@haisi
Copy link

haisi commented Sep 10, 2015

Whats the best way to handle errors/exceptions in JavaFX?
Lets say I call my service from the presenter and an error occurs. What is the best way to show an exception dialog to the user? Should I just wrap all my service calls in try catch blocks? What if I not not only want to show a dialog but also make further UI changes (e.g. mark textfields red etc.)?

Would you recommend using the Thread.setDefaultUncaughtExceptionHandler like in this stackoverflow answer?

@loocifer
Copy link

Hello Adam,

what do you think about the "reactive programming" thing ? There are a lot of people who think that JavaEE does not fit to RP. How do you see the future of JavaEE ?

Thanks,
Markus

@dsurendran
Copy link

  1. What is the best way to integrate microservices?
  2. Whats your thought on using Service Bus for integration?

Copy link

ghost commented Sep 14, 2015

Hi Adam,

in several talks you mention to host your blog on your own hardware.

  1. Could you please provide some more information about the concrete setup?
  2. How is this hardware connected to the internet? Which tarrif, which provider, which bandwidth? Can you recommend anything?

Thanks,
Peter

@atrifyllis
Copy link

Hi Adam!
When using an application server is there a way to "route" logs from the server components to my own log files? For example using wildfly when I want to log hibernate query parameters or cxf messages I need to configure a logger inside the application servero logging configuration and check the server's logs. How can I make the server log in my logs (preferably in a per-application manner). Thank you in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment