[svn r346] WIP, with working x4o and simple ldap backend for listing end editing entries
This commit is contained in:
parent
5d64bde0bd
commit
f401b61a6c
60 changed files with 1756 additions and 585 deletions
31
www/WEB-INF/faces-config.xml
Normal file
31
www/WEB-INF/faces-config.xml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0"?>
|
||||
<faces-config
|
||||
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-facesconfig_1_2.xsd"
|
||||
version="1.2">
|
||||
|
||||
<component>
|
||||
<description><![CDATA[Vasc component]]></description>
|
||||
<display-name>Vasc</display-name>
|
||||
<component-type>vasc-jsf</component-type>
|
||||
<component-class>com.idcanet.vasc.frontends.web.jsf.VascUIComponent</component-class>
|
||||
|
||||
</component>
|
||||
|
||||
<!--
|
||||
|
||||
<component-extension>
|
||||
<renderer-type>com.idcanet.vasc.frontends.web.jsf.VascUIComponentRenderer</renderer-type>
|
||||
</component-extension>
|
||||
<render-kit>
|
||||
<description>Renderkit implementation for the Vasc component</description>
|
||||
<renderer>
|
||||
<component-family>vasc-jsf</component-family>
|
||||
<renderer-type>com.idcanet.vasc.frontends.web.jsf.VascUIComponentRenderer</renderer-type>
|
||||
<renderer-class>com.idcanet.vasc.frontends.web.jsf.VascUIComponentRenderer</renderer-class>
|
||||
</renderer>
|
||||
</render-kit>
|
||||
-->
|
||||
|
||||
</faces-config>
|
||||
27
www/WEB-INF/vasc-jsf.tld
Normal file
27
www/WEB-INF/vasc-jsf.tld
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<taglib 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-jsptaglibrary_2_1.xsd"
|
||||
version="2.1">
|
||||
<description><![CDATA[Vasc-JSF components]]></description>
|
||||
<tlib-version>1.0</tlib-version>
|
||||
<short-name>vasc</short-name>
|
||||
<uri>http://vasc.idcanet.com/jsf</uri>
|
||||
<tag>
|
||||
<description><![CDATA[The Vasc Renderer]]></description>
|
||||
<name>vasc</name>
|
||||
<tag-class>com.idcanet.vasc.frontends.web.jsf.VascUIComponentTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<attribute>
|
||||
<description><![CDATA[The jsf id]]></description>
|
||||
<name>id</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<description><![CDATA[Some attribute of vasc]]></description>
|
||||
<name>bar</name>
|
||||
<required>false</required>
|
||||
<deferred-value><type>java.lang.Object</type></deferred-value>
|
||||
</attribute>
|
||||
</tag>
|
||||
</taglib>
|
||||
81
www/WEB-INF/web.xml
Normal file
81
www/WEB-INF/web.xml
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
<?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">
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.jsp</welcome-file>
|
||||
</welcome-file-list>
|
||||
|
||||
<context-param>
|
||||
<param-name>facelets.SKIP_COMMENTS</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
|
||||
<context-param>
|
||||
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
|
||||
<param-value>server</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>com.sun.faces.validateXml</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>com.sun.faces.verifyObjects</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
|
||||
<param-value>.jsp</param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Facelets pages will use the .xhtml extension -->
|
||||
<context-param>
|
||||
<param-name>facelets.VIEW_MAPPINGS</param-name>
|
||||
<param-value>*.xhtml</param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Faces Servlet -->
|
||||
<servlet>
|
||||
<servlet-name>Faces Servlet</servlet-name>
|
||||
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
|
||||
<load-on-startup>1</load-on-startup>
|
||||
</servlet>
|
||||
|
||||
<!-- Faces Servlet Mapping -->
|
||||
<servlet-mapping>
|
||||
<servlet-name>Faces Servlet</servlet-name>
|
||||
<url-pattern>/faces/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Faces Servlet</servlet-name>
|
||||
<url-pattern>*.jsf</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
|
||||
<!--
|
||||
<security-constraint>
|
||||
This security constraint illustrates how JSP pages
|
||||
with JSF components can be protected from
|
||||
being accessed without going through the Faces Servlet.
|
||||
The security constraint ensures that the Faces Servlet will
|
||||
be used or the pages will not be processed.
|
||||
|
||||
<display-name>Restrict access to JSP pages</display-name>
|
||||
<web-resource-collection>
|
||||
<web-resource-name>
|
||||
Restrict access to JSP pages
|
||||
</web-resource-name>
|
||||
<url-pattern>/greeting.jsp</url-pattern>
|
||||
<url-pattern>/response.jsp</url-pattern>
|
||||
</web-resource-collection>
|
||||
<auth-constraint>
|
||||
<description>
|
||||
With no roles defined, no access granted
|
||||
</description>
|
||||
</auth-constraint>
|
||||
</security-constraint>
|
||||
-->
|
||||
|
||||
</web-app>
|
||||
Loading…
Add table
Add a link
Reference in a new issue