jQuery in Action
[Logo] JavaRanch » Big Moose Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » JSF
 
RSS feed
 
New topic
Author

Displaying user feedback with a4j:?

Dan Acuff
Greenhorn

Joined: Jul 13, 2009
Messages: 23

I have the following code, how do I improve it by adding code to display to the user that the shipment method was updated to X shipping method? (there are 4 ship method choices in the radio button code; Standard, Second Day, Next Day, and Choose every time.)

<a:support is actually the name-space we use for A4J:

This message was edited 2 times. Last update was at by Bear Bibeault

Gerbrand van Dieijen
Ranch Hand

Joined: Nov 28, 2008
Messages: 30

Hello,

You could modify the getDefaultShipmentMethods method, to return
selectItems whose value is shomething like a ShipmentMethod bean (Object), rather then a shipmentMethodCodeId. The ShipmentMethod bean can contain a property (via something like getName) name, that contains the name besides a property shipmentMethodCodeId. That way you'll have access to both.

Then you have to add a property customerSession.customer.defaultShipmentMethod of type ShipmentMethod to your customerSessoin.customer bean.

Something like (not checked for syntax errors btw):

 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » JSF
 
RSS feed
 
New topic
JProfiler
Get rid of your performance problems and memory leaks!