File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Displaying user feedback with a4j:? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Displaying user feedback with a4j:?" Watch "Displaying user feedback with a4j:?" New topic

Displaying user feedback with a4j:?

Dan Acuff
Ranch Hand

Joined: Jul 13, 2009
Posts: 62
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:

Gerbrand van Dieijen
Ranch Hand

Joined: Nov 28, 2008
Posts: 30

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):

I agree. Here's the link:
subject: Displaying user feedback with a4j:?
jQuery in Action, 3rd edition