You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2010/01/28 23:52:00 UTC
svn commit: r904288 [1/13] - in /myfaces/tomahawk/trunk/examples/simple20:
./ src/ src/main/ src/main/java/ src/main/java/org/
src/main/java/org/apache/ src/main/java/org/apache/myfaces/
src/main/java/org/apache/myfaces/examples/ src/main/java/org/apac...
Author: lu4242
Date: Thu Jan 28 22:51:42 2010
New Revision: 904288
URL: http://svn.apache.org/viewvc?rev=904288&view=rev
Log:
create module for tomahawk20 examples
Added:
myfaces/tomahawk/trunk/examples/simple20/
myfaces/tomahawk/trunk/examples/simple20/pom.xml
myfaces/tomahawk/trunk/examples/simple20/src/
myfaces/tomahawk/trunk/examples/simple20/src/main/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/EnvironmentInfo.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/accessedbeans/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/accessedbeans/AccessTrackingVariableResolver.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/accessedbeans/AccessedBeans.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/AliasHolder.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/ComponentBindingHolderBase.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/FirstComponentBindingHolder.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/SecondComponentBindingHolder.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/calendarexample/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/calendarexample/CalendarBean.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/calendarexample/DateHolder.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/captcha/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/captcha/CaptchaBean.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/collapsiblepanel/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/collapsiblepanel/CollapsiblePanelBean.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/collapsiblepanel/CollapsiblePanelValueChangeListener.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/collapsiblepanel/Person.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/Cell.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/CellLineBean.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/Line.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/TestColspanBean.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/common/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/common/CarConfigurator.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/crosstable/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/crosstable/DataBean.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/displayValueOnly/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/displayValueOnly/DVOFace.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/example1/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/example1/CalcActionListener.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/example1/CalcForm.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/example1/UCaseActionListener.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/example1/UCaseForm.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/example1/ValidationController.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/example2/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/example2/QuotationController.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/example2/QuotationForm.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/forceid/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/forceid/ForceIdBean.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/forceid/User.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/inputhtmlexample/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/inputhtmlexample/EditorFace.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/jslistener/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/jslistener/JsListenerModel.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/listexample/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/listexample/ColumnHeader.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/listexample/DataScrollerActionListener.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/listexample/DataScrollerList.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/listexample/OpenDataList.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/listexample/PagedSortableCarList.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/listexample/SimpleAutoSortableCarList.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/listexample/SimpleCar.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/listexample/SimpleCity.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/listexample/SimpleCountry.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/listexample/SimpleCountryForm.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/listexample/SimpleCountryList.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/listexample/SimpleDemo.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/listexample/SimpleGroupByList.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/listexample/SimpleSortableCarList.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/listexample/SortableList.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/listexample/TreeItem.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/listexample/TreeTable.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/misc/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/misc/AutoScrollBean.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/misc/FileUploadForm.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/misc/GlobalOptions.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/misc/Language.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/misc/NavigationMenu.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/misc/OptionsController.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/misc/OptionsForm.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/misc/TabbedPaneBean.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/misc/TestCheckBox.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/misc/TestCheckBoxList.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/misc/TestRadioButton.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/picklist/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/picklist/PicklistBean.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/schedule/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/schedule/AddEntryHandler.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/schedule/BindingScheduleExampleHandler.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/schedule/RandomColorScheduleEntryRenderer.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/schedule/ScheduleExampleHandler.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/schedule/ScheduleSettings.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/selectOneRow/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/selectOneRow/SelectOneRowList.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/selectOneRow/SimpleCar.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/selectitems/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/selectitems/SelectItemsBean.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/subform/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/subform/SubFormBean.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/template/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/template/TemplateBacker.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/testexception/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/testexception/FakesServletException.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/testexception/TestException.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/toggle/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/toggle/ToggleBean.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/tree/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/tree/TreeBacker.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/tree1/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/tree1/Tree1Backer.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/util/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/util/ExampleMessagesResourceBundle.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/util/GuiUtil.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/util/LocalizedSelectItem.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/validate/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/validate/ValidateForm.java
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/webapp/
myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/webapp/SourceCodeServlet.java
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/META-INF/
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/META-INF/LICENSE.txt
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/META-INF/NOTICE.txt
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/META-INF/licenses/
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/META-INF/licenses/dojo-LICENSE.TXT
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/META-INF/licenses/i18n-LICENSE.txt
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/META-INF/licenses/jscookmenu-LICENSE.txt
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/META-INF/licenses/kupu-LICENSE.txt
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/META-INF/licenses/prototype-LICENSE.txt
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/META-INF/licenses/scriptaculous-LICENSE.txt
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/log4j.properties
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/org/
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/org/apache/
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/org/apache/myfaces/
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/org/apache/myfaces/examples/
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/org/apache/myfaces/examples/resource/
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/org/apache/myfaces/examples/resource/build.properties
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/org/apache/myfaces/examples/resource/example_messages.properties
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/org/apache/myfaces/examples/resource/example_messages_ca.properties
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/org/apache/myfaces/examples/resource/example_messages_de.properties
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/org/apache/myfaces/examples/resource/example_messages_en.properties
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/org/apache/myfaces/examples/resource/example_messages_es.properties
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/org/apache/myfaces/examples/resource/example_messages_fr.properties
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/org/apache/myfaces/examples/resource/example_messages_ja.properties
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/org/apache/myfaces/examples/resource/example_messages_pt_BR.properties
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/org/apache/myfaces/examples/resource/example_messages_ru.properties
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/org/apache/myfaces/examples/resource/example_messages_zh.properties
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/org/apache/myfaces/examples/template/
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/org/apache/myfaces/examples/template/foo.xml
myfaces/tomahawk/trunk/examples/simple20/src/main/resources/org/apache/myfaces/examples/template/foo.xsl
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/META-INF/
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/META-INF/templates/
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/META-INF/templates/template.xhtml
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/WEB-INF/
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/WEB-INF/.cvsignore
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/WEB-INF/examples-config.xml
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/WEB-INF/testSuite-config.xml
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/WEB-INF/web.xml
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/aliasBean.xhtml
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/autoscroll.xhtml
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/buffer.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/calendar.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/captcha.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/collapsiblePanel.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/colspan.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/contact.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/copyright.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/countryForm.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/countryTableForm.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/crossDataTable.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css/
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css/common.css
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css/jscookmenu/
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css/jscookmenu/ThemeOffice/
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css/jscookmenu/ThemeOffice/theme.css
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css/table.css
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dataList.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dataScroller.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dataTable.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/date.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/displayValueOnly.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/div.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dojo/
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dojo/debugconsole.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dojo/debugconsolejsfonly.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dojo/dojoimporttest.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dojo/textareatestjsfonly.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/error.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/features.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/fileupload.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/fileupload_showimg.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/filteredStylesheet.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/forceId.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/home.xhtml
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/htmlTag.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-ff.gif (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-first.gif (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-fr.gif (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-last.gif (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-next.gif (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-previous.gif (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/ascending-arrow.gif (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/blue-folder-closed.png (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/blue-folder-open.gif (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/component.gif (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/descending-arrow.gif (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/document.png (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/help.gif (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/line-last.gif (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/line-middle.gif (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/line-trunk.gif (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/logo.jpg (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/logo_mini.jpg (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/myfaces.gif (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/myfaces_powered.gif (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/myfaces_powered_over.gif (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/person.png (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/spacer.gif (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/yellow-folder-closed.png (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/yellow-folder-open.png (with props)
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/features.html
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/head.inc
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/mbean_source.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/navigation.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/page_footer.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/page_header.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/index.html
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inputHtml-multiple.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inputHtml.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inputTextDisabled.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inputTextHelp.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/jscookmenu.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/jslistener.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/masterDetail.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/newspaperTable.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/openDataTable.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/optDataTable.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/options.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/pagedSortTable.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/panelGroup.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/panelnavigation_1.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/panelnavigation_2.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/panelnavigation_3.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/panelnavigation_4.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/panelnavigation_5.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/panelstack.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/picklist.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/popup.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/resources/
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/resources/css/
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/resources/css/basic.css
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sample1.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sample2.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule1.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule2.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule3.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule4.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule5.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule_addentry.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule_editsettings.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectItems.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectItems_f.xhtml
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectOneCountry.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectOneLanguage.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectOneRow.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectbox.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/simpleGroupBy.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sortAutoTable.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sortAutoTable2.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sortTable.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/subForm.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/swapimage.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/tab2.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/tabbedPane.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/template/
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/template/home.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/template/index.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testExceptions.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/HowToAddATest.html
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/hCommandButton.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/hForm.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/hFormWithInputs.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/hFormWithSelects.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/hGraphicImage.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/hOutputLabel.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/hOutputLink.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/hOutputText.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/hPanelGrid.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/home.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/index.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/page_1.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/page_2.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/page_3.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/page_4.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/tOutputText.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/tPanelNavigation.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/tPanelNavigation2.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testSuite/template.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/testlist.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/toggleLink.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/tree.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/tree2.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/tree2ExpandAll.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/tree2HideRoot.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/tree2NiceWrap.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/tree2NoNav.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/treeTable.jsp
myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/validate.jsp
myfaces/tomahawk/trunk/examples/simple20/src/test/
myfaces/tomahawk/trunk/examples/simple20/src/test/selenium/
myfaces/tomahawk/trunk/examples/simple20/src/test/selenium/FormAddNumbersTest.html
myfaces/tomahawk/trunk/examples/simple20/src/test/selenium/PopupTest.html
myfaces/tomahawk/trunk/examples/simple20/src/test/selenium/TestSuite-FireFox.html
myfaces/tomahawk/trunk/examples/simple20/src/test/selenium/TestSuite.html
myfaces/tomahawk/trunk/examples/simple20/src/test/selenium/Tree2NoNavTest.html
myfaces/tomahawk/trunk/examples/simple20/src/test/selenium/hCommandButtonTest.html
myfaces/tomahawk/trunk/examples/simple20/src/test/selenium/hFormTest-FireFox.html
myfaces/tomahawk/trunk/examples/simple20/src/test/selenium/hFormTest.html
myfaces/tomahawk/trunk/examples/simple20/src/test/selenium/hFormWithInputsTest.html
myfaces/tomahawk/trunk/examples/simple20/src/test/selenium/hFormWithSelectsTest.html
myfaces/tomahawk/trunk/examples/simple20/src/test/selenium/hGraphicImageTest.html
myfaces/tomahawk/trunk/examples/simple20/src/test/selenium/hOutputLabelTest.html
myfaces/tomahawk/trunk/examples/simple20/src/test/selenium/hOutputLinkTest.html
myfaces/tomahawk/trunk/examples/simple20/src/test/selenium/hOutputTextTest.html
myfaces/tomahawk/trunk/examples/simple20/src/test/selenium/hPanelGridTest.html
myfaces/tomahawk/trunk/examples/simple20/src/test/selenium/tOutputTextTest.html
myfaces/tomahawk/trunk/examples/simple20/src/test/selenium/tPanelNavigation2Test.html
Added: myfaces/tomahawk/trunk/examples/simple20/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/pom.xml?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/pom.xml (added)
+++ myfaces/tomahawk/trunk/examples/simple20/pom.xml Thu Jan 28 22:51:42 2010
@@ -0,0 +1,205 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.myfaces.tomahawk</groupId>
+ <artifactId>tomahawk-project</artifactId>
+ <version>1.1.10-SNAPSHOT</version>
+ </parent>
+ <scm>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/examples/simple20</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/examples/simple20</developerConnection>
+ <url>http://svn.apache.org/viewcvs.cgi/myfaces/tomahawk/trunk/examples/simple20</url>
+ </scm>
+ <artifactId>myfaces-example-simple20</artifactId>
+ <packaging>war</packaging>
+ <name>Tomahawk Examples: Simple 2.0</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.myfaces.tomahawk</groupId>
+ <artifactId>tomahawk20</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>1.1.1</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.13</version>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+
+ <plugins>
+ <plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-source</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>maven-jetty-plugin</artifactId>
+ <version>6.1.22</version>
+ <configuration>
+ <scanIntervalSeconds>10</scanIntervalSeconds>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <profiles>
+ <!-- To run the examples using MyFaces 2.0: -Djsf=20 -->
+ <profile>
+ <id>myfaces-2.0</id>
+ <activation>
+ <property>
+ <name>!jsf</name>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.myfaces.core</groupId>
+ <artifactId>myfaces-api</artifactId>
+ <version>${myfaces-core20-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.myfaces.core</groupId>
+ <artifactId>myfaces-impl</artifactId>
+ <version>${myfaces-core20-version}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jstl</artifactId>
+ <version>1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>taglibs</groupId>
+ <artifactId>standard</artifactId>
+ <version>1.1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-el_1.0_spec</artifactId>
+ <version>1.0-M1</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <properties>
+ <jsf_implementation>MyFaces 2.0</jsf_implementation>
+ </properties>
+ </profile>
+
+ <!-- To use the examples using the Sun's JSF Reference Implementation 1.2 : -Djsf=ri12 -->
+ <profile>
+ <id>jsfri-2.0</id>
+ <activation>
+ <property>
+ <name>jsf</name>
+ <value>ri</value>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>2.0.2-b10</version>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <version>2.0.2-b10</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-el_1.0_spec</artifactId>
+ <version>1.0-M1</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <repositories>
+ <repository>
+ <id>java.net.2</id>
+ <name>java.net Maven 2 Repository</name>
+ <url>http://download.java.net/maven/2</url>
+ </repository>
+ </repositories>
+
+ <properties>
+ <jsf_implementation>JSF-RI 2.0</jsf_implementation>
+ </properties>
+ </profile>
+
+ <profile>
+ <id>generate-assembly</id>
+ <activation>
+ <property>
+ <name>performRelease</name>
+ <value>true</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>dependency-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack-source</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.apache.myfaces.tomahawk</groupId>
+ <artifactId>${artifactId}</artifactId>
+ <version>${project.version}</version>
+ <classifier>sources</classifier>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.apache.myfaces.tomahawk</groupId>
+ <artifactId>tomahawk</artifactId>
+ <version>${project.version}</version>
+ <classifier>sources</classifier>
+ </artifactItem>
+ </artifactItems>
+ <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/src</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/EnvironmentInfo.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/EnvironmentInfo.java?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/EnvironmentInfo.java (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/EnvironmentInfo.java Thu Jan 28 22:51:42 2010
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * provide access to some environmental infos
+ */
+public class EnvironmentInfo
+{
+ public String getRequestContextPath()
+ {
+ return FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();
+ }
+}
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/accessedbeans/AccessTrackingVariableResolver.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/accessedbeans/AccessTrackingVariableResolver.java?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/accessedbeans/AccessTrackingVariableResolver.java (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/accessedbeans/AccessTrackingVariableResolver.java Thu Jan 28 22:51:42 2010
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.accessedbeans;
+
+import javax.faces.context.FacesContext;
+import javax.faces.el.EvaluationException;
+import javax.faces.el.VariableResolver;
+import java.util.Map;
+
+/**
+ * @author Martin Marinschek (latest modification by $Author: matzew $)
+ * @version $Revision: 167718 $ $Date: 2005-03-24 17:47:11 +0100 (Do, 24 Mär 2005) $
+ */
+public class AccessTrackingVariableResolver extends VariableResolver
+{
+ private VariableResolver delegate;
+
+ /**Implementing delegate-pattern
+ *
+ * @param delegate Delegating to this instance.
+ */
+ public AccessTrackingVariableResolver(VariableResolver delegate)
+ {
+ this.delegate = delegate;
+ }
+
+ // METHODS
+ public Object resolveVariable(FacesContext facesContext, String name) throws EvaluationException
+ {
+ Object resolvedBean = delegate.resolveVariable(facesContext, name);
+
+ if(!(resolvedBean instanceof AccessedBeans) && resolvedBean!=null)
+ {
+ if(!resolvedBean.getClass().getName().startsWith("java.lang.") && !(resolvedBean instanceof Map))
+ {
+ ((AccessedBeans) facesContext.getApplication().
+ getVariableResolver().resolveVariable(facesContext,"accessedBeans")).addBean(name, resolvedBean);
+ }
+ }
+
+ return resolvedBean;
+ }
+}
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/accessedbeans/AccessedBeans.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/accessedbeans/AccessedBeans.java?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/accessedbeans/AccessedBeans.java (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/accessedbeans/AccessedBeans.java Thu Jan 28 22:51:42 2010
@@ -0,0 +1,88 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.accessedbeans;
+
+import java.util.List;
+import java.util.ArrayList;
+
+/**
+ * @author Martin Marinschek (latest modification by $Author: matzew $)
+ * @version $Revision: 167718 $ $Date: 2005-03-24 17:47:11 +0100 (Do, 24 Mär 2005) $
+ */
+public class AccessedBeans
+{
+ private List beanList;
+
+ public List getBeanList()
+ {
+ if(beanList == null)
+ beanList = new ArrayList();
+
+ return beanList;
+ }
+
+ public void setBeanList(List beanList)
+ {
+ this.beanList = beanList;
+ }
+
+ public void addBean(String name, Object resolvedBean)
+ {
+ List li = getBeanList();
+
+ for (int i = 0; i < li.size(); i++)
+ {
+ AccessedBean accessedBean = (AccessedBean) li.get(i);
+ if(accessedBean.getName().equals(name))
+ return;
+ }
+
+ AccessedBean bean = new AccessedBean();
+ bean.setName(name);
+ bean.setClazz(resolvedBean.getClass().getName());
+
+ li.add(bean);
+ }
+
+ public static class AccessedBean
+ {
+ private String name;
+ private String clazz;
+
+ public String getName()
+ {
+ return name;
+ }
+
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+ public String getClazz()
+ {
+ return clazz;
+ }
+
+ public void setClazz(String clazz)
+ {
+ this.clazz = clazz;
+ }
+ }
+}
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/AliasHolder.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/AliasHolder.java?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/AliasHolder.java (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/AliasHolder.java Thu Jan 28 22:51:42 2010
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.aliasexample;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+/**
+ * @author Sylvain Vieujot (latest modification by $Author: grantsmith $)
+ * @version $Revision: 472610 $ $Date: 2006-11-08 14:46:34 -0500 (mié, 08 nov 2006) $
+ */
+public class AliasHolder {
+ private static final Log log = LogFactory.getLog(AliasHolder.class);
+
+ private String name="default name";
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ log.debug("set name="+name);
+ this.name = name;
+ }
+
+ public String toUpperCase(){
+ name = name.toUpperCase();
+ log.debug("toUpperCase command executed");
+ return null;
+ }
+}
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/ComponentBindingHolderBase.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/ComponentBindingHolderBase.java?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/ComponentBindingHolderBase.java (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/ComponentBindingHolderBase.java Thu Jan 28 22:51:42 2010
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.aliasexample;
+
+import javax.faces.component.html.HtmlPanelGroup;
+import javax.faces.component.html.HtmlOutputText;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Martin Marinschek (latest modification by $Author: matzew $)
+ * @version $Revision: 167718 $ $Date: 2005-03-24 17:47:11 +0100 (Do, 24 Mär 2005) $
+ */
+public abstract class ComponentBindingHolderBase
+{
+ protected HtmlPanelGroup _panelGroup;
+
+ public HtmlPanelGroup getPanelGroup()
+ {
+ if(_panelGroup == null)
+ {
+ _panelGroup = (HtmlPanelGroup) createComponent(HtmlPanelGroup.COMPONENT_TYPE);
+ _panelGroup.getChildren().add(createOutputText());
+ }
+
+ return _panelGroup;
+ }
+
+ public void setPanelGroup(HtmlPanelGroup panelGroup)
+ {
+ _panelGroup = panelGroup;
+ _panelGroup.getChildren().add(createOutputText());
+ }
+
+ protected UIComponent createComponent(String type)
+ {
+ return FacesContext.getCurrentInstance().getApplication().createComponent(type);
+ }
+
+ private HtmlOutputText createOutputText()
+ {
+ HtmlOutputText text = (HtmlOutputText) createComponent(HtmlOutputText.COMPONENT_TYPE);
+ text.setValue(getText());
+ return text;
+ }
+
+ protected abstract String getText();
+
+}
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/FirstComponentBindingHolder.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/FirstComponentBindingHolder.java?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/FirstComponentBindingHolder.java (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/FirstComponentBindingHolder.java Thu Jan 28 22:51:42 2010
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.aliasexample;
+
+/**
+ * @author Martin Marinschek (latest modification by $Author: matzew $)
+ * @version $Revision: 167718 $ $Date: 2005-03-24 17:47:11 +0100 (Do, 24 Mär 2005) $
+ */
+public class FirstComponentBindingHolder extends ComponentBindingHolderBase
+{
+
+ protected String getText()
+ {
+ return "first";
+ }
+
+
+}
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/SecondComponentBindingHolder.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/SecondComponentBindingHolder.java?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/SecondComponentBindingHolder.java (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/aliasexample/SecondComponentBindingHolder.java Thu Jan 28 22:51:42 2010
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.aliasexample;
+
+/**
+ * @author Martin Marinschek (latest modification by $Author: matzew $)
+ * @version $Revision: 167718 $ $Date: 2005-03-24 17:47:11 +0100 (Do, 24 Mär 2005) $
+ */
+public class SecondComponentBindingHolder extends ComponentBindingHolderBase
+{
+
+ protected String getText()
+ {
+ return "second";
+ }
+}
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/calendarexample/CalendarBean.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/calendarexample/CalendarBean.java?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/calendarexample/CalendarBean.java (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/calendarexample/CalendarBean.java Thu Jan 28 22:51:42 2010
@@ -0,0 +1,117 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.calendarexample;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+/**
+ * @author Martin Marinschek
+ * @version $Revision: $ $Date: $
+ * <p/>
+ * $Log: $
+ */
+public class CalendarBean implements Serializable
+{
+ /**
+ * serial id for serialisation
+ */
+ private static final long serialVersionUID = 1L;
+
+ private static Log log = LogFactory.getLog(CalendarBean.class);
+
+ private List _dates;
+
+ private String _text;
+ private Date _firstDate;
+ private Date _secondDate;
+ private Date _thirdDate;
+
+ public List getDates()
+ {
+ if(_dates == null)
+ {
+ _dates = new ArrayList();
+
+ for(int i=0; i<3; i++)
+ _dates.add(new DateHolder());
+ }
+
+ return _dates;
+ }
+
+ public void setDates(List dates)
+ {
+ _dates = dates;
+ }
+
+ public String getText()
+ {
+ return _text;
+ }
+
+ public void setText(String text)
+ {
+ _text = text;
+ }
+
+ public Date getFirstDate()
+ {
+ return _firstDate;
+ }
+
+ public void setFirstDate(Date firstDate)
+ {
+ _firstDate = firstDate;
+ }
+
+ public Date getSecondDate()
+ {
+ return _secondDate;
+ }
+
+ public void setSecondDate(Date secondDate)
+ {
+ _secondDate = secondDate;
+ }
+
+ public Date getThirdDate()
+ {
+ return _thirdDate;
+ }
+
+ public void setThirdDate(Date thirdDate)
+ {
+ _thirdDate = thirdDate;
+ }
+
+ public String submitMethod()
+ {
+ log.info("submit method called");
+
+ return "submit";
+ }
+
+
+}
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/calendarexample/DateHolder.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/calendarexample/DateHolder.java?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/calendarexample/DateHolder.java (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/calendarexample/DateHolder.java Thu Jan 28 22:51:42 2010
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.calendarexample;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * DOCUMENT ME!
+ * @author Martin Marinschek (latest modification by $Author: grantsmith $)
+ * @version $Revision: 472610 $ $Date: 2006-11-08 14:46:34 -0500 (mié, 08 nov 2006) $
+ */
+public class DateHolder implements Serializable
+{
+ /**
+ * added serial
+ */
+ private static final long serialVersionUID = 1L;
+
+ private Date _date = null;
+
+ public Date getDate()
+ {
+ return _date;
+ }
+
+ public void setDate(Date date)
+ {
+ _date = date;
+ }
+}
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/captcha/CaptchaBean.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/captcha/CaptchaBean.java?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/captcha/CaptchaBean.java (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/captcha/CaptchaBean.java Thu Jan 28 22:51:42 2010
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.captcha;
+
+import javax.faces.context.FacesContext;
+import javax.servlet.http.HttpSession;
+
+public class CaptchaBean {
+
+ public final static String SESSION_KEY_NAME = "mySessionKeyName";
+ public final static String CORRECT = "Correct!";
+ public final static String WRONG = "Wrong";
+
+ String status;
+ String value;
+
+ public String check() {
+
+ // Compare the CAPTCHA value with the user entered value.
+ String captchaValue = (String)((HttpSession) FacesContext
+ .getCurrentInstance().getExternalContext().getSession(true))
+ .getAttribute(SESSION_KEY_NAME);
+
+ if(captchaValue.equalsIgnoreCase(value)) {
+ status = CORRECT;
+ } else {
+ status = WRONG;
+ }
+
+ return "";
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ public String getSessionKeyName() {
+ return SESSION_KEY_NAME;
+ }
+}
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/collapsiblepanel/CollapsiblePanelBean.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/collapsiblepanel/CollapsiblePanelBean.java?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/collapsiblepanel/CollapsiblePanelBean.java (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/collapsiblepanel/CollapsiblePanelBean.java Thu Jan 28 22:51:42 2010
@@ -0,0 +1,115 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.collapsiblepanel;
+
+import java.util.Date;
+import java.util.List;
+import java.util.ArrayList;
+import java.io.Serializable;
+
+/**
+ * @author Martin Marinschek
+ * @version $Revision: $ $Date: $
+ * <p/>
+ * $Log: $
+ */
+public class CollapsiblePanelBean implements Serializable
+{
+
+ /**
+ * serial id for serialisation
+ */
+ private static final long serialVersionUID = 1L;
+
+ private boolean _collapsed;
+
+ private String _firstName="Hugo";
+ private String _surName;
+ private Date _birthDate;
+ private List _persons;
+
+ public boolean isCollapsed()
+ {
+ return _collapsed;
+ }
+
+ public void setCollapsed(boolean collapsed)
+ {
+ _collapsed = collapsed;
+ }
+
+ public String getFirstName()
+ {
+ return _firstName;
+ }
+
+ public void setFirstName(String firstName)
+ {
+ _firstName = firstName;
+ }
+
+ public String getSurName()
+ {
+ return _surName;
+ }
+
+ public void setSurName(String surName)
+ {
+ _surName = surName;
+ }
+
+ public Date getBirthDate()
+ {
+ return _birthDate;
+ }
+
+ public void setBirthDate(Date birthDate)
+ {
+ _birthDate = birthDate;
+ }
+
+ public List getPersons()
+ {
+ if(_persons == null)
+ {
+ _persons = new ArrayList();
+
+ Person person = new Person();
+ person.setFirstName("Hugo");
+ person.setSurName("Portisch");
+ _persons.add(person);
+ person = new Person();
+ person.setFirstName("Anja");
+ person.setSurName("Kruse");
+ _persons.add(person);
+ person = new Person();
+ person.setFirstName("Max");
+ person.setSurName("Meier");
+ _persons.add(person);
+ }
+
+ return _persons;
+
+ }
+
+ public void setPersons(List persons)
+ {
+ _persons = persons;
+ }
+}
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/collapsiblepanel/CollapsiblePanelValueChangeListener.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/collapsiblepanel/CollapsiblePanelValueChangeListener.java?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/collapsiblepanel/CollapsiblePanelValueChangeListener.java (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/collapsiblepanel/CollapsiblePanelValueChangeListener.java Thu Jan 28 22:51:42 2010
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.collapsiblepanel;
+
+import javax.faces.event.AbortProcessingException;
+import javax.faces.event.ValueChangeEvent;
+import javax.faces.event.ValueChangeListener;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+public class CollapsiblePanelValueChangeListener implements ValueChangeListener
+{
+ private static Log log = LogFactory
+ .getLog(CollapsiblePanelValueChangeListener.class);
+
+ public void processValueChange(ValueChangeEvent event)
+ throws AbortProcessingException
+ {
+ log.info("Collapsible Panel from "+event.getOldValue()+" to "+ event.getNewValue());
+ }
+}
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/collapsiblepanel/Person.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/collapsiblepanel/Person.java?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/collapsiblepanel/Person.java (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/collapsiblepanel/Person.java Thu Jan 28 22:51:42 2010
@@ -0,0 +1,81 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.collapsiblepanel;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import java.io.Serializable;
+
+/**
+ * @author Martin Marinschek
+ * @version $Revision: $ $Date: $
+ * <p/>
+ * $Log: $
+ */
+public class Person implements Serializable
+{
+
+ /**
+ * serial id for serialisation
+ */
+ private static final long serialVersionUID = 1L;
+ private String _surName;
+ private String _firstName;
+ private boolean _collapsed;
+ private static Log log = LogFactory.getLog(Person.class);
+
+ public String getSurName()
+ {
+ return _surName;
+ }
+
+ public void setSurName(String surName)
+ {
+ _surName = surName;
+ }
+
+ public String getFirstName()
+ {
+ return _firstName;
+ }
+
+ public void setFirstName(String firstName)
+ {
+ _firstName = firstName;
+ }
+
+ public boolean isCollapsed()
+ {
+ return _collapsed;
+ }
+
+ public void setCollapsed(boolean collapsed)
+ {
+ _collapsed = collapsed;
+ }
+
+
+ public String test()
+ {
+ log.info("test called for " + Person.class + " with name: "+getFirstName());
+ return null;
+ }
+
+}
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/Cell.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/Cell.java?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/Cell.java (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/Cell.java Thu Jan 28 22:51:42 2010
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.colspanexample;
+
+public class Cell {
+ private String text;
+ public Cell(String text) {
+ super();
+ this.text = text;
+ }
+ public String getText() {
+ return text;
+ }
+ public void setText(String text) {
+ this.text = text;
+ }
+}
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/CellLineBean.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/CellLineBean.java?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/CellLineBean.java (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/CellLineBean.java Thu Jan 28 22:51:42 2010
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.colspanexample;
+
+import java.util.ArrayList;
+import javax.faces.model.DataModel;
+import javax.faces.model.ListDataModel;
+
+public class CellLineBean {
+ public DataModel getCells() {
+ ArrayList a = new ArrayList();
+ a.add(new Cell("1"));
+ a.add(new Cell("2"));
+ a.add(new Cell("3"));
+ a.add(new Cell("4"));
+ a.add(new Cell("5"));
+ DataModel testModel = new ListDataModel();
+ testModel.setWrappedData(a);
+ return testModel;
+ }
+}
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/Line.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/Line.java?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/Line.java (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/Line.java Thu Jan 28 22:51:42 2010
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.colspanexample;
+
+public class Line {
+ private String col1;
+ private String col2;
+ private String col3;
+ private String col4;
+ private String col5;
+ public Line(String col1, String col2, String col3, String col4, String col5) {
+ super();
+ this.col1 = col1;
+ this.col2 = col2;
+ this.col3 = col3;
+ this.col4 = col4;
+ this.col5 = col5;
+ }
+ public String getCol1() {
+ return col1;
+ }
+ public void setCol1(String col1) {
+ this.col1 = col1;
+ }
+ public String getCol2() {
+ return col2;
+ }
+ public void setCol2(String col2) {
+ this.col2 = col2;
+ }
+ public String getCol3() {
+ return col3;
+ }
+ public void setCol3(String col3) {
+ this.col3 = col3;
+ }
+ public String getCol4() {
+ return col4;
+ }
+ public void setCol4(String col4) {
+ this.col4 = col4;
+ }
+ public String getCol5() {
+ return col5;
+ }
+ public void setCol5(String col5) {
+ this.col5 = col5;
+ }
+}
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/TestColspanBean.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/TestColspanBean.java?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/TestColspanBean.java (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/java/org/apache/myfaces/examples/colspanexample/TestColspanBean.java Thu Jan 28 22:51:42 2010
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.colspanexample;
+
+import java.util.ArrayList;
+import javax.faces.model.DataModel;
+import javax.faces.model.ListDataModel;
+
+public class TestColspanBean {
+ public DataModel getLines() {
+ ArrayList a = new ArrayList();
+ a.add(new Line("1-1", "1-2", "1-3", "1-4", "1-5"));
+ a.add(new Line("2-1", "2-2", "2-3", "2-4", "2-5"));
+ a.add(new Line("3-1", "3-2", "3-3", "3-4", "3-5"));
+ a.add(new Line("4-1", "4-2", "4-3", "4-4", "4-5"));
+ DataModel testModel = new ListDataModel();
+ testModel.setWrappedData(a);
+ return testModel;
+ }
+
+ public DataModel getCellLines() {
+ ArrayList a = new ArrayList();
+ a.add(new CellLineBean());
+ a.add(new CellLineBean());
+ a.add(new CellLineBean());
+ a.add(new CellLineBean());
+ DataModel testModel = new ListDataModel();
+ testModel.setWrappedData(a);
+ return testModel;
+ }
+}