In an hour ago I have a problem with inplace component then Aceh Gayo coffee was gave me the idea.
|
taken from www.foodspotting.com |
There is no properties for setting width in inplace component, but if you look at html code that produced by primefaces you will find the
span element for wrapping the text in inplace component.
Then you just need little html knowledge to setting span width in other words is inplace width.
Here the code :
<p:inplace id="inOutput4" editor="true" style="display:inline-block;width:250px;overflow:hidden">
<p:inputText id="output4" value="#{bean.output}" required="true" />
</p:inplace>
Yes, I use
style="display:inline-block;width:250px;overflow:hidden" for set the width.