Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Script compile process - making dynamic

Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I played around with earlier versions of JavaFX and I found it useful for rapid development (compared to Swing/Java 2D programming anyway). But, it was standard mechanism of write 'code', compile and then deploy.

Is it possible to have the script interpreted at runtime? For example, what if I wanted to use JavaFX script to render user-interfaces dynamically. In other words, what if I wanted to generate the JavaFX script server side and then have it rendered dynamically at runtime.

I'll provide a tangible example for clarity.

Say I had an applet that had no U.I. on it's own but it used some of the JavaFX libraries typically used during compile time to create the byte code. The applet could dynamically download the JavaFX script from a JSP say and then compile it on the fly and then add it to the content pane of the applet. If so, this is truly a replacement for AJAX since I can not only dynamically generate the server-side content (i.e. data source) that is used to populate a user-interface but I can also dynamically generate the UI template to begin with.

Anyone care to comment?


    Bookmark Topic Watch Topic
  • New Topic