I would like to display p:inputText next to f:selectItem and get result like on picture below:

With my code:
<p:selectManyCheckbox id="s1" value="#{myBean.selectedValues}" layout="pageDirection" >
<f:selectItem itemLabel="value 1" itemValue="v1" />
<f:selectItem itemLabel="value 2" itemValue="v2" />
<f:selectItem itemLabel="value 3" itemValue="v3" />
<p:inputText id="input1" value="#{myBean.input1Value}" />
</p:selectManyCheckbox>
inputText has been displayed before selectItems:

I have tried also put inputText into selectItem tag, but result was the same.
<f:selectItem itemLabel="value 3" itemValue="v3">
<p:inputText id="input1" value="#{myBean.input1Value}" />
</f:selectItem>
The simplest way is to use
p:panelGridwithcolumns="2"Take a look at other examples Primefaces PanelGrid