xpages 中的自定义登录表单? [英] Custom login forms in xpages?

查看:29
本文介绍了xpages 中的自定义登录表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 xPages 中创建自定义登录表单?我找到了这个http:///www.openntf.org/internal/home.nsf/project.xsp?action=openDocument&name=Xpages%20Dojo%20Login%20Custom%20Control

How do I do a custom login form in xPages? I found this http://www.openntf.org/internal/home.nsf/project.xsp?action=openDocument&name=Xpages%20Dojo%20Login%20Custom%20Control

在openntf中.也许只有我一个人,但似乎文档不是很清楚.看来您还需要使用旧的笔记表格?如果是这样,我不太清楚他的表单如何连接到 xpage.

in openntf. Perhaps it is just me but it seems that the documentation is not real clear. It seems you still need to use an old notes form? If so it is not real clear to me how his form connects to the xpage.

文档似乎没有显示应将 acl 设置为什么.例如,如果将 acl 设置为匿名访问权限,用户如何获得登录 xpage 的访问权限?xpages 似乎没有像 Notes 表单那样的公共访问属性.

The documentation does not appear to show what the acl should be set to. For example if the acl is set to No Access for anonymous, how does the user get access to the login xpage? There does not appear to be a Public Access property for xpages like there is on a Notes form.

有没有更好的例子?也许有一个工作示例?

Are there any better examples out there? Perhaps one with a working example?

推荐答案

基本上,获得自定义登录表单的唯一方法是使用 domcfg.nsf 和从 domcfg.nsf 指向的 FORM.这个表单也不能有任何 webqueryopen/webwquerysave 代理(好吧,它可以 - 但它们不会被触发).

Basically, the only way you can get a custom login form is through using domcfg.nsf and a FORM that you point to from domcfg.nsf. This form cannot have any webqueryopen/webwquerysave agents either (well, it can - but they do not get triggered).

然而,openntf 机制的作用是对服务器使用 Ajax 调用,该调用将由同一登录名满足 - 它有两个标准字段(用户名和密码).因此,XPage 登录表单可以与真实(本机)表单对话",而您无需将其视为用户.当然,这样 XPage 将不得不处理异常"(错误的用户/密码、缺乏访问权限等)

However, what the openntf mechanism does, is to use an Ajax call to the server that will be met by the same login - and it has two standard fields (username and password). Therefore, the XPages login-form can "talk" to the real (native) form without you seeing it as a user. Of course, in this way the XPage will have to handle the "exceptions" (wrong user/password, lack of access, etc.)

我希望这能给你一个更清晰的画面;-)

I hope this gives you a clearer picture ;-)

/约翰

这篇关于xpages 中的自定义登录表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆