jsf - Edit multiline text in p:inputTextarea in p:dataTable -
i want edit multiline text in cells, have code:
<p:datatable ... editable="true" editmode="cell"> <p:column ...> <p:celleditor> <f:facet name="output"><h:outputtext value="#{mybean.value}"/></f:facet> <f:facet name="input"><p:inputtextarea value="#{mybean.value}"/></f:facet> </p:celleditor> </p:column> </p:datatable>
but i've faced problem cannot insert new line because changes sent backend on enter press. possible send changes on ctrl+enter or add small "ok" button?
Comments
Post a Comment