Identity Manager
20niko05 Oct 19, 2011 10:56 PMUsing identity manager
I'm having trouble displaying role groups when editing a user or a role, on the autogenerated xmhtl files roledetail.xhtml.
i'm using seam 2.2.2 Final
MySQL datbase
Richfaces
when deploying the seam project to my local jboss everything works just fine, but deploying it with production settings on a linux server using jboss the selectManyCheckBox on the page has no items. I'm using the same database to run the project on my computer and on the server so both have the same data
Below is the xhtml file roledetail.xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:rich="http://richfaces.org/rich"
xmlns:s="http://jboss.com/products/seam/taglib"
template="/layout/template.xhtml">
<ui:define name="head">
<link href="../stylesheet/useradmin.css" rel="stylesheet" type="text/css"/>
</ui:define>
<ui:define name="body">
<h1>Detalles de Rol</h1>
<h:form id="roleForm">
<rich:panel>
<s:decorate id="roleField" template="/layout/edit.xhtml">
<ui:define name="label">Grupo (Rol)</ui:define>
<h:inputText id="role" value="#{roleAction.role}" readonly="#{identityManager.userExists(roleAction.role)}"/>
</s:decorate>
<s:decorate id="groupsField" template="/layout/edit.xhtml">
<ui:define name="label">Miembro de Roles</ui:define>
<div class="selectMany">
<h:selectManyCheckbox id="groups" value="#{roleAction.groups}" layout="pageDirection" styleClass="roles">
<s:selectItems value="#{roleAction.assignableRoles}" var="_role" label="#{_role}"/>
</h:selectManyCheckbox>
</div>
</s:decorate>
<div style="clear: both;"/>
</rich:panel>
<div class="actionButtons">
<h:commandButton id="save" value="Guardar" action="#{roleAction.save}"/>
<s:button id="cancel" view="/useradmin/rolemanager.xhtml" value="Cancelar" propagation="end"/>
</div>
</h:form>
</ui:define>
</ui:composition>
PLEASE HELP...
I'm having trouble displaying role groups when editing a user or a role, on the autogenerated xmhtl files roledetail.xhtml.
i'm using seam 2.2.2 Final
MySQL datbase
Richfaces
when deploying the seam project to my local jboss everything works just fine, but deploying it with production settings on a linux server using jboss the selectManyCheckBox on the page has no items. I'm using the same database to run the project on my computer and on the server so both have the same data
Below is the xhtml file roledetail.xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:rich="http://richfaces.org/rich"
xmlns:s="http://jboss.com/products/seam/taglib"
template="/layout/template.xhtml">
<ui:define name="head">
<link href="../stylesheet/useradmin.css" rel="stylesheet" type="text/css"/>
</ui:define>
<ui:define name="body">
<h1>Detalles de Rol</h1>
<h:form id="roleForm">
<rich:panel>
<s:decorate id="roleField" template="/layout/edit.xhtml">
<ui:define name="label">Grupo (Rol)</ui:define>
<h:inputText id="role" value="#{roleAction.role}" readonly="#{identityManager.userExists(roleAction.role)}"/>
</s:decorate>
<s:decorate id="groupsField" template="/layout/edit.xhtml">
<ui:define name="label">Miembro de Roles</ui:define>
<div class="selectMany">
<h:selectManyCheckbox id="groups" value="#{roleAction.groups}" layout="pageDirection" styleClass="roles">
<s:selectItems value="#{roleAction.assignableRoles}" var="_role" label="#{_role}"/>
</h:selectManyCheckbox>
</div>
</s:decorate>
<div style="clear: both;"/>
</rich:panel>
<div class="actionButtons">
<h:commandButton id="save" value="Guardar" action="#{roleAction.save}"/>
<s:button id="cancel" view="/useradmin/rolemanager.xhtml" value="Cancelar" propagation="end"/>
</div>
</h:form>
</ui:define>
</ui:composition>
PLEASE HELP...