JSF RI是否有任何RTF编辑器组件? [英] Is there any rich text editor component for JSF RI?
本文介绍了JSF RI是否有任何RTF编辑器组件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
- 我正在使用JSF RI 1.1.如何添加富文本编辑器组件?是否有任何富文本编辑器组件可用?
-
我正在使用以下代码水平显示一组图像.所选图像存储在数据库中.在编辑模式下显示图像时,如何突出显示先前选择的图像?
<t:dataList var="item" value="#{occasionBean.messageInfo}" layout="simple"> <h:commandLink action="#{occasionBean.selectedImage}" > <h:graphicImage width="100" height="100" url="#{item.imageSnapUrl}" onclick="return setMsgId(this.id,{item.img_id},'{item.imageUrl}');" id="test"> </h:graphicImage> </h:commandLink> </t:dataList>
解决方案
1) Mojarra秤具有 htmlEditor 组件.
(来源: kenai.com ) >
2)有条件地添加styleClass
.
styleClass="#{item.previouslySelected ? 'selected' : ''}"
与此吸气剂
public boolean isPreviouslySelected() {
return previouslySelected;
}
和此CSS
img.selected {
border: 2px solid red; /* Use whatever highlight style here. */
}
- I am using JSF RI 1.1. How to add rich text editor component? Is there any rich text editor component available?
I am displaying set of images horizontally using the below code. Selected image is stored in database. while showing the images in edit mode, how to highlight the previously selected image?
<t:dataList var="item" value="#{occasionBean.messageInfo}" layout="simple"> <h:commandLink action="#{occasionBean.selectedImage}" > <h:graphicImage width="100" height="100" url="#{item.imageSnapUrl}" onclick="return setMsgId(this.id,{item.img_id},'{item.imageUrl}');" id="test"> </h:graphicImage> </h:commandLink> </t:dataList>
解决方案
1) Mojarra Scales has a htmlEditor component.
(source: kenai.com)
2) Add a styleClass
conditionally.
styleClass="#{item.previouslySelected ? 'selected' : ''}"
with this getter
public boolean isPreviouslySelected() {
return previouslySelected;
}
and this CSS
img.selected {
border: 2px solid red; /* Use whatever highlight style here. */
}
这篇关于JSF RI是否有任何RTF编辑器组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文