I have an application in Java Web, I have an input text and I would like to put a button or something, because when you type something inside that input, if the user wants can click on this button in which you move the text to the right , as if it were a tab or even a space, but wanted to do it the moment you click on the button. How can I do this?
This is my input:
<h:inputText value="#{frameBean.objSvg.valueText1}" autocomplete="off"
styleClass="form-control" tabindex="0"/>
And this is my button where I want you to do this action for example:
<p:commandLink id="btn_indent"
styleClass="btn btn-default" >
<i class="fa fa-text-height fa-fw"/>
</p:commandLink>