[JBoss Seam] - Enums in JSF code
by Frippe
Hi,
I have a xhtml file where I try to use an enum I've created for my system. The enum works when I use it to set values on entities' properties and can also print the enum, set as a value in an entity, in the xhtml file.
But I can't seem to be able to create a rendered condition or print a value directly from the enum #{PStatus.ACTIVE}
My enum:
@Name("pStatus")
| public enum PStatus {
| INITIATED(0), ACTIVE(1), DRAWING_DONE(2), CLOSED(3);
|
| private int value;
|
| private PStatus(int value) {
| this.value = value;
| }
|
| public int getValue() {
| return(value);
| }
| }
Part of my xhtml file:
<h:column rendered="#{bookable.week.period.status == PStatus.ACTIVE}">
| <h:commandLink action="#{subscriptionView.sortBy('email')}" value="Vinnare"/>
| </h:column>
What am I missing here?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053939#4053939
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053939
18Â years, 11Â months
[JBoss Portal] - Unaccessable Instance
by brownfielda
Howdy,
I've been playing around with JBoss Portal for a few days to become familiar with the environment, before I start developing some portlets. I have run into a slight snag that I haven't been able to remedy.
Using the admin account I set a HelloWorld portlet instance with the view permission for only the role User. This immediately stopped the administrator from viewing the instance for both the dashboard or administrating. I would like to be able to re-access this instance to either modify permissions or destroy it.
Some recursive grepping of the instance name led me to $JBOSS_HOME/server/default/data/portal/hypersonic/database.script. With a quick glance I realized that this may be a dangerous file to hand-edit without a bit more research.
In case it's pertinent:
jboss-portal-2.6-CR2 (AS & Portal bundled)
OS X 10.4.9
Any suggestions?
--Andrew
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053931#4053931
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053931
18Â years, 11Â months