You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sv...@apache.org on 2005/06/21 01:34:49 UTC
svn commit: r191589 - in /myfaces/trunk: conf/ doc/
src/components/org/apache/myfaces/custom/selectOneLanguage/ tlds/
webapps/simple/ webapps/simple/WEB-INF/
webapps/src/example/org/apache/myfaces/examples/misc/
Author: svieujot
Date: Mon Jun 20 16:34:48 2005
New Revision: 191589
URL: http://svn.apache.org/viewcvs?rev=191589&view=rev
Log:
New x:selectLanguage component.
Added:
myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/
myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguage.java (with props)
myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguage.xml (with props)
myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageRenderer.java (with props)
myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageTag.java (with props)
myfaces/trunk/webapps/simple/selectOneLanguage.jsp (with props)
myfaces/trunk/webapps/src/example/org/apache/myfaces/examples/misc/Language.java (with props)
Modified:
myfaces/trunk/conf/faces-config.xml
myfaces/trunk/doc/release-notes.txt
myfaces/trunk/tlds/myfaces_ext.tld
myfaces/trunk/webapps/simple/WEB-INF/examples-config.xml
myfaces/trunk/webapps/simple/home.jsp
Modified: myfaces/trunk/conf/faces-config.xml
URL: http://svn.apache.org/viewcvs/myfaces/trunk/conf/faces-config.xml?rev=191589&r1=191588&r2=191589&view=diff
==============================================================================
--- myfaces/trunk/conf/faces-config.xml (original)
+++ myfaces/trunk/conf/faces-config.xml Mon Jun 20 16:34:48 2005
@@ -323,6 +323,11 @@
</component>
<component>
+ <component-type>org.apache.myfaces.SelectOneLanguage</component-type>
+ <component-class>org.apache.myfaces.custom.selectOneLanguage.SelectOneLanguage</component-class>
+ </component>
+
+ <component>
<component-type>org.apache.myfaces.Stylesheet</component-type>
<component-class>org.apache.myfaces.custom.stylesheet.Stylesheet</component-class>
</component>
@@ -642,6 +647,12 @@
<component-family>javax.faces.SelectOne</component-family>
<renderer-type>org.apache.myfaces.SelectOneCountryRenderer</renderer-type>
<renderer-class>org.apache.myfaces.custom.selectOneCountry.SelectOneCountryRenderer</renderer-class>
+ </renderer>
+
+ <renderer>
+ <component-family>javax.faces.SelectOne</component-family>
+ <renderer-type>org.apache.myfaces.SelectOneLanguageRenderer</renderer-type>
+ <renderer-class>org.apache.myfaces.custom.selectOneLanguage.SelectOneLanguageRenderer</renderer-class>
</renderer>
<renderer>
Modified: myfaces/trunk/doc/release-notes.txt
URL: http://svn.apache.org/viewcvs/myfaces/trunk/doc/release-notes.txt?rev=191589&r1=191588&r2=191589&view=diff
==============================================================================
--- myfaces/trunk/doc/release-notes.txt (original)
+++ myfaces/trunk/doc/release-notes.txt Mon Jun 20 16:34:48 2005
@@ -8,7 +8,8 @@
* added aliasBeansScope tag to make configuration with multiple aliasBean easier to manage.
* added displayValueOnly functionality which renders input components as if they were output components when this attribute is set to true, works on most extended components.
* added forceId to many more of the extended components
-* added x:htmlTag component
+* new x:htmlTag component
+* new selectOneLanguage component
* closed MYFACES-13
* closed MYFACES-34
* closed MYFACES-84
Added: myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguage.java
URL: http://svn.apache.org/viewcvs/myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguage.java?rev=191589&view=auto
==============================================================================
--- myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguage.java (added)
+++ myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguage.java Mon Jun 20 16:34:48 2005
@@ -0,0 +1,124 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.custom.selectOneLanguage;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Locale;
+import java.util.TreeMap;
+
+import javax.faces.component.UISelectItem;
+import javax.faces.component.UIViewRoot;
+import javax.faces.context.FacesContext;
+import javax.faces.el.ValueBinding;
+import javax.faces.model.SelectItem;
+
+import org.apache.myfaces.component.html.ext.HtmlSelectOneMenu;
+
+/**
+ * @author Sylvain Vieujot (latest modification by $Author$)
+ * @version $Revision$ $Date: 2005-05-11 12:14:23 -0400 (Wed, 11 May 2005) $
+ */
+public class SelectOneLanguage extends HtmlSelectOneMenu {
+ public static final String COMPONENT_TYPE = "org.apache.myfaces.SelectOneLanguage";
+ private static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.SelectOneLanguageRenderer";
+
+ private Integer _maxLength = null;
+
+ public SelectOneLanguage() {
+ setRendererType(DEFAULT_RENDERER_TYPE);
+ }
+
+ public Integer getMaxLength() {
+ if (_maxLength != null) return _maxLength;
+ ValueBinding vb = getValueBinding("length");
+ return vb != null ? (Integer)vb.getValue(getFacesContext()) : null;
+ }
+ public void setMaxLength(Integer maxLength) {
+ _maxLength = maxLength;
+ }
+
+ public Object saveState(FacesContext context) {
+ Object values[] = new Object[2];
+ values[0] = super.saveState(context);
+ values[1] = _maxLength;
+ return values;
+ }
+
+ public void restoreState(FacesContext context, Object state) {
+ Object values[] = (Object[])state;
+ super.restoreState(context, values[0]);
+ _maxLength = (Integer)values[1];
+ }
+
+ // -------- Over ridden UIComponent methods -----------
+
+ public void encodeChildren(FacesContext context){
+ // noop
+ }
+
+ public int getChildCount(){
+ return Locale.getISOLanguages().length;
+ }
+
+ public List getChildren(){
+ String[] availableLanguages = Locale.getISOLanguages();
+
+ Locale currentLocale;
+
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ UIViewRoot viewRoot = facesContext.getViewRoot();
+ if( viewRoot != null )
+ currentLocale = viewRoot.getLocale();
+ else
+ currentLocale = facesContext.getApplication().getDefaultLocale();
+
+
+ TreeMap map = new TreeMap();
+ // TreeMap is sorted according to the keys' natural order
+
+ for(int i=0; i<availableLanguages.length; i++){
+ String languageCode = availableLanguages[i];
+ Locale tmp = new Locale(languageCode);
+ map.put(tmp.getDisplayLanguage(currentLocale), languageCode);
+ }
+
+ List languagesSelectItems = new ArrayList(availableLanguages.length);
+
+ int maxDescriptionLength = _maxLength==null ? Integer.MAX_VALUE : _maxLength.intValue();
+ if( maxDescriptionLength < 5 )
+ maxDescriptionLength = 5;
+
+ for(Iterator i = map.keySet().iterator(); i.hasNext(); ){
+ String languageName = (String) i.next();
+ String languageCode = (String) map.get( languageName );
+ String label;
+ if( languageName.length() <= maxDescriptionLength )
+ label = languageName;
+ else{
+ label = languageName.substring(0, maxDescriptionLength-3)+"...";
+ }
+
+ UISelectItem selectItem = new UISelectItem();
+ selectItem.setValue( new SelectItem(languageCode, label) );
+
+ languagesSelectItems.add( selectItem );
+ }
+
+ return languagesSelectItems;
+ }
+}
\ No newline at end of file
Propchange: myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguage.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguage.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguage.java
------------------------------------------------------------------------------
svn:keywords = "LastChangedDate LastChangedBy LastChangedRevision Author Id"
Propchange: myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguage.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguage.xml
URL: http://svn.apache.org/viewcvs/myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguage.xml?rev=191589&view=auto
==============================================================================
--- myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguage.xml (added)
+++ myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguage.xml Mon Jun 20 16:34:48 2005
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE component PUBLIC
+ "-//MyFaces//DTD MyFaces component def 1.0//EN"
+ "http://myfaces.apache.org/dtd/Component.dtd">
+<component>
+ <component-class>org.apache.myfaces.custom.selectOneLanguage.selectOneLanguage</component-class>
+ <base-class>org.apache.myfaces.component.html.ext.HtmlSelectOneMenu</base-class>
+ <component-type>org.apache.myfaces.SelectOneLanguage</component-type>
+ <component-family>javax.faces.SelectOne</component-family>
+ <renderer-type>org.apache.myfaces.SelectOneLanguage</renderer-type>
+ <field>
+ <name>length</name>
+ <type>java.lang.String</type>
+ </field>
+</component>
Propchange: myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguage.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguage.xml
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguage.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageRenderer.java
URL: http://svn.apache.org/viewcvs/myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageRenderer.java?rev=191589&view=auto
==============================================================================
--- myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageRenderer.java (added)
+++ myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageRenderer.java Mon Jun 20 16:34:48 2005
@@ -0,0 +1,25 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.custom.selectOneLanguage;
+
+import org.apache.myfaces.renderkit.html.ext.HtmlMenuRenderer;
+
+/**
+ * @author Sylvain Vieujot (latest modification by $Author$)
+ * @version $Revision$ $Date: 2005-05-11 12:14:23 -0400 (Wed, 11 May 2005) $
+ */
+public class SelectOneLanguageRenderer extends HtmlMenuRenderer {
+}
\ No newline at end of file
Propchange: myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageRenderer.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageRenderer.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageRenderer.java
------------------------------------------------------------------------------
svn:keywords = "LastChangedDate LastChangedBy LastChangedRevision Author Id"
Propchange: myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageRenderer.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageTag.java
URL: http://svn.apache.org/viewcvs/myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageTag.java?rev=191589&view=auto
==============================================================================
--- myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageTag.java (added)
+++ myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageTag.java Mon Jun 20 16:34:48 2005
@@ -0,0 +1,51 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.custom.selectOneLanguage;
+
+import javax.faces.component.UIComponent;
+
+import org.apache.myfaces.taglib.html.ext.HtmlSelectOneMenuTag;
+
+/**
+ * @author Sylvain Vieujot (latest modification by $Author$)
+ * @version $Revision$ $Date: 2005-05-11 12:14:23 -0400 (Wed, 11 May 2005) $
+ */
+public class SelectOneLanguageTag extends HtmlSelectOneMenuTag {
+ public String getComponentType() {
+ return SelectOneLanguage.COMPONENT_TYPE;
+ }
+
+ public String getRendererType() {
+ return "org.apache.myfaces.SelectOneLanguageRenderer";
+ }
+
+ private String maxLength;
+
+ public void release() {
+ super.release();
+ maxLength=null;
+ }
+
+ protected void setProperties(UIComponent component) {
+ super.setProperties(component);
+
+ setIntegerProperty(component, "maxLength", maxLength);
+ }
+
+ public void setMaxLength(String maxLength){
+ this.maxLength = maxLength;
+ }
+}
\ No newline at end of file
Propchange: myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageTag.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageTag.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageTag.java
------------------------------------------------------------------------------
svn:keywords = "LastChangedDate LastChangedBy LastChangedRevision Author Id"
Propchange: myfaces/trunk/src/components/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageTag.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified: myfaces/trunk/tlds/myfaces_ext.tld
URL: http://svn.apache.org/viewcvs/myfaces/trunk/tlds/myfaces_ext.tld?rev=191589&r1=191588&r2=191589&view=diff
==============================================================================
--- myfaces/trunk/tlds/myfaces_ext.tld (original)
+++ myfaces/trunk/tlds/myfaces_ext.tld Mon Jun 20 16:34:48 2005
@@ -1626,6 +1626,30 @@
&user_role_attributes;
&ext_forceId_attribute;
</tag>
+
+ <!-- selectOneLanguage -->
+ <tag>
+ <name>selectOneLanguage</name>
+ <tag-class>org.apache.myfaces.custom.selectOneLanguage.SelectOneLanguageTag</tag-class>
+ <body-content>JSP</body-content>
+ <description>
+ A localized list of languages choose box.
+ The value binds to the language ISO 639-2 code (lowercase).
+ The official codes list is available here :
+ http://www.loc.gov/standards/iso639-2/englangn.html
+ </description>
+ <attribute>
+ <name>maxLength</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>
+ Integer equals to the maximum number of characters in the language name.
+ </description>
+ </attribute>
+ &standard_select_one_menu_attributes;
+ &user_role_attributes;
+ &ext_forceId_attribute;
+ </tag>
<!-- stylesheet -->
Modified: myfaces/trunk/webapps/simple/WEB-INF/examples-config.xml
URL: http://svn.apache.org/viewcvs/myfaces/trunk/webapps/simple/WEB-INF/examples-config.xml?rev=191589&r1=191588&r2=191589&view=diff
==============================================================================
--- myfaces/trunk/webapps/simple/WEB-INF/examples-config.xml (original)
+++ myfaces/trunk/webapps/simple/WEB-INF/examples-config.xml Mon Jun 20 16:34:48 2005
@@ -87,6 +87,13 @@
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
+ <!-- Managed Beans for selectOneLanguage.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>language</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.misc.Language</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
<!-- Managed Beans for simpleList.jsp -->
Modified: myfaces/trunk/webapps/simple/home.jsp
URL: http://svn.apache.org/viewcvs/myfaces/trunk/webapps/simple/home.jsp?rev=191589&r1=191588&r2=191589&view=diff
==============================================================================
Binary files - no diff available.
Added: myfaces/trunk/webapps/simple/selectOneLanguage.jsp
URL: http://svn.apache.org/viewcvs/myfaces/trunk/webapps/simple/selectOneLanguage.jsp?rev=191589&view=auto
==============================================================================
--- myfaces/trunk/webapps/simple/selectOneLanguage.jsp (added)
+++ myfaces/trunk/webapps/simple/selectOneLanguage.jsp Mon Jun 20 16:34:48 2005
@@ -0,0 +1,73 @@
+<%@ page session="false" contentType="text/html;charset=utf-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
+<html>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<%@include file="inc/head.inc" %>
+
+<body>
+
+<f:view>
+
+ <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+ <x:panelLayout id="page" layout="#{globalOptions.pageLayout}"
+ styleClass="pageLayout"
+ headerClass="pageHeader"
+ navigationClass="pageNavigation"
+ bodyClass="pageBody"
+ footerClass="pageFooter" >
+
+ <f:facet name="header">
+ <f:subview id="header">
+ <jsp:include page="inc/page_header.jsp" />
+ </f:subview>
+ </f:facet>
+
+ <f:facet name="navigation">
+ <f:subview id="menu" >
+ <jsp:include page="inc/navigation.jsp" />
+ </f:subview>
+ </f:facet>
+
+ <f:facet name="body">
+ <h:panelGroup>
+ <h:form>
+ <x:selectOneLanguage value="#{language.code}" maxLength="25" onchange="this.form.submit();"/>
+ <f:verbatim><br/></f:verbatim>
+ <h:outputLabel for="languageCode" value="Code : "/>
+ <h:outputText id="languageCode" value="#{language.code}"/>
+ <f:verbatim><br/><br/></f:verbatim>
+ <h:commandButton value="Update"/>
+ </h:form>
+ </h:panelGroup>
+ </f:facet>
+
+ <%@include file="inc/page_footer.jsp" %>
+
+ </x:panelLayout>
+
+</f:view>
+
+</body>
+
+</html>
Propchange: myfaces/trunk/webapps/simple/selectOneLanguage.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trunk/webapps/simple/selectOneLanguage.jsp
------------------------------------------------------------------------------
svn:keywords = "LastChangedDate LastChangedBy LastChangedRevision Author Id"
Propchange: myfaces/trunk/webapps/simple/selectOneLanguage.jsp
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trunk/webapps/src/example/org/apache/myfaces/examples/misc/Language.java
URL: http://svn.apache.org/viewcvs/myfaces/trunk/webapps/src/example/org/apache/myfaces/examples/misc/Language.java?rev=191589&view=auto
==============================================================================
--- myfaces/trunk/webapps/src/example/org/apache/myfaces/examples/misc/Language.java (added)
+++ myfaces/trunk/webapps/src/example/org/apache/myfaces/examples/misc/Language.java Mon Jun 20 16:34:48 2005
@@ -0,0 +1,33 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.examples.misc;
+
+
+/**
+ * @author Sylvain Vieujot (latest modification by $Author$)
+ * @version $Revision$ $Date: 2005-03-24 12:47:11 -0400 (Thu, 24 Mar 2005) $
+ */
+public class Language
+{
+ private String code = null;
+
+ public String getCode() {
+ return code;
+ }
+ public void setCode(String code) {
+ this.code = code;
+ }
+}
Propchange: myfaces/trunk/webapps/src/example/org/apache/myfaces/examples/misc/Language.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trunk/webapps/src/example/org/apache/myfaces/examples/misc/Language.java
------------------------------------------------------------------------------
svn:keywords = "LastChangedDate LastChangedBy LastChangedRevision Author Id"
Propchange: myfaces/trunk/webapps/src/example/org/apache/myfaces/examples/misc/Language.java
------------------------------------------------------------------------------
svn:mime-type = text/plain