Tuesday 27 December 2011

JSF Tutorial

JSF 2.0 Tutorials

JSF 2 with Facelets and Ajax

Interested in training from the author of these tutorials? See the upcoming JSF 2.0 training course in Maryland, co-sponsored by Johns Hopkins Engineering for Professionals. Or, contact hall@coreservlets.com for info on customized JSF 1.x or JSF 2.0 courses at your location.


Following is a series of tutorials on JavaServer Faces version 2. Since each section includes exercises and exercise solutions, this can also be viewed as a self-paced JSF 2.0 training course. Click on a section below to expand its content.

Overview of the JSF 2.0 Tutorial Series

JSF 2.0: Introduction and Overview

Installation, Setup, and Getting Started

New Features in JSF 2.0

JSF 2.0: Programming Basics

Managed Beans I: Using Java Classes to Represent Form Info

Managed Beans II: Advanced Features

Explicit Page Navigation and faces-config.xml

The JSF 2.0 Expression Language

Properties Files and Internationalization (I18N)

Handling GUI (Application) Events

Integrated Ajax Support in JSF 2.0

Validating User Input

ui:repeat and Handling Variable-Length Data

h:dataTable -- Building Tables from Collections

Composite Components

Page Templating with Facelets

View Params, GET Requests, and Bookmarking

Using Spring in JSF 2.0 Applications

JSF 2.0: A Whirlwind Tour of New Features

Other JSF 2.0 Features

More Information

Sunday 18 December 2011

Apple iPad 3 Set To Launch In Spring 2012

Apple is expected to launch the next generation of its tablet device line, the iPad 3 sometime in the spring of 2012. Digitimes, which cited unnamed sources in Apple’s component supply chain, reported that the iPad 3 would launch sometime in the next three to four months, with the specific timeframe between mid-March and mid-April being the likeliest to see the launch.
While iPad 2 production is still strong with about 14 to 15 million units expected to be produced in the December quarter of 2011, orders of the iPad 2 are expected to be decreased by about 10 million units to about 4-5 million units in the first quarter of 2012. Foxconn is expected to make anywhere between 9.5 to 9.7 million units of the third generation iPad over the first quarter of 2012 according to the report, with production set to rise in February.
The new iPad 3 is expected to be very slightly thicker than the iPad 2 so as to make way for the new high resolution Retina Display screen. Early reports had suggested that the launch date would be sometime in February, but given the expected release of Samsung’s new tablet at the Mobile World Congress in February, the newer reports suggesting a launch date between mid-March and mid-April appear to be more accurate. Samsung’s new tablet will also feature a Retina-topping display, and Samsung are said to be trying hard to beat Apple’s iPad 3 to the market with their early launch.
Another report in Digitimes noted that the manufacturing partners for Barnes and Noble’s tablet device, the Nook, have now produced and shipped a total of 1 million units over the course of just over a month. The Nook, which had been unveiled in early November and released shortly after that, has a 7-inch “Vivid View” screen that has been designed by LG and a dual core 1 GHz processor. It also features 16 GB of hard disk space and 1 GB RAM, and runs on the Android 2.3 operating system.
The report, which cited employees at component suppliers as its sources, said that over a million units had been sent to Barnes & Noble to date, and that Barnes & Noble had earlier had to increase the size of their orders after strong initial sales. It said that Barnes & Noble had initially asked for about 800,000 units through to the end of December, but had to increase their order on the back of strong sales.

Saturday 17 December 2011

Galaxy Nexus Hack Enables Google Wallet on Smartphone

Be it Verizon's fault or Google's, owners of the recently released Galaxy Nexus smartphone can't tap into the device's built-in Near Field Communication feature for use with Google Wallet. It's just not going to happen.
Not going to happen, that is, unless you perform a few lengthy customizations on your smartphone. A crafty workaround has been found that allows Galaxy Nexus owners to use Google Wallet just like all of their friends that own Sprint's Nexus S 4G smartphones. But the hack comes with a few catches: Namely, you're going to hack off both Verizon and Google if you try it.
How's that? Well, the process for enabling Google Wallet on your Galaxy Nexus demands that you unlock the device's bootloader and root the smartphone. And once you've done that, there goes your warranty through Verizon should your smartphone encounter any errors (or catastrophic free-falls) in your future.
And that's just the first half. Google's own terms of service prohibit using Google Wallet, "on a mobile device or Android operating system that has been modified or customized in any way." There's no indication as to what could happen to you or your account should you proceed with the hack for your Galaxy Nexus.
If you're willing to accept the hack's terms, you first start your journey toward turning your smartphone into a touch-based payment system by unlocking the device's bootloader. Droid-Life has a great step-by-step instruction guide for doing so but, in short, you'll need to first set up the Android SDK, reboot the device into its bootloader, type in a text command to unlock it, agree (and kiss your warranty goodbye), and sit back while your smartphone performs a factory reset.
From there, you'll need to root your Galaxy Nexus – not as easy of a process as, say, firing up SuperOneClick and hitting a button, but one that's sure to simplify as more enthusiasts tinker around with their new Galaxy Nexus smartphones.
Finally, you'll want to download ROM Manager, use the app's "Flash Custom Recovery" option, and follow these steps to finalize the process of adding Google Wallet onto your smartphone.
If that's all just too complicated to deal with in words, we've found a step-by-step video that should give you a bit more clarity as you go about hacking bits and pieces of your smartphone's OS. Have faith: You'll be using your Galaxy Nexus like a credit card before you know it!

Oracle Corporation (ORCL): Today's Featured Computer Software & Services Winner

Oracle Corporation (ORCL) pushed the Computer Software & Services industry higher today making it today's featured computer software & services winner. The industry as a whole closed the day up 0.4%. By the end of trading, Oracle Corporation rose 18 cents (0.6%) to $29.21 on average volume. Throughout the day, 43.3 million shares of Oracle Corporation exchanged hands as compared to its average daily volume of 30.9 million shares. The stock ranged in a price between $28.96-$30.07 after having opened the day at $29.26 as compared to the previous trading day's close of $29.03. Other companies within the Computer Software & Services industry that increased today were: CryptoLogic (CRYP), up 36.7%, Pansoft Company (PSOF), up 19.2%, 21Vianet Group (VNET), up 9.7%, and Velti (VELT), up 9.5%.
Oracle Corporation, an enterprise software company, develops, manufactures, markets, distributes, and services database and middleware software, applications software, and hardware systems worldwide. Oracle Corporation has a market cap of $150.87 billion and is part of the technology sector. The company has a P/E ratio of 17.3, above the average computer software & services industry P/E ratio of 16.9 and below the S&P 500 P/E ratio of 17.7. Shares are down 4.6% year to date as of the close of trading on Thursday. Currently there are 31 analysts that rate Oracle Corporation a buy, no analysts rate it a sell, and six rate it a hold.

Microsoft Internet Explorer Will Update Automatically in 2012

Microsoft will no longer wait for users to do the secure thing and manually upgrade their Web browsers. Instead, the company will upgrade users automatically, unless the user opts out.

Rate This Article:
Microsoft will start silently pushing out updates for Internet Explorer beginning in January, the company said.
The automatic updates will help improve security online because users would always be at the most updated version of the Web browser, Microsoft said in the Exploring IE blog Dec. 16. Many Web scams take advantage of vulnerabilities in unpatched software such as outdated Web servers, according to statistics gathered by Microsoft's security tools, making it even more important for users to have updated browsers when surfing online.
Users on Windows XP, Vista and 7 will all be included in this plan, with Windows XP users being automatically upgraded to Internet Explorer 8. Windows 7 and Vista users would be bumped up to Internet Explorer 9. The new update mechanism will be first rolled out in Australia and Brazil in January.
"The Web overall is better—and safer—when more people run the most up-to-date browser," wrote Ryan Gavin, general manager of business and marketing for Internet Explorer.
Previously, users who had automatic updates enabled were still presented with a dialog box to confirm the Internet Explorer update. This new process removes the dialog box altogether.
Users who don't want to be updated in the background can opt out by turning off Automatic Updates or uninstalling the browser, Microsoft said. Only users who currently have the option to run operating system updates automatically enabled will be included in the browser updates. However, turning off Automatic Updates to stop IE updates poses its own risks, as users will then be at risk for missing updates, or being late to patch, to close security vulnerabilities in the operating system.
"Customers who have declined previous installations of IE8 or IE9 through Windows Update will not be automatically updated," Gavin wrote.
Internet Explorer 10 and later versions will have an opt-out setting users can select to disable automatic upgrades. Enterprise users can also download Blocker Toolkits to stay on the older browser and avoid an upgrade, according to Microsoft.
Once the user has the latest version of the browser, all future updates would be automatically downloaded and installed without requiring any user intervention, according to Gavin. Internet Explorer security updates, which are delivered every other month as part of the Patch Tuesday release, would not be affected as they are downloaded and applied separately from browser updates.
The idea is not new, as Google has been delivering automatic updates to its Chrome Web browser ever since its initial launch three years ago. Mozilla has recently started moving toward a "Firefox Update Service" that will allow silent updates and aims to deliver it in Firefox 12, expected April 24, 2012. Adobe announced earlier this year that it will start automatically updating Adobe Reader and Acrobat X.
"Silent updating is generally seen as a big improvement to security on the Internet," said Wolfgang Kandek, CTO of Qualys.
Microsoft has been "struggling" with "browser stragglers" for years, said Chester Wisniewski, senior security advisor at Sophos, wrote on the Naked Security blog. He noted that 8.3 percent of the world's users still employ Internet Explorer 6, a browser released 10 years ago and tremendously outdated. While many businesses are stuck with IE6 because of some critical applications that won't run on modern browsers, many of those lagging behind, such as those using Internet Explorer 7, do not see the importance of staying up-to-date, according to Wisniewski.
Globally, Internet Explorer is still the most popular browser, with more than 52 percent of people using it, according to net market research firm Net Applications. Mozilla's Firefox and Google's Chrome are battling it out for