Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBoss Seam] - Facelets checking against the value of
 an Enum... HowTo?

scott.stark@jboss.org

2007-05-08


I want to do this within a .xhtml page


| <s:fragment rendered="#{advertisingCampaignController.currentSectionWorkingOn == AdvertisingCampaignController.Section.NameDescription}">
|

where Section.NameDescription is part of an Enum...

|   public enum Section {None, NameDescription, AdType, Targeting, Keywords, Budget, LaunchDate, DestinationURL, Billing};
|

Does anyone know how to do this as I really dont want to do this:

| <s:fragment rendered="#{advertisingCampaignController.currentSectionWorkingOn == 'NameDescription'}">
|

as it seems uncool!

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043838
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.