我想在单击按钮时刷新当前页面.
使用JavaScript,我有以下内容:
<button type="button" onClick="refreshPage()">Close</button>
<script>
function refreshPage() {
// What do I put here?
}
</script>
Run Code Online (Sandbox Code Playgroud)
什么代码看起来像刷新当前页面?
运行我的应用程序时收到以下错误:
<f:ajax> Unable to attach <f:ajax> to non-ClientBehaviorHolder parent
Run Code Online (Sandbox Code Playgroud)
我的JSF:
<h:commandButton id="submitschool" action="submit" value="Get templates" style="FONT-SIZE: medium;FONT-FAMILY: 'Rockwell';width : 128px; height : 24px;">
<ui:repeat value="#{person.theImage}" var="item">
<f:ajax event="change" render="image" />
<h:graphicImage id="image" value="#{item}"/>
</ui:repeat>
</h:commandButton>
Run Code Online (Sandbox Code Playgroud)
我正在尝试将数组中的元素返回到视图,其中"theImage"是person类中的数组.
我如何将下方的所有内容与最右边的内容对齐?
<div id="container">
<h:form id="authenticate">
<h:panelGrid columns="5" cellpadding="6">
<h:inputText id="email" value="" />
<p:watermark for="email" value="Email"/>
<h:inputSecret id="password" value="" />
<p:watermark for="password" value="Password"/>
<p:commandButton id="login" value="Login" align="right"/>
</h:panelGrid>
</h:form>
</div>
Run Code Online (Sandbox Code Playgroud) 我有一个.dll我想反编译以对代码进行一些改进.有哪些工具可以让我这样做?
我相信它是用VB编写的.
我最近在JasperServer上一直在使用JasperReports.在阅读他们的文档后,他们说可以通过直接URL访问有关JasperServer存储库的任何报告.通过URL(GET)中的几个名称值对(例如reportName,输出,用户名和密码),可以检索特定报告.
我的问题是,如何让人们通过直接URL访问报告而无需人们在地址栏中看到所有信息(尤其是用户名和密码)?这似乎非常不安全.
JasperSoft有一些聪明的人,所以我必须遗漏一些东西.
如何在不显示其他人擦除和填写的所有参数的情况下仍然使用直接URL?有些人可能会回答说只是将表单提交更改为POST,但我甚至不知道从哪里开始在JasperServer上更改该代码.
PS我将至少使用SSL处理网络安全.
任何解释都会非常有帮助.
java ×2
jsf ×2
css ×1
decompiler ×1
dll ×1
get ×1
jasperserver ×1
javascript ×1
jsf-2 ×1
ssl ×1