Mojarra is the name of the JavaServer Faces reference implementation. In September 2015 the source moved from a Subversion based control system to a Git based server. This blog explains, how to download and compile the bleeding JSF version. Continue reading “NetBeans and Java EE: Download and compile JSF”
Tag: JSF
JavaLand 2015 & Java aktuell
Last week I visited JavaLand 2015. This great software conference [1] with lot of community activities resides in my home town Brühl [2].
Beside attending lots of tracks I had the opportunity to meet a couple of people face-to-face like Ed Burns (JSF Spec Lead), Geertjan Wielenga (NetBeans product manager), Arun Gupta (Java EE evangelist) and more, especial lot of JUG members from all over Germany. Read an article about my impressions [3].
Most slides are available for download now [4].
And I had the chance, to attend the celebration of 5 years Java aktuell, the Java magazine by the iJUG [5]. Great!
[1] javaland.eu
[2] bruehl.de
[3] heise.de/developer/artikel/developer_artikel_2591380.html
[4] javaland.eu/programm/vortragsunterlagen-zum-download.html
[5] doag.org/index.php?id=1230
CDI issue using GlassFish 4
Within a web application, you often need a state to create a session lifecycle. You may create a CDI named been with session scope, to keep track of some user data. Suppose, you have a JSF application. Assigned to your pages you might use named beans with request scope. If you need some session-wide info, you can use CDI:
@inject SessionBean mySessionBean
I moved an application which ran without known problems on GlassFish 3 to GlassFish 4. Everything worked fine, as long as I tested the app for myself. But using this app concurrent with other users, sometimes the app showed me a session timeout, could not restore a conversation or, in one case, showed me data of a concurrent user. It seemed, a SessionBean object of a different user had been injected to the request bean assigned to my request. Continue reading “CDI issue using GlassFish 4”
Tutorial web development (with JSF) XII – Security Part I
Sometimes it is crucial to protect an application or data against unauthorized access. Although there is no need to secure my tiny calculator, I’m going to demonstrate the principals of container based security by using this small app. For a description of the project, please refer to Tutorial web development (with JSF) III: Basic arithmetics.
Container provided security is not specific to JSF. It’s part of the HTTP handling and might be used by a simple servlet too. But later on, I’m going to show you, how to integrate this into a JSF application by using programmatic access. But, first of all, some background. Continue reading “Tutorial web development (with JSF) XII – Security Part I”
JSF 2.2 Proposed Final Draft Posted
The JSF 2.2 Proposal Final Draft was posted by the expert group spec leader Ed Burns today. Read his blog about this issue [1]. The draft is available at the JCP JSR 344 page [2].
JSF 2.2 is included in GlassFish4. I’m still waiting for this GF4 being bundled with NetBeans daily builds. Continue reading “JSF 2.2 Proposed Final Draft Posted”
Introduction into JSF
At Java User Group Cologne, I hold a JSF Session (introduction into JSF 2.0 and a short forecast to JSF 2.2) . For the live parts, I used NetBeans to demonstrate code and applications. You’ll find some of this code in my current JSF articles [1].
For the talk, I prepared some slides (German) at abstract level. You’ll get them here [2].
Feel free to use them for private purpose. For commercial purpose, please contact me.
[1] http://blog.mueller-bruehl.de/tutorial-web-development/
[2] JSF_Einfuehrung
Tutorial web development (with JSF) XI: Brave New World
JSF 2.2 is on it’s way. In this lesson I want to introduce one of the new features, HTML5 friendly markup (using Pass Through Elements). Continue reading “Tutorial web development (with JSF) XI: Brave New World”
Tutorial web development (with JSF) VIII: Backstage
In a traditional application, usually the application itself is responsible for the presentation. Even if you should use a special display sever such as X, it is still controlled by the application.
Unlike in a web application. Here the data is passed to a browser, which takes care of the presentation. To do such, the server packs the content to display into in a (X) HTML document. In addition, the server may provide some layout information in the form of cascading style sheets (CSS). Then, everything else is up to the browser. And just as there are different browsers, the representation can be different. The continuous development of standards ensures here fortunately a gradual convergence. But, if the user keeps a local CSS here, then the presentation again might be different. Continue reading “Tutorial web development (with JSF) VIII: Backstage”
NetBeans: Improved go to declaration
Suppose you are editing a JSF page. There might be a text field with a value, derived fom an EL expression.
<h:inputText id="title" styleClass="inputFull" value="#{editBook.book.title}"/>
Admin functions added
I still found a bit spare time to develop some admin functions for my book list it-rezension.de. It’s not really complete, but today I launched a first version. You may take a look, which functions are enabled by JSF. And hopefully I’ll soon get time to write about the solution.