0 Replies Latest reply on Feb 11, 2008 8:08 AM by Pol Za

    Some problem with rich:tab and codepage

    Pol Za Newbie

      I have some problem with rich:dataTable, can anyone help me undersstand what is wrong

      1-st, all labeles and titles, for example label="#{msg.h_menu_users}" don't apply right codepage, but ${msg.toolbar_link_planning_func} display properly

      2-nd, when I click inactive tab, I recive javascript error :

      Form [object HTMLInputElement] not found in document (for Mozilla & Opera)
      (Form [object ] not found in document (for IE)

      Error caused this fragment code
      <f:param name="id" value="#{item.id}"/>

      Fragment of my code


      <f:loadBundle basename="resources" var="msg" />
      .....
      <rich:tabPanel width="98%">
      <rich:tab id="users" label="#{msg.h_menu_users}">
      <rich:dataTable id="usersList" value="#{users.entities}" var="item" width="100%"
      cellpadding="0" cellspacing="0"
      columns="6"
      columnsWidth="1%, 20%, 35%, 20%, 17%, 12%"
      headerClass="bgr4"
      rows="10"
      >
      <rich:column>
      <f:facet name="header">
      <h:selectBooleanCheckbox id="sel_All" title="#{msg.data_header_selall}" value="0" onchange="selectAll()"/>
      </f:facet>
      <h:selectBooleanCheckbox id="sel_item" title="#{msg.title_sel_user} #{item.ULogin}" value="0"/>
      </rich:column>
      <rich:column>
      <f:facet name="header">
      <h:outputText value="#{msg.data_header_user_login}"/>
      </f:facet>
      <h:outputText value="#{item.ULogin}"/>
      </rich:column>
      <rich:column>
      <f:facet name="header">
      <h:outputText value="#{msg.data_header_user_name}"/>
      </f:facet>
      <h:outputText value="#{item.UFname} #{item.UMname} #{item.ULname}"/>
      </rich:column>
      <rich:column>
      <f:facet name="header">
      <h:outputText value="#{msg.data_header_user_email}"/>
      </f:facet>
      <h:outputText value="#{item.UEmail}"/>
      </rich:column>
      <rich:column>
      <f:facet name="header">
      <h:outputText value="#{msg.data_header_user_role}"/>
      </f:facet>
      <h:outputText value="#{item.URole}"/>
      </rich:column>
      <rich:column>
      <f:facet name="header">
      <h:outputText value="#{msg.data_header_func}"/>
      </f:facet>
      <h:commandLink action="#{users.startEdit}">
      <h:graphicImage style="border:none; vertical-align:middle;" url="/pages/images/controls/edit.gif" title="#{msg.title_user_list_uesr_edit}"/>
      <f:param name="id" value="#{item.id}"/>
      </h:commandLink> <h:commandLink action="#{users.delete}">
      <h:graphicImage style="border:none; vertical-align:middle;" url="/pages/images/controls/delete.gif" title="#{msg.title_user_list_user_delete}"/>
      <f:param name="id" value="#{item.id}"/>
      </h:commandLink>
      </rich:column>
      <f:facet name="footer">
      <rich:datascroller/>
      </f:facet>
      </rich:dataTable>
      </rich:tab>
      <rich:tab id="roles" label="#{msg.h_menu_roles}">
      ....
      </rich:tab>
      </rich:tabPanel>