I am using JSF 2.0, PF M3 and GF 3.1.
I have a autocomplete control in my email form. As soon as I select from the drop down suggestions provided by autocomplete control, it replaces the old value in the control. How can I make it work so that each time a new selection is made the selected text is appended to the previously selected text.
My view file is :
Code: Select all
<p:autoComplete id="emailForm"
value="#{mail.emailTo}"
required="true"
completeMethod="#{myController.complete}"
var="p"
itemLabel="#{p.lastName} <#{p.email}>"
itemValue="#{p}"
size="60"
>
<p:ajax event="itemSelect" listener="#{myController.handleSelect}"/>
</p:autoComplete>
Thanks