aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Displaying user feedback with a4j:?" Watch "Displaying user feedback with a4j:?" New topic
Author

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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying user feedback with a4j:?
 
Similar Threads
popup in small window is not closing automatically
Any idea what could cause new <br> tags to get added to the rendered code?
Fieldset is not working
request.getParameter retuning null
problem on saving inputText values