开发者_如何学运维
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this questionI need a text box like control.
When clicked on it pops up a small window or area where the user can see his previous text and update/edit his text.
I have a data table and what I'm trying to do is allow the user to edit the description, but the description area is small so we won't fit everything.
So on click I'm trying to use a tool that pop up a small text window on the page that allows the user to add/update/delete
Any idea? Is there a such tool?
You can use a <rich:modalPanel>
containing a <h:inputText>
with its value bound to the text the user needs to edit/update.
When facing a similar requirement, I used the RichFaces.showModalPanel
JS function on the oncomplete
event of an `:
<a4j:commandButton actionListener="..."
oncomplete="RichFaces.showModalPanel('myPopupPanel', {width: 500, top: 200});" />
精彩评论