登录和XML Orbeon [英] Login and XML Orbeon

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

问题描述

我有两个新问题:

1)我配置orbeon表单以限制对用户的访问(使用tomcat)。这很好用。 但登录的页面是英文(我需要用西班牙语查看此页面)以及此样式页面很糟糕。那么,有可能配置这个页面吗?

1) I configure the orbeon Form to restrict the access to users (with tomcat). This works good. But the Page for login is in english (I need view this page in Spanish) and the style from this page is bad. So, it's possible configure this page?

我认为更新orbeon-form-runner.jar,解压缩并编辑login.xhtml并压缩到新的orbeon-form-runner.jar但我在启动orbeon时发现错误:

I thinked update the orbeon-form-runner.jar, descompress and edit the login.xhtml and compress to new orbeon-form-runner.jar but i recibe a error when i start the orbeon:

这是错误:

At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

2.-我尝试将数据从XML加载到dinamic数据下拉列表。

2.- I try load data from XML to dinamic data dropdown.

我按照orbeon文档中的示例进行操作,并执行此操作(加载状态)。

I followed the example in the documentation to orbeon, and work this action (Load States).

但是我需要在下拉列表中加载我的数据¿我从哪里开始?¿文件从XML加载到DropDown的结构是什么?

But i need load in the dropdown my data ¿Where do i start?¿What is the structure from file to load data from XML to DropDown?

PD:我使用的是Tomcat 7并且orbeon在Centos 6.5中运行

PD: I use Tomcat 7 and the orbeon run in Centos 6.5

推荐答案


  1. 登录页面只是一个例子,如果管理员希望使用此方法来验证用户身份,则应该对其进行自定义。如您所知,您可以从 jar 中提取该文件。然后,将其放回 jar 中,而不是将其放在 war 中>资源/应用/ FR / login.xhtml 。这样,您也可以更改文件而无需重新启动Tomcat。

  2. 您只需返回XML服务,在表单生成器中使用choices,label和value 用于从XML文档中提取数据的表达式。例如:选择为 / states / state ,标记为 @name ,值为 @abbreviation ,根据关于动态下拉菜单的页面

  1. The login page is very much just an example, and admins are expected to customize it, if they wish to use use this method for authenticating users. As you've noted, you can extract that file from a jar. Then, instead of putting it back in the jar, just place it inside the exploded war under resources/apps/fr/login.xhtml. This way, you can also change the file without having to restart Tomcat.
  2. You service just returns XML, and in Form Builder you use the "choices", "label", and "value" expressions to extract the data from the XML document. For instance: choices as /states/state, label as @name, and value as @abbreviation, per the example on the page about the dynamic dropdown.

这篇关于登录和XML Orbeon的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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