[英]Show or Hide Jsf Richfaces modal panel from java bean
In JSF Richfaces
, I need to show or hide modalpanel
and GIF
image from bean according to certain functions. 在
JSF Richfaces
,我需要根据某些功能从bean显示或隐藏modalpanel
和GIF
图像。
For example, after I have entered all values and click submit means, processing GIF
image will be displayed. 例如,输入所有值并单击提交方式后,将显示正在处理的
GIF
图像。 At the time of completion it gets hidden by using 在完成时,它通过使用隐藏
onclick="#{rich:component('wait1')}.show()",
oncomplete="#{rich:component('wait1')}.hide()"
wait1
is an image file name I have used. wait1
是我使用的图像文件名。
At the time of submitting, I have been validating the required fields. 在提交时,我已经在验证必填字段。
If its empty, I want to hide the process image and show the modalpanel
to get value from user. 如果它为空,我想隐藏过程图像并显示模式
modalpanel
以从用户那里获取价值。
How to hide the processing image and display the modal panel to get input from user, from java
back bean? 如何隐藏处理图像并显示模式面板以从
java
back bean获得用户输入?
Thanks in advance 提前致谢
I am suggesting you a solution. 我建议您一个解决方案。 Create Modal panel with property "showWhenRendered" .
使用属性“ showWhenRendered”创建模态面板。 create modalpanel as
创建模态面板为
<rich:modalPanel id = "idd" autosized="true" width="500" height="50"
showWhenRendered = "#{bean.booloeanvalue}">
</rich:modalPanel>
In Bean, create boolean variable booloeanvalue. 在Bean中,创建布尔变量booloeanvalue。 If booloeanvalue is true, automatically modalpanel is rendered and came to display.
如果booloeanvalue为true,则会自动渲染并显示模态面板。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.