new NamedValue(Constants.PROP_USER_MIDDLENAME, false,
middleName, null),
no se muestra nunca.<type name="cm:person">
<title>Person</title>
<parent>sys:base</parent>
<properties>
</property>
…
<property name="cm:firstName">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="cm:lastName">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="cm:middleName">
<type>d:text</type>
</property>
<property name="cm:email">
<type>d:text</type>
</property>
…
Por tanto, a priori no hay problema para introducir de forma separada (estructurada) los apellidos de las personas.<tr>
<td class="propertiesLabel">
<h:outputText value="#{msg.first_name}" />:
</td>
<td>
<h:outputText value="#{UsersBean.person.properties.firstName}" />
</td>
</tr>
<tr>
<td class="propertiesLabel">
<h:outputText value="#{msg.last_name}" />:
</td>
<td>
<h:outputText value="#{UsersBean.person.properties.lastName}" />
</td>
</tr>
Pasa del nombre al último apellido…por lo que tendrías que modificar los jsp donde apareciese únicamente el lastname.<a:richList id="users-list" binding="#{UsersBean.usersRichList}" viewMode="details" pageSize="10"
styleClass="recordSet" headerStyleClass="recordSetHeader" rowStyleClass="recordSetRow" altRowStyleClass="recordSetRowAlt" width="100%"
value="#{UsersBean.users}" var="r" initialSortColumn="userName" initialSortDescending="true">
<%– Primary column with full name –%>
<a:column primary="true" width="200" style="padding:2px;text-align:left">
<f:facet name="header">
<a:sortLink label="#{msg.name}" value="fullName" mode="case-insensitive" styleClass="header"/>
</f:facet>
<f:facet name="small-icon">
<h:graphicImage url="/images/icons/person.gif" />
</f:facet>
<h:outputText value="#{r.fullName}" />
</a:column>
<%– Username column –%>
Si nos fijamos en la propiedad value del elemento a:richList, vemos que llama al método getUsers() del UsersBean…mirando el código fuente (org.alfresco.web.bean.users.UsersBean) encontramos las siguientes líneas:
…
Map<String, Object> props = node.getProperties();
props.put("fullName", ((String)props.get("firstName")) + ' ' + ((String)props.get("lastName")));
…
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.