Results 1 to 2 of 2
  1. #1
    Samurai Coder is offline Member
    Join Date
    Dec 2009
    Posts
    5
    Rep Power
    0

    Default Appending and item to a Select List

    I am trying to append an Item to the end of a Select List.

    Java Code:
    <s:selectItems id="billing01_payments" var="_var"
    	label="#{_var.formattedAddress}"
    	value="#{customerSession.payments}" />
    	<f:selectItem id="newCard" itemLabel="New Card" itemValue="noSelectionValue"/>
    But I don't know what to put in as either a value or itemValue.

    What do I put there? The reason we are not wanting to use noSelectionLabel is because we want to order by The default credit card first.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. Button to remove item from list
    By dacool25 in forum Java Applets
    Replies: 6
    Last Post: 10-14-2009, 04:30 AM
  2. Replies: 0
    Last Post: 03-15-2009, 11:53 PM
  3. How to retain value in struts 2 using <s:select></s:select> tag
    By SaiPrasad@Sella in forum Web Frameworks
    Replies: 0
    Last Post: 02-09-2009, 07:23 AM
  4. Displaying a Java List in Html:select tag
    By ramitmehra123 in forum New To Java
    Replies: 0
    Last Post: 02-07-2008, 05:48 AM
  5. linked list nodes all refernce same item.
    By yllawwally in forum New To Java
    Replies: 0
    Last Post: 12-18-2007, 08:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •