199 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
Quick NPM tip: don’t forget to uninstall node modules
Tue, Jul 4th 2017 3
Angular 4 bug in combination with latest Typescript
Sat, Jul 1st 2017 6
Angular and base64 encoding and decoding
Fri, Jun 30th 2017 4
The slides of my session at Engage
Tue, May 9th 2017 4
Learn, share and Engage in Antwerp
Tue, May 2nd 2017 5
Bulk import in a Cloudant database
Thu, Apr 27th 2017 5
IBM InterConnect 2017 as a developer
Fri, Apr 7th 2017 6
Top 10
Quick XPages tip: add pace.js to your app
Tue, Mar 29th 2016 11
Preparing for IBM Connect 2017
Thu, Feb 9th 2017 11
My take on JSoup
Tue, Jun 2nd 2015 10
Quick XPages tip: add Fullcalendar plugin to your application
Thu, Aug 27th 2015 10
Nice workaround to JSF 1.x EL limitation
Mon, Mar 14th 2016 10
Speaking at MeetIT in Milan
Fri, Oct 7th 2016 8
My steps in the JSF 2.0 world
Fri, Oct 24th 2014 7
And the winner is…… HR Assistant
Mon, Sep 19th 2016 7
XPages Quick tip: Move Java files for a better Source Control experiences
Fri, Sep 23rd 2016 7
Heads up for Salesforces Trailhead
Wed, Sep 28th 2016 7


My steps in the JSF 2.0 world
Twitter Google+ Facebook LinkedIn Addthis Email Gmail Flipboard Reddit Tumblr WhatsApp StumbleUpon Yammer Evernote Delicious
Frank van der Linden    

The last 2 weeks were very interesting, starting at a new customer as a Java developer on a JSF2.0 project.

XPages are based on highly customised version of JSF 1.1 at the base.

 

Annotations

The big advantage if JSF 2.0 is build in of Annotations. Very useful, like the @Formulas back, in my case, in the old days of Lotus Notes development.

For Managed Bean you can still use the faces-config.xml to control them. But now there is also the @ManagedBean(name=”fooBean”), you can use directly in the Java Class in combination with Scope Annotation, @ViewScoped, @RequestScope or @ApplicationScope.

Keep in mind that if you register also the Managed Bean in the faces-config.xml, this registration will overrule the @ManagedBean annotation on the Class.

Related to @ManagedBean, there is also @ManagedProperty annotation. Which can be used to directly include a Managed Bean inside the Java class. @ManagedProperty has one required parameter, ‘value’, which refer to the Managed Bean name. Inside the Java class you can automatically use the Managed Property.

Spring Framework uses the @Inject annotation to inject objects inside the Java class

 

Another very useful Annotation is @PostConstruct above a method inside a Java class, as the name suggest it will run as the Managed Bean will be instantiated. There is no need to trigger such a method from within a XPages or some other way.

 

Expression Language 

It is still there and as in XPages very powerful, but in JSF2.0 you not can call getters and setters in a bean, like #{bean.property1}, but also methods, like #{bean.method(argument)}

 

ProjectStage

In JSF 2.0, in perception, there is new thing, ProjectStage. In the web.xml you can put a tag to specify the current ProjectStage.

ProjectStage

The most used values are Development and Production, but there is also something like UnitTest and SystemTest. When you use Development the Application Server will print more debug and log lines to the console, very useful.

 

Frameworks.

XPages has the excellent Extension Library as framework and toolbox for lots of component, UI and behind the scenes. JSF 2.0 has their frameworks.

Till now I am using PrimeFaces and MyFaces Tomahawk, they are not exclusive for JSF2.0 and higher. But when you look at older versions, there is a lack of functionality.

The 2 frameworks contains lots of components which can be easily integrated inside your application. As specially PrimeFaces has lots code examples.

 

and more….non JSF

In my project next to JSF, I also use EJB and JPA to set up Persistence to the Oracle Database. With Persistence in place you can easily do CRUD actions on objects in the Relational Database.

twittergoogle_plusredditpinterestlinkedintumblrby feather

The post My steps in the JSF 2.0 world appeared first on elstar IT.



---------------------
http://elstarit.nl/?p=225
Oct 24, 2014
8 hits



Recent Blog Posts
3
Quick NPM tip: don’t forget to uninstall node modules
Tue, Jul 4th 2017 4:08p   Frank van der Linden
NPM is great tool to have all your Node modules in your front end project, and don’t have to worry about dependencies. When you find a useful module for your project just do ‘npm install –save-dev’ and you are ready to go, but….. it can pollute your node_modules directory with unused node modules. Just uninstall your unused node module by ‘npm uninstall ’ by The post Quick NPM tip: don’t forget to uninstall node modules appeared first on elstar
6
Angular 4 bug in combination with latest Typescript
Sat, Jul 1st 2017 10:51a   Frank van der Linden
When we upgraded our Angular app to the latest version. We noticed everything worked with version 4.2.3 and Typescript 2.4. The problem After we reinstalled all the nom packages the Angular version was upgraded to 4.2.4, because we had in our package.json ‘^4.2.3’ for Angular packages. When we package everything and republished the app to the page, we got errors, huh!!!! The solution After some search I found it has to do with the combination of Typescript and Angular
4
Angular and base64 encoding and decoding
Fri, Jun 30th 2017 7:32p   Frank van der Linden
Currently I am busy building a Proof of Concept at my customer. We are using Springboot for the Backend services, which get data from Tridion and store data in a Oracle database.. The Front end is build with Angular. We started with version 2 with Grunt as build tool, but quickly we changed it to Angular 4 with Webpack. The overall feeling of Angular 4 and Webpack was much better. Another plus was the smaller footprint. Base64 Last request was to store some information in Cookie. Overall no ro
4
The slides of my session at Engage
Tue, May 9th 2017 9:51a   Frank van der Linden
Here are my slides of my session at Engage. DEV03 – How Watson, Bluemix, Cloudant, and XPages Can Work Together In A Real World Application from Frank van der Linden by The post The slides of my session at Engage appeared first on elstar IT.
5
Learn, share and Engage in Antwerp
Tue, May 2nd 2017 6:15p   Frank van der Linden
Next week it is time for Engage Usergroup again. This time Theo Heselmans has chosen a very special location, next to the ZOO of Antwerp. Looking forward to meet everyone again and see what the sponsors have to offer. Theo and his team has put together a amazing agenda with top notch speakers and IBM Champions. This year I am very privileged to be a speaker again. My session Dev03. How Watson, Bluemix, Cloudant, and XPages Can Work Together In A Real World Application The role of a human resour
5
Bulk import in a Cloudant database
Thu, Apr 27th 2017 5:02p   Frank van der Linden
After some issues with HR Assistant I was thinking it would be a good idea to create a separate database with only the Design documents as schema database. So I replicated all the documents from the original database to a brand new one and called it hrassistant_schema. After the successful replication I kept all only the design documents. Today I got a question about the schemas and discovered it should also be a good idea to add all the configuration documents to the schema database of HR Ass
6
IBM InterConnect 2017 as a developer
Fri, Apr 7th 2017 11:27a   Frank van der Linden
As promised in a previous blogpost, I will zoom in on the technologies I have seen and used at IBM InterConnect I was surprised the amount of technical sessions at InterConnect. More then I then was expecting as lots of people told me It was all about middleware. Below my impression as a developer Open Tech Summit On Sunday InterConnect for me started with the Open Tech Summit, a gathering of tech nerds, to learn more on Open Source software. In a TED talk style every speaker got 10 minutes to s
1
IBM InterConnect 2017 – something completely different
Tue, Mar 28th 2017 4:43p   Frank van der Linden
IBM InterConnect 2017 is over, I must say I totally enjoyed it. Lots of attendees, it was crowded everywhere, but it gave a good vibe.  I have met a lot of new people I heard that it was Lotusphere in the old days. I totally agree with the blog by Gabriella Davis, it is time to get out our own yellow bubble and integrate it in InterConnect. There is so much both worlds can learn from each other. Keynotes On Monday there was the InterConnect Welcome keynote with, of course, a lot of announceme
6
Speaking of Las Vegas
Fri, Mar 10th 2017 7:38a   Frank van der Linden
In 1 week I will leave for my second trip to the USA for an IBM Conference. This time it will be IBM InterConnect in Las Vegas. Not only to attend, but also to speak again. A friend of my will join me on this trip. We will fly to Los Angeles and drive up to Las Vegas. After the conference we will have some time get back to LAX, a sort of mini road trip. Out of my comfort zone IBM InterConnect is a much bigger conference, compared to IBM Connect, at the Mandalay Bay in Las Vegas. It is focused
0
New Release: Generic XPages and HTML Widget For IBM Connections 5.5
Thu, Mar 2nd 2017 5:41p   Frank van der Linden
Yesterday I have created a new release of the OpenNTF project, Generic XPages and HTML Widget For IBM Connections. There was a problem with the widgets in IBM Connections 5.5, which was caused by some tags who were not in the expected DOM structure and small problem in the javascript. But many thanks to Christoph Stoettner of Panagenda who found the solution and provided me the modified files to release. Christoph, Thank you very much for the time you spent on this. Want to try it out on your I




Created and Maintained by Yancy Lent - About - Planet Lotus Blog - Advertising - Mobile Edition