• Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying user feedback with a4j:?  RSS feed

 
Dan Acuff
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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):

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!