932
I Use This!
Activity Not Available

News

Analyzed 4 months ago. based on code collected almost 5 years ago.
Posted about 10 years ago
Unexpected EffectsMany of you may know this already, but I was reminded the other day how this can catch even some of the most brilliant JSF developers. When you comment out a component in your xhtml page that has EL bindings, you may not be REALLY ... [More] disabling it.Expression Language (EL) is parsed and evaluated as the page is being rendered. As a result, any exposed EL syntax will be processed including functions which could have deleterious effects. For example, take a look at the following code, and guess what it will do. So what happens?Scary things happen.... It executesParser exception. The parser will try to find a property called doSomethingIt will execute, please note that there is no <h:form/>. It is not required since we are evaluating the EL.Parser exception. The parser will try to find a property called doSomethingElseSensei what do I do?You have a couple of options. The first option is the easiest, and it is likely what you want anyway with your JSF pages. You can disable the comments. No need to transmit your development comments to the end users anyway. The second option is to add a - between the # and the { like this #-{indexBean.doSomethingElse()}. The first option is handled by adding a configuration parameter to the web.xmlfile as shown below. Here is a more complete example: The result of the code is as follows: The complete code example was developed using NetBeans 8.0 and GlassFish 4.0 on JDK 8. The code can be found here: auto-execute-el [Less]
Posted about 10 years ago
 
Posted about 10 years ago
With APIs from NetBeans IDE 8.0, there's the new annotations @PaletteItemRegistration and @PaletteItemRegistrations for registering items in a palette: As you can see, you use the annotations in the package-info.java class, which you can ... [More] create by using the template Java | Java Package Info in the New File dialog. References: http://bits.netbeans.org/dev/javadoc/org-netbeans-spi-palette/org/netbeans/spi/palette/PaletteItemRegistrations.html http://bits.netbeans.org/dev/javadoc/org-netbeans-spi-palette/org/netbeans/spi/palette/PaletteItemRegistration.html Therefore, will need to update this tutorial with the new annotations: https://platform.netbeans.org/tutorials/nbm-palette-api1.html [Less]
Posted about 10 years ago
Java 8 with method handles enables direct execution of synchronous (legacy) code asynchronously within a managed thread pool: Prepare your questions—I will attempt to answer them…live. See you soon! See also other screencasts at: ... [More] http://tv.adam-bien.com or subscribe to http://www.youtube.com/user/bienadam. See you at Java EE Workshops at MUC Airport! Real World Java EE Workshops [Airport Munich]> [Less]
Posted about 10 years ago
Here's my advice for DukeScript fanboys, of which there are some, but mainly two: Jaroslav Tulach and Toni Epple. Stop talking about "DukeScript". Whenever you say "DukeScript", any sane person assumes you're talking about a language. ... [More] You're not. And that's what's confusing. You're talking about a framework. The DukeScript Framework is equivalent to HTML5 minus JavaScript plus Java. That's it. And that's a powerful message. Stop playing games. Instead, create real applications. Create CRUD applications, for example. Here's my humble first beginning, showing data from the Sample database in GlassFish displayed in HTML via Java in the JavaFX WebView thanks to the DukeScript Framework: But, please, make several complete scenarios that run out of the box, including, and especially, CRUD apps. This is where Vaadin and PrimeFaces have succeeded so far, i.e., they have complete widget samples, component demos, etc, etc, etc. Focus on business scenarios, not funny games. Seriously, sit down and think about all that stuff that you're exposing. Vaadin somehow gets away with it, because they're based on a known entity, i.e., GWT, and the DukeScript Framework should be able to do so, too. There's just so much going on in the background, it's scary. Somehow, you need to at least explain absolutely everything. Either shit or get off the pot, i.e., describe fully what's going on in the implementation or accept that it's going to be adopted by a small subset of developers. Since all the ideas in the DukeScript Framework are so completely brand new and so much magic is done via annotations, you either explain it all, down to the smallest details, or run the risk that no one will adopt it because, since there are several more understandable competitors, you're running the risk that something simpler, e.g., Vaadin, is going to become the standard, whether de-facto or not. My two cents. And I have never been (very) wrong. [Less]
Posted about 10 years ago
Bruno Freitas lives and works in Porto, Portugal, at BMAC, a private healthcare company. He is a software engineer building internal applications, while handling integration requirements with 3rd party software. As needed, he also manages Linux ... [More] servers, databases, and network systems. Preview Text:  Bruno Freitas describes how NetBeans IDE... [Less]
Posted about 10 years ago
WamSys AB, located in Gothenburg, Sweden, focuses on developing products with Oracle DB and the NetBeans Platform. In particular, the NetBeans Platform is used as the basis of their Mozart Platform, which provides generic modules for custom Swing ... [More] components, including a table component with support for grouping, "frozen" rows and columns, and built-in aggregates. Furthermore, the Mozart Platform facilitates the building of products on top of it. For example, it has its own widget framework, providing a customizable start page comparable to a web portal, while the Options window manages look & feel properties, such as support for switching to the JTattoo look and feel. Here you can see a YouTube clip of the Mozart table component: https://www.youtube.com/watch?v=3Y5A3dHQ9E0 And here is a YouTube clip of the Mozart dashboard: https://www.youtube.com/watch?v=o6nn4ns52t8 One of the products based on the Mozart Platform is Mozart Economy, a fully customizable billing system able to calculate fees based on complex conditions and provide data for invoicing. The system is used by Swedish schools for calculation of fees paid in preschool, where many different factors affect the price, such as the child's age, family income, and number of hours at school. The module corrects invoices over any period back in time with respect to changed conditions over time. Another part of the solution is Mozart Statistics, which retrieves data from a database and creates statistical reports in Microsoft Excel, using the Apache POI library.  This enables customers to get powerful statistical reports with pivot tables and various type of charts. [Less]
Posted about 10 years ago
Project News Plugin: Scala for NetBeans Caoyuan Deng has upgraded the Scala plugin for NetBeans 8! Get started with it today. Python in NetBeans IDE 8.0 Build Python projects in NetBeans 8 using the NetBeans-Python plugin. Preview Text:  ... [More] In this issue: Working with Scala and Python in NetBeans 8.0; Using PrimeFaces' layout component; a... [Less]
Posted about 10 years ago
Jaroslav Tulach's Java/JavaScript framework DukeScript explained for dummies (e.g., me): Or watch it here: https://www.youtube.com/watch?v=v3ITo889ypI Further info: http://wiki.apidesign.org/wiki/DukeScript http://www.slideshare.net/steveonjava/dukescript http://nighthacking.com/dukescript-with-toni-epple/
Posted about 10 years ago
MineSweeper is re-implementation of classical computer game available on each Microsoft Windows since the initial introduction in version 3.1. Surprisingly my kids (who otherwise spend hours with tablets) knew nothing about the game until... I ... [More] needed a demonstration for DukeScript technology that is using Java to code the application logic and HTML to render its UI. I decided to write a MineSweeper game as a basic demo. I've managed to execute the demo in a browser (via TeaVM), but today I achieved another milestone: the MineSweeper module is available for every user of NetBeans 8.0! Get the module via Tools/Plugins or visit its plugin page and enjoy your productivity boost! In case you are interested in trying the code yourself, here is a way to get the sources: $ hg clone http://source.apidesign.org/html~demo/ $ cd html~demo/ $ hg up -C 3d99b96ffbd4 $ mvn install $ cd minesweeper/ $ mvn -Pnbrwsr install # generates target/minesweeper-1.0-SNAPSHOT.nbm and the system generates an NBM (NetBeans module file) which can be installed into your NetBeans! Give it a try and let's make NetBeans better by using more DukeScript APIs! Don't forget that you can package the same application to run on Android or in a browser. Become a developer that can: Write once, run anywhere! --JaroslavTulach 12:35, 15 April 2014 (UTC) [Less]