Chapter 6 - Using JSF with your Portlets

Sample Code for Programming Portlets 2nd Edition. From JSR 168 to IBM WebSphere Portal Extensions.

AttachmentSizeHitsLast download
Chapter6.zip4.48 MB2352 days 4 hours ago

Comments

Portlet Unavailable

After I setup the data components according Appendix B, imported the Chapter 6 CustomerMaintenance.war into RAD7, published the project to Websphere Portal 6 server, I got an error message on RAD7 console:

Error getting property 'customers' from bean of type com.ibmpress.customermaintenance.CustomerMaintenanceBean: java.lang.NumberFormatException: null

Any ideas?

Thanks,

Intantiating ClassicModelsService

I had issue creating the ClassicModelsService class. 'new' operator did not worked. Even though the doc does not tell the class having getInstance() member, I could fix the compiler error as below:

In class CustomerMaintenanceBean
uner function getClassicModelsService()
I have to replace
classicModelService = new ClassicModelsService();
with
classicModelService = ClassicModelsService.getInstance();

Running some of the examples

Download and import the data components in Appendix B.

Can't get the code to compile

Hi,

I imported the WAR into RAD 7, and get a number of compiler errors. It can't seem to import:

import com.ibmpress.cm.model.Customers;
import com.ibmpress.cm.service.ClassicModelsService;

Do I need to download something else? Perhaps the answer is in the book- I don't have my copy yet, I've ordered it from Amazon and delivery is pending. Just thought it would be nice to look at the sample code whilst I wait for it to arrive.

Missing libraries

Hi,

I arrived at the same problem. Is there any solution yet?

Best,
Martin