javascript - AutomoComplete Method JSF Disable to remove first element -
project has developped jsf + spring . bir input alanım var. bu alan kullanıcıları user olarak tutuyor ve dolduruyor. : http://prntscr.com/etgdym
first element commin session means user entering system comes first.after that, different users can added. : http://prntscr.com/etgeca
what want first user added system can not deleted area.
how can this?
<p:autocomplete id="autocomp" value="#{ideabean.owners}" var="user" multiple="true" completemethod="#{ideabean.completeuser}" required="true" requiredmessage="bu alan boş bırakılamaz." itemlabel="#{user.fullname} (#{user.email}) " itemvalue="#{user}" converter="userconvertertwo" disabled="#{ideabean.createdidea}" forceselection="true" styleclass="ui-autocomplete-multiple-container" dropdownmode="true" scrollheight="250"> <div onclick="opennewexternalmemberwindow('#{user.employeenumber}');"> <p:column style="text-align:center"> <img width="100px" src="http://tr-is/pers_info/foto/#{user.employeenumber}.jpg" /> </p:column> <p:column> <br/> <div class="media-body"> <h4 class="media-heading">#{user.fullname}</h4> <p>#{user.email}</p> <p>#{user.title.split(' - ')[1]}</p> <p>#{user.department}</p> </div> </p:column> </div> </p:autocomplete>
Comments
Post a Comment