使用链接在表单上插入图像素数 [英] Insert Image primefaces on form with link
本文介绍了使用链接在表单上插入图像素数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个实体属性String用于在表单中输入link_logo,我只想知道我可以在视图中写些什么来输入徽标.
I have a entity attribute String for input a link_logo in my form , i want just to know what can i write on the view for input the logo.
实体(代理商)的属性:
The Attribute on entity (agency):
@Column(name = "Logo")
private String link_logo;
我的保存方法也起作用了,bean也起作用了.我在展示柜中搜索,但没有结果.
My save method it worked and the bean too. I searched in the showcase but no result.
现在有我的查看代码:
<div class="ui-sm-12 ui-md-2 ui-lg-1">
<p:outputLabel value="Upload image:" for="img" />
</div>
<div class="ui-sm-12 ui-md-4 ui-lg-5" >
<p:graphicImage id="img" value="#{agenceFormBean.agence.link_logo}" style="width:100%" />
</div>
请问有什么解决方案吗?
any solutions please ?
推荐答案
您可以使用带有url的显示图像
You can use this the show image with url
<p:graphicImage id="img" value="#{yourView.link_logo}" style="width:100%" />
这篇关于使用链接在表单上插入图像素数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文