小编Gre*_*ory的帖子

使用<p:commandLink>仅用于JS执行而不提交表单

如何<p:commandLink>不提交?仅适用于JS执行.因为<p:commandButton>我可以这样做:

<p:commandButton value="JS button" type="button" onclick="alert('clicked')"/>
Run Code Online (Sandbox Code Playgroud)

什么是模拟<p:commandLink>

jsf commandlink primefaces

7
推荐指数
1
解决办法
6476
查看次数

无法使用ibm-application-bnd.xml将角色映射到组

我正在尝试使用ibm-application-bnd.xml映射用户组.将它放入META-INF文件夹.在尝试访问安全页面时获取下一条消息:

[08.05.15 17:42:21:242 MSK] 00000084 WebCollaborat A   SECJ0129E: ... GET ? null:/loginmodule/date/, Authorization failed, Not granted any of the required roles: user-role
Run Code Online (Sandbox Code Playgroud)

当我尝试使用ibm控制台进行配置时,它可以工作.所有配置WAS都写入ibm-application-bnd.xmi而不是ibm-application-bnd.xml.

我错了什么?将Websphere AS 8.5.5与Java 1.6一起使用

IBM应用-bnd.xml:

<?xml version="1.0" encoding="UTF-8"?>
<application-bnd xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://websphere.ibm.com/dxml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-application-bnd_1_2.xsd"
      xmlns="http://websphere.ibm.com/xml/ns/javaee" version="1.2">
      <security-role name="user-role">
            <group name="user-group" />
      </security-role>
</application-bnd>
Run Code Online (Sandbox Code Playgroud)

web.xml中:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
      <session-config>
            <session-timeout>30</session-timeout>
      </session-config>
      <welcome-file-list>
            <welcome-file>index.html</welcome-file>
      </welcome-file-list>

      <security-constraint>
            <display-name>Constraint</display-name>
            <web-resource-collection>
                  <web-resource-name>secrets</web-resource-name>
                  <description />
                  <url-pattern>/date/*</url-pattern>
            </web-resource-collection>
            <auth-constraint>
                  <role-name>user-role</role-name>
            </auth-constraint>
      </security-constraint>

      <security-role>
            <role-name>user-role</role-name>
      </security-role>

      <servlet>
            <servlet-name>date</servlet-name>
            <servlet-class>ru.servlet.TimeServlet</servlet-class>
      </servlet>
      <servlet-mapping> …
Run Code Online (Sandbox Code Playgroud)

websphere jaas user-roles

6
推荐指数
1
解决办法
4046
查看次数

如何在鼠标移开时隐藏 primefaces 菜单栏

我需要p:menubar躲起来mouseout。我怎样才能得到这个?尝试过覆盖PrimeFaces.widget.Menubar.prototype方法,但总是有东西被破坏。

javascript primefaces

0
推荐指数
1
解决办法
1234
查看次数

标签 统计

primefaces ×2

commandlink ×1

jaas ×1

javascript ×1

jsf ×1

user-roles ×1

websphere ×1