Login and XML Orbeon

扶醉桌前 提交于 2019-12-25 05:04:44

问题


I have two new questions:

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?

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:

this is the error:

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.- I try load data from XML to dinamic data dropdown.

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

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: I use Tomcat 7 and the orbeon run in Centos 6.5


回答1:


  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.


来源:https://stackoverflow.com/questions/43373311/login-and-xml-orbeon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!