portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlest...@apache.org
Subject cvs commit: jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF faces-config.xml web.xml portlet.xml
Date Mon, 29 Nov 2004 21:12:31 GMT
dlestrat    2004/11/29 13:12:31

  Modified:    applications/security/src/webapp/WEB-INF web.xml portlet.xml
  Added:       applications/security/src/webapp/WEB-INF faces-config.xml
  Log:
  http://nagoya.apache.org/jira/browse/JS2-23#action_55991
  
  Revision  Changes    Path
  1.8       +104 -31   jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF/web.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- web.xml	18 Oct 2004 01:42:07 -0000	1.7
  +++ web.xml	29 Nov 2004 21:12:30 -0000	1.8
  @@ -17,35 +17,108 @@
   limitations under the License.
   -->
   <web-app>
  - <display-name>Security Portlets</display-name>
  - <description>Security Portlets</description>
  - <servlet>
  -  <servlet-name>action</servlet-name>
  -  <servlet-class>org.apache.portals.bridges.struts.PortletServlet</servlet-class>
  -  <init-param>
  -   <param-name>config</param-name>
  -   <param-value>/WEB-INF/struts-config.xml</param-value>
  -  </init-param>
  -  <load-on-startup>1</load-on-startup>
  - </servlet>
  - <servlet-mapping>
  -  <servlet-name>action</servlet-name>
  -  <url-pattern>*.do</url-pattern>
  - </servlet-mapping>
  - <taglib>
  -  <taglib-uri>c.tld</taglib-uri>
  -  <taglib-location>/WEB-INF/c.tld</taglib-location>
  - </taglib>
  - <taglib>
  -  <taglib-uri>fmt.tld</taglib-uri>
  -  <taglib-location>/WEB-INF/fmt.tld</taglib-location>
  - </taglib>
  - <taglib>
  -  <taglib-uri>sql.tld</taglib-uri>
  -  <taglib-location>/WEB-INF/sql.tld</taglib-location>
  - </taglib>
  - <taglib>
  -  <taglib-uri>x.tld</taglib-uri>
  -  <taglib-location>/WEB-INF/x.tld</taglib-location>
  - </taglib>
  +	<display-name>Security Portlets</display-name>
  +	<description>Security Portlets</description>
  +	
  +	<context-param>
  +    	<param-name>javax.faces.application.CONFIG_FILES</param-name>
  +    	<param-value>/WEB-INF/faces-config.xml</param-value>
  +  	</context-param>
  +   	<context-param>
  +        <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
  +        <param-value>true</param-value>
  +        <description>
  +            This parameter tells MyFaces if javascript code should be allowed in the
  +            rendered HTML output.
  +            If javascript is allowed, command_link anchors will have javascript code
  +            that submits the corresponding form.
  +            If javascript is not allowed, the state saving info and nested parameters
  +            will be added as url parameters.
  +            Default: "true"
  +        </description>
  +    </context-param>
  +    
  +    <context-param>
  +        <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
  +        <param-value>false</param-value>
  +        <description>
  +            This parameter tells MyFaces if javascript code should be allowed in the
  +            rendered HTML output.
  +            If javascript is allowed, command_link anchors will have javascript code
  +            that submits the corresponding form.
  +            If javascript is not allowed, the state saving info and nested parameters
  +            will be added as url parameters.
  +            Default: "false"
  +
  +            Setting this param to true should be combined with STATE_SAVING_METHOD "server"
for
  +            best results.
  +
  +            This is an EXPERIMENTAL feature. You also have to enable the detector filter/filter
mapping below to get
  +            JavaScript detection working.
  +        </description>
  +    </context-param>
  +
  +    <context-param>
  +        <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
  +        <param-value>true</param-value>
  +        <description>
  +            If true, rendered HTML code will be formatted, so that it is "human readable".
  +            i.e. additional line separators and whitespace will be written, that do not
  +            influence the HTML code.
  +            Default: "true"
  +        </description>
  +    </context-param>
  +      	<!-- Listener, that does all the startup work (configuration, init). -->
  +  	<listener>
  +    	<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
  +  	</listener>
  +  
  +  	<!-- 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>
  +  	
  +  	<!-- Struts Servlet -->
  +  	<servlet>
  +		<servlet-name>action</servlet-name>
  +		<servlet-class>org.apache.portals.bridges.struts.PortletServlet</servlet-class>
  +		<init-param>
  +			<param-name>config</param-name>
  +			<param-value>/WEB-INF/struts-config.xml</param-value>
  +		</init-param>
  +		<load-on-startup>1</load-on-startup>
  +	</servlet>
  +  	
  +  	<!-- extension mapping -->
  +  	<!-- Faces mapping -->
  +  	<servlet-mapping>
  +  		<servlet-name>Faces Servlet</servlet-name>
  +   		<url-pattern>*.jsf</url-pattern>
  +  	</servlet-mapping>	
  +  	
  +	<!-- Struts Mapping -->
  +	<servlet-mapping>
  +		<servlet-name>action</servlet-name>
  +		<url-pattern>*.do</url-pattern>
  +	</servlet-mapping>
  +
  +	<!-- Tag libraries -->
  +	<taglib>
  +		<taglib-uri>c.tld</taglib-uri>
  +		<taglib-location>/WEB-INF/c.tld</taglib-location>
  +	</taglib>
  +	<taglib>
  +		<taglib-uri>fmt.tld</taglib-uri>
  +		<taglib-location>/WEB-INF/fmt.tld</taglib-location>
  +	</taglib>
  +	<taglib>
  +		<taglib-uri>sql.tld</taglib-uri>
  +		<taglib-location>/WEB-INF/sql.tld</taglib-location>
  +	</taglib>
  +	<taglib>
  +		<taglib-uri>x.tld</taglib-uri>
  +		<taglib-location>/WEB-INF/x.tld</taglib-location>
  +	</taglib>
   </web-app>
  
  
  
  1.7       +29 -0     jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF/portlet.xml
  
  Index: portlet.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF/portlet.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- portlet.xml	18 Oct 2004 01:42:07 -0000	1.6
  +++ portlet.xml	29 Nov 2004 21:12:30 -0000	1.7
  @@ -58,6 +58,35 @@
   			<short-title>Add User Portlet</short-title>
       	</portlet-info>
     	</portlet>
  +  	<!-- *********************** -->
  +  	<!-- Role Management Portlet -->
  +  	<!-- *********************** -->
  +  	<portlet id="RoleMgtPortlet">
  +      <init-param>
  +        <description>This parameter sets the template used in view mode.</description>
  +        <name>ViewPage</name>
  +        <value>/WEB-INF/security/rolemgt/role-mgt.jsp</value>
  +      </init-param>   
  +      <portlet-name>RoleMgtPortlet</portlet-name>
  +      <display-name>Role Management</display-name>
  +      <description>Manage the portal roles.</description>
  +      <portlet-class>org.apache.jetspeed.portlets.security.rolemgt.RoleMgtPortlet</portlet-class>
  +      <expiration-cache>-1</expiration-cache>
  +      <supports>
  +        <mime-type>text/html</mime-type>
  +        <portlet-mode>VIEW</portlet-mode>
  +      </supports>
  +      <supported-locale>en</supported-locale>
  +      <resource-bundle>org.apache.jetspeed.portlets.security.resources.RoleMgtResources</resource-bundle>
  +      <portlet-info>
  +        <title>Role Management</title>
  +        <short-title>Role Management</short-title>
  +        <keywords>security,role</keywords>
  +      </portlet-info>
  +    </portlet>
  +    <!-- *********************** -->
  +  	<!-- Change Password Portlet -->
  +  	<!-- *********************** -->
       <portlet id="ChangePasswordPortlet">
         <init-param>
           <description>This parameter sets the template used in view mode.</description>
  
  
  
  1.1                  jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF/faces-config.xml
  
  Index: faces-config.xml
  ===================================================================
  <?xml version='1.0' encoding='UTF-8'?>
  <!--
  Copyright 2004 The Apache Software Foundation
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  
  -->
  
  <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
  
  <faces-config>
  
    <application>
      <locale-config>
        <default-locale>en</default-locale>
        <supported-locale>de</supported-locale>
        <supported-locale>fr</supported-locale>
        <supported-locale>es</supported-locale>
      </locale-config>
    </application>
    
    <!-- Managed bean for tree. -->
    <managed-bean>
      <managed-bean-name>roleTreeTable</managed-bean-name>
      <managed-bean-class>org.apache.jetspeed.portlets.security.rolemgt.RoleTreeTable</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    
    <!-- Managed bean for edit role panel stack. -->
    <managed-bean>
    	<managed-bean-name>stackState</managed-bean-name>
      <managed-bean-class>java.util.HashMap</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    
    <!-- Managed bean for tab panel state. -->
    <managed-bean>
      <managed-bean-name>roleMgtPanelTabState</managed-bean-name>
      <managed-bean-class>org.apache.jetspeed.portlets.security.rolemgt.PanelTabStateListener</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    
    <!-- Managed bean for role action. -->
    <managed-bean>
      <managed-bean-name>roleActionForm</managed-bean-name>
      <managed-bean-class>org.apache.jetspeed.portlets.security.rolemgt.RoleActionForm</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    
    <!-- Managed bean for available users. -->
    <managed-bean>
      <managed-bean-name>availableUsersList</managed-bean-name>
      <managed-bean-class>org.apache.jetspeed.portlets.security.rolemgt.AvailableUsersList</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    
    <!-- Managed bean for selected users. -->
    <managed-bean>
      <managed-bean-name>selectedUsersList</managed-bean-name>
      <managed-bean-class>org.apache.jetspeed.portlets.security.rolemgt.SelectedUsersList</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
  
  </faces-config>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message