AnsweredAssumed Answered

Additional Date type attribute for person

Question asked by raweck on Nov 6, 2007
Latest reply on Nov 7, 2007 by raweck
I wanted to extend user attributes by new Date type attribute.
I added:

<property name="cm:replacementPersonStartDate">
to contentModel.xml file.

<td><h:outputText value="#{msg.replacement_person_start_date}"/>:</td>
<h:inputText id="replacement_person_start_date" value="#{}" size="35" maxlength="1024" onkeyup="updateButtonState();" onchange="updateButtonState();" /> *
to edit-user-details.jsp file.

<td class="propertiesLabel">
<h:outputText value="#{msg.replacement_person_start_date}" />:
<h:outputText value="#{}" />
to user-console.jsp file.

I added props.put(…(Date)…) line in changeUserDetails() :

public String changeUserDetails()

props.put(ContentModel.PROP_EMAIL, (String)getPerson().getProperties().get(ContentModel.PROP_EMAIL));


this.nodeService.setProperties(getPerson().getNodeRef(), props);

in file.

If I do it for String or Integer type attribute it works, for Date type attribute it does not. What is wrong?