Uploaded image for project: 'Teeda'
  1. Teeda
  2. TEEDA-339

SelectOneMenu/RadioでMapをそのまま扱いたい

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.9
    • Component/s: None
    • Labels:
      None

      Description

      こんな感じで書ける様にする.
      Mapのキーはラベルに自動でバインド、バリューはまんまバリューで.

      public class SelectOne2Page {
      
      	private Map aaaItems;
      
      	private Integer aaa = new Integer(2);
      
      	public String prerender() {
      		aaaItems = new TreeMap();
      		aaaItems.put("AAAA", new Integer(1));
      		aaaItems.put("BBBB", new Integer(2));
      		aaaItems.put("CCCC", new Integer(3));
      		return null;
      	}
      
      	public Map getAaaItems() {
      		return aaaItems;
      	}
      
      	public void setAaaItems(Map aaaItems) {
      		this.aaaItems = aaaItems;
      	}
      
      	public Integer getAaa() {
      		return aaa;
      	}
      
      	public void setAaa(Integer aaa) {
      		this.aaa = aaa;
      	}
      
      	public String doAction() {
      		return null;
      	}
      }
      

        Activity

        Hide
        shot shot added a comment -

        機能追加しました.

        Show
        shot shot added a comment - 機能追加しました.

          People

          • Assignee:
            shot shot
            Reporter:
            shot shot
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development