<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8"  %>
<%@ taglib uri="/WEB-INF/iman.tld" prefix="iman" %>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/x.tld" prefix="x" %>
<iman:stringtable bundle="DevResources" />
<iman:stringtable bundle="FwResources" />
<x:parse xml="${edas}" var="edasXml"/>


<HTML>
<HEAD>
   <TITLE><iman:string key="ProductName"/></TITLE>
   <iman:stylesheet/>
   <iman:uihandlerTools/>
   <iman:pageScripts/>
   <iman:eMFrameScripts/>
   <iman:mvedScripts mode="mvsel" />
   <iman:validateNumberScripts/>
   <iman:osScripts/>

   <SCRIPT>
      function onInit()
      {
         returnFromOS();
      }

      function isPageValid()
      {
         var form=document.forms[0];


         return notifyAllOfExit();
      }

   </SCRIPT>
</HEAD>

<BODY onLoad="onInit();">
<FORM name="form" method=post action="webacc">
   <iman:messagebar />
   <iman:bookvars/>

   <TABLE class="mediumtext" border="0" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0">
      <TR>
         <TD align="left" colspan="2">
            <c:out value="${Group_MembershipDisplayName}"/>:&nbsp;&nbsp;
         </TD>
      </TR>
      <TR>
         <TD>
            <c:if test="${edasRights.target.Group_Membership.writeable}">
               <INPUT type="hidden" name="eDir$target$Group_Membership" value="<c:out value="${eDir$target$Group_Membership}" escapeXml="false"/>">
               <SCRIPT>addToNotificationList('Group_Membership', 'uih_mvStringEditor');</SCRIPT>
            </c:if>
            <% /* Sort the Group membership list */ %>
            <%@page import="java.util.*" %>
            <%@page import="java.text.Collator" %>
            <% List list = new ArrayList(); %>
            <x:forEach select="$edasXml/edas/Group_Membership/value">
               <x:set var="node" select="string(.)"/>
               <jsp:useBean id="node" type="java.lang.String"/>
            <% list.add(node); %>
            </x:forEach>
            <% Collections.sort(list, Collator.getInstance()); pageContext.setAttribute("MVStringEditor_values", list); %>
            <iman:mved items="${MVStringEditor_values}" readonly="${!edasRights.target.Group_Membership.writeable}" enforceUnique="true" name="_Group_Membership" objectTypeName="Group" mode="mvsel" size="15" showCount="true" history="true" width="400" />
         </TD>
         <TD valign="top">
            <c:set var="mode"><x:out select="$edasXml/edas/Group_Membership/@mode"/></c:set>
            <iman:mooMode name="_Group_Membership_mode" value="${mode}" multi="true" />
         </TD>
      </TR>
      <TR><TD height="9"></TD></TR>
   </TABLE>

</FORM>
<iman:osFooter/>
</BODY>
</HTML>
