[jboss-user] [JBoss Seam] - Re: How to double indirect a label (seam question)
tony.herstell@gmail.com
do-not-reply at jboss.com
Fri Apr 13 18:56:12 EDT 2007
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
More information about the jboss-user
mailing list