Pete, your kung foo is strong:

  |     public enum AdvertType {
  |         Lineage  ("label_ad_type_lineage"),
  |         BannerAd ("label_ad_type_banner_ad");
  |         private final String label;
  |         AdvertType(String label) {
  |             this.label = label;
  |         }
  |         public String getLabel() { return label; }
  |     }
  | 


  |     @NotNull(message="required")
  |     @Length(max = 30)
  |     public AdvertType getType() {
  |         return type;
  |     }
  | 
  |     public void setType(AdvertType type) {
  |         this.type = type;
  |     }
  | 


  | <h:selectOneRadio id="advertType" required="true" 
value="#{advertisingCampaignController.campaign.advert.type}">
  |     <s:selectItems 
value="#{advertisingCampaignController.campaign.advert.advertTypes}" 
var="advertType" label="#{messages[advertType.label]}"/>
  |     <s:convertEnum />
  | </h:selectOneRadio>
  | 


Thanyou for your suppoort and pointing me in the right direction (I didnt even 
know Emuns could have "parameters"!

 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037262#4037262

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037262
_______________________________________________
jboss-user mailing list
[EMAIL PROTECTED]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to