How to customize the terminal component in Primefaces 2.2.1 for JSF2?

痞子三分冷 提交于 2019-12-25 03:57:09

问题


Hi guys I'd like to ask if there is a way to customize the terminal component in primefaces 2.2.1 ? Id like to change the default prompt which is "prime $" into something else. Also what are the other options for the "cursor" aside from "pointer". Other customization tips regarding the terminal component will be very much appreciated.

Thanks in advance.


回答1:


change the default prompt which is "prime $" into something else.

Read the User Guide or use the IDE autocompletion to see all available component attributes. You need the prompt attribute. E.g.

<p:terminal prompt="C:\\&gt;" ... />

This one will use C:\> instead of default prime $.


Also what are the other options for the "cursor" aside from "pointer".

This actually belongs in a separate question as that's totally unrelated to JSF. But ala, just check the CSS spec. Here's an extract of relevance which shows all specified values:

Value: [ [<uri> ,]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize | text | wait | help | progress ] ] | inherit



来源:https://stackoverflow.com/questions/7734735/how-to-customize-the-terminal-component-in-primefaces-2-2-1-for-jsf2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!