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 [6/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...
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/WEB-INF/examples-config.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/WEB-INF/examples-config.xml?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/WEB-INF/examples-config.xml (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/WEB-INF/examples-config.xml Thu Jan 28 22:51:42 2010
@@ -0,0 +1,910 @@
+<?xml version="1.0" encoding="utf-8"?>
+<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
+ version="2.0">
+
+ <application>
+ <variable-resolver>org.apache.myfaces.examples.accessedbeans.AccessTrackingVariableResolver</variable-resolver>
+ </application>
+
+
+ <managed-bean>
+ <managed-bean-name>environmentInfo</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.EnvironmentInfo</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Accessed beans on the last request -->
+ <managed-bean>
+ <managed-bean-name>accessedBeans</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.accessedbeans.AccessedBeans</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for sample1.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>calcForm</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.example1.CalcForm</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>validateForm</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.validate.ValidateForm</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+
+ <!-- managed bean for subForm-->
+
+ <managed-bean>
+ <managed-bean-name>subFormBean</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.subform.SubFormBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>ucaseForm</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.example1.UCaseForm</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>validationController</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.example1.ValidationController</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
+ </managed-bean>
+
+
+ <!-- Managed Beans for sample2.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>q_form</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.example2.QuotationForm</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for aliasBean.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>aliasTest1</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.aliasexample.AliasHolder</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>aliasTest2</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.aliasexample.AliasHolder</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>aliasTest3</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.aliasexample.AliasHolder</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>aliasTest4</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.aliasexample.AliasHolder</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>firstComponentBindingHolder</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.aliasexample.FirstComponentBindingHolder</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>secondComponentBindingHolder</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.aliasexample.SecondComponentBindingHolder</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for collapsiblePanel.jsp -->
+ <managed-bean>
+ <managed-bean-name>firstCollapsiblePanelBean</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.collapsiblepanel.CollapsiblePanelBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>secondCollapsiblePanelBean</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.collapsiblepanel.CollapsiblePanelBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>thirdCollapsiblePanelBean</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.collapsiblepanel.CollapsiblePanelBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+
+ <!-- Managed Beans for selectbox.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>carconf</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.common.CarConfigurator</managed-bean-class>
+ <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 -->
+
+ <managed-bean>
+ <managed-bean-name>countryList</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.listexample.SimpleCountryList</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for simpleGroupBy.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>simpleGroupBy</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.listexample.SimpleGroupByList</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <!-- JsListener on the last request -->
+ <managed-bean>
+ <managed-bean-name>jsListenerModel</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.jslistener.JsListenerModel</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+
+ <!-- Managed Beans for tree.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>treeTable</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.listexample.TreeTable</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>tree1Backer</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.tree1.Tree1Backer</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for tree2.jsp -->
+ <managed-bean>
+ <managed-bean-name>treeBacker</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.tree.TreeBacker</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for forceId.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>forceIdBean</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.forceid.ForceIdBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+
+ <!-- Managed Beans for simpleSortList.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>list</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.listexample.SimpleSortableCarList</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for simpleAutoSortList.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>autosortlist</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.listexample.SimpleAutoSortableCarList</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for calendar.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>calendarBean</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.calendarexample.CalendarBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for countryForm.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>countryForm</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.listexample.SimpleCountryForm</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>crossDataTable</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.crosstable.DataBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for toggleLink.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>toggleBean</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.toggle.ToggleBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for date.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>date1</managed-bean-name>
+ <managed-bean-class>java.util.Date</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>date2</managed-bean-name>
+ <managed-bean-class>java.util.Date</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>date3</managed-bean-name>
+ <managed-bean-class>java.util.Date</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for date.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>dvoFace</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.displayValueOnly.DVOFace</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for inputHtml.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>editor</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.inputhtmlexample.EditorFace</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>editor1</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.inputhtmlexample.EditorFace</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>editor2</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.inputhtmlexample.EditorFace</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for fileupload.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>fileUploadForm</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.misc.FileUploadForm</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+
+ <!-- Managed Beans for options.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>globalOptions</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.misc.GlobalOptions</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>pageLayout</property-name>
+ <value>classic</value>
+ </managed-property>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>optionsForm</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.misc.OptionsForm</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>optionsCtrl</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.misc.OptionsController</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for dataScroller.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>scrollerList</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.listexample.DataScrollerList</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for NavigationMenu -->
+
+ <managed-bean>
+ <managed-bean-name>navigationMenu</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.misc.NavigationMenu</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for TabbedPane example -->
+
+ <managed-bean>
+ <managed-bean-name>tabbedPaneBean</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.misc.TabbedPaneBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>testCheckBox</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.misc.TestCheckBox</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>testCheckList</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.misc.TestCheckBoxList</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>testRadioButton</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.misc.TestRadioButton</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for panelstack example -->
+
+ <managed-bean>
+ <managed-bean-name>stackState</managed-bean-name>
+ <managed-bean-class>java.util.HashMap</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for pagedSortTable.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>pagedSort</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.listexample.PagedSortableCarList</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for openDataTable.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>openDataList</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.listexample.OpenDataList</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <!-- test custom error page -->
+ <managed-bean>
+ <managed-bean-name>testException</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.testexception.TestException</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+
+ <!-- managed beans for schedule examples -->
+ <managed-bean>
+ <managed-bean-name>today</managed-bean-name>
+ <managed-bean-class>java.util.Date</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed bean for the selectItems component -->
+ <managed-bean>
+ <managed-bean-name>selectItemsBean</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.selectitems.SelectItemsBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>scheduleModel1</managed-bean-name>
+ <managed-bean-class>
+ org.apache.myfaces.custom.schedule.model.SimpleScheduleModel
+ </managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>mode</property-name>
+ <value>1</value>
+ </managed-property>
+ <managed-property>
+ <property-name>selectedDate</property-name>
+ <value>#{today}</value>
+ </managed-property>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>scheduleHandler1</managed-bean-name>
+ <managed-bean-class>
+ org.apache.myfaces.examples.schedule.ScheduleExampleHandler
+ </managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>model</property-name>
+ <value>#{scheduleModel1}</value>
+ </managed-property>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>addEntryHandler</managed-bean-name>
+ <managed-bean-class>
+ org.apache.myfaces.examples.schedule.AddEntryHandler
+ </managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>model</property-name>
+ <value>#{scheduleModel1}</value>
+ </managed-property>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>scheduleModel2</managed-bean-name>
+ <managed-bean-class>
+ org.apache.myfaces.custom.schedule.model.SimpleScheduleModel
+ </managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>mode</property-name>
+ <value>3</value>
+ </managed-property>
+ <managed-property>
+ <property-name>selectedDate</property-name>
+ <value>#{today}</value>
+ </managed-property>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>scheduleHandler2</managed-bean-name>
+ <managed-bean-class>
+ org.apache.myfaces.examples.schedule.ScheduleExampleHandler
+ </managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>model</property-name>
+ <value>#{scheduleModel2}</value>
+ </managed-property>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>bindingScheduleHandler</managed-bean-name>
+ <managed-bean-class>
+ org.apache.myfaces.examples.schedule.BindingScheduleExampleHandler
+ </managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>model</property-name>
+ <value>#{scheduleModel2}</value>
+ </managed-property>
+ </managed-bean>
+
+
+ <managed-bean>
+ <managed-bean-name>scheduleSettings2</managed-bean-name>
+ <managed-bean-class>
+ org.apache.myfaces.examples.schedule.ScheduleSettings
+ </managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>model</property-name>
+ <value>#{scheduleModel2}</value>
+ </managed-property>
+ <managed-property>
+ <property-name>visibleStartHour</property-name>
+ <value>8</value>
+ </managed-property>
+ <managed-property>
+ <property-name>visibleEndHour</property-name>
+ <value>18</value>
+ </managed-property>
+ <managed-property>
+ <property-name>workingStartHour</property-name>
+ <value>9</value>
+ </managed-property>
+ <managed-property>
+ <property-name>workingEndHour</property-name>
+ <value>17</value>
+ </managed-property>
+ <managed-property>
+ <property-name>tooltip</property-name>
+ <value>true</value>
+ </managed-property>
+ <managed-property>
+ <property-name>readonly</property-name>
+ <value>false</value>
+ </managed-property>
+ <managed-property>
+ <property-name>theme</property-name>
+ <value>default</value>
+ </managed-property>
+ <managed-property>
+ <property-name>headerDateFormat</property-name>
+ <value>yyyy-MM-dd</value>
+ </managed-property>
+ <managed-property>
+ <property-name>compactWeekRowHeight</property-name>
+ <value>200</value>
+ </managed-property>
+ <managed-property>
+ <property-name>compactMonthRowHeight</property-name>
+ <value>100</value>
+ </managed-property>
+ <managed-property>
+ <property-name>detailedRowHeight</property-name>
+ <value>22</value>
+ </managed-property>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>scheduleThemeChoices</managed-bean-name>
+ <managed-bean-class>java.util.TreeMap</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
+ <map-entries>
+ <map-entry>
+ <key>default</key>
+ <value>default</value>
+ </map-entry>
+ <map-entry>
+ <key>evolution</key>
+ <value>evolution</value>
+ </map-entry>
+ <map-entry>
+ <key>outlookxp</key>
+ <value>outlookxp</value>
+ </map-entry>
+ </map-entries>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>randomColorEntryRenderer</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.schedule.RandomColorScheduleEntryRenderer</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for calendar.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>autoScrollBean</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.misc.AutoScrollBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Managed Beans for colspan.jsp -->
+
+ <managed-bean>
+ <managed-bean-name>testColspanBean</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.colspanexample.TestColspanBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <!-- managed bean for captcha -->
+ <managed-bean>
+ <managed-bean-name>captchaBean</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.captcha.CaptchaBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <!-- XMLTemplate -->
+ <managed-bean>
+ <managed-bean-name>templateBacker</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.template.TemplateBacker</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+
+ <!-- Managed bean for the selectManyPicklist component -->
+ <managed-bean>
+ <managed-bean-name>picklistBean</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.picklist.PicklistBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <!-- managed bean for singleRowSelectList-->
+
+ <managed-bean>
+ <managed-bean-name>selectOneRowList</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.selectOneRow.SelectOneRowList</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+
+ <!-- NAVIGATION RULES -->
+
+ <navigation-rule>
+ <navigation-case>
+ <from-outcome>go_home</from-outcome>
+ <to-view-id>/home.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+
+
+ <navigation-rule>
+ <description>
+ Navigation rules for navigation component.
+ </description>
+ <from-view-id>*</from-view-id>
+
+ <navigation-case>
+ <from-outcome>go_sample1</from-outcome>
+ <to-view-id>/sample1.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_sample2</from-outcome>
+ <to-view-id>/sample2.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_aliasBean</from-outcome>
+ <to-view-id>/aliasBean.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_buffer</from-outcome>
+ <to-view-id>/buffer.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_dataTable</from-outcome>
+ <to-view-id>/dataTable.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_sortTable</from-outcome>
+ <to-view-id>/sortTable.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_selectbox</from-outcome>
+ <to-view-id>/selectbox.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_fileupload</from-outcome>
+ <to-view-id>/fileupload.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_tabbedPane</from-outcome>
+ <to-view-id>/tabbedPane.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_calendar</from-outcome>
+ <to-view-id>/calendar.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_popup</from-outcome>
+ <to-view-id>/popup.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_jslistener</from-outcome>
+ <to-view-id>/jslistener.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_date</from-outcome>
+ <to-view-id>/date.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_dataList</from-outcome>
+ <to-view-id>/dataList.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_tree</from-outcome>
+ <to-view-id>/tree.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_tree2</from-outcome>
+ <to-view-id>/tree2.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_treeTable</from-outcome>
+ <to-view-id>/treeTable.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_features</from-outcome>
+ <to-view-id>/features.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_options</from-outcome>
+ <to-view-id>/options.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_contact</from-outcome>
+ <to-view-id>/contact.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_copyright</from-outcome>
+ <to-view-id>/copyright.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_validate</from-outcome>
+ <to-view-id>/validate.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_datascroller</from-outcome>
+ <to-view-id>/dataScroller.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_panelstack</from-outcome>
+ <to-view-id>/panelstack.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_css</from-outcome>
+ <to-view-id>/css.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_newspaperTable</from-outcome>
+ <to-view-id>/newspaperTable.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_forceId</from-outcome>
+ <to-view-id>/forceId.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_swapimage</from-outcome>
+ <to-view-id>/swapimage.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_selectOneCountry</from-outcome>
+ <to-view-id>/selectOneCountry.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_panelnavigation_1</from-outcome>
+ <to-view-id>/panelnavigation_1.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_panelnavigation_2</from-outcome>
+ <to-view-id>/panelnavigation_2.jsp</to-view-id>
+ </navigation-case>
+
+ <navigation-case>
+ <from-outcome>go_panelnavigation_3</from-outcome>
+ <to-view-id>/panelnavigation_3.jsp</to-view-id>
+ </navigation-case>
+
+
+
+ </navigation-rule>
+
+ <navigation-rule>
+ <from-view-id>/sample1.jsp</from-view-id>
+ <navigation-case>
+ <from-outcome>jump_home</from-outcome>
+ <to-view-id>/home.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+
+ <navigation-rule>
+ <from-view-id>/validate.jsp</from-view-id>
+ <navigation-case>
+ <from-outcome>valid</from-outcome>
+ <to-view-id>/home.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+
+ <navigation-rule>
+ <navigation-case>
+ <from-outcome>go_country</from-outcome>
+ <to-view-id>/countryForm.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+
+ <navigation-rule>
+ <!-- from-view-id>/dataTable.jsp</from-view-id -->
+ <navigation-case>
+ <from-outcome>go_edit_table</from-outcome>
+ <to-view-id>/countryTableForm.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+
+ <navigation-rule>
+ <from-view-id>/countryTableForm.jsp</from-view-id>
+ <navigation-case>
+ <from-outcome>go_back</from-outcome>
+ <to-view-id>/masterDetail.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+
+ <navigation-rule>
+ <from-view-id>/countryForm.jsp</from-view-id>
+ <navigation-case>
+ <from-outcome>cancel</from-outcome>
+ <to-view-id>/masterDetail.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>ok_next</from-outcome>
+ <to-view-id>/masterDetail.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+
+ <!-- navigational rules for the schedule examples -->
+ <navigation-rule>
+ <from-view-id>/schedule2.jsp</from-view-id>
+ <navigation-case>
+ <from-outcome>add_entry</from-outcome>
+ <to-view-id>/schedule_addentry.jsp</to-view-id>
+ <redirect />
+ </navigation-case>
+ </navigation-rule>
+
+ <navigation-rule>
+ <from-view-id>/schedule_addentry.jsp</from-view-id>
+ <navigation-case>
+ <from-outcome>success</from-outcome>
+ <to-view-id>/schedule2.jsp</to-view-id>
+ <redirect />
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>cancel</from-outcome>
+ <to-view-id>/schedule2.jsp</to-view-id>
+ <redirect />
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>failure</from-outcome>
+ <to-view-id>/schedule_addentry.jsp</to-view-id>
+ <redirect />
+ </navigation-case>
+ </navigation-rule>
+
+ <navigation-rule>
+ <from-view-id>/schedule3.jsp</from-view-id>
+ <navigation-case>
+ <from-outcome>edit_settings</from-outcome>
+ <to-view-id>/schedule_editsettings.jsp</to-view-id>
+ <redirect />
+ </navigation-case>
+ </navigation-rule>
+
+ <navigation-rule>
+ <from-view-id>/schedule_editsettings.jsp</from-view-id>
+ <navigation-case>
+ <from-outcome>success</from-outcome>
+ <to-view-id>/schedule3.jsp</to-view-id>
+ <redirect />
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>cancel</from-outcome>
+ <to-view-id>/schedule3.jsp</to-view-id>
+ <redirect />
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>failure</from-outcome>
+ <to-view-id>/schedule_editsettings.jsp</to-view-id>
+ <redirect />
+ </navigation-case>
+ </navigation-rule>
+
+</faces-config>
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/WEB-INF/testSuite-config.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/WEB-INF/testSuite-config.xml?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/WEB-INF/testSuite-config.xml (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/WEB-INF/testSuite-config.xml Thu Jan 28 22:51:42 2010
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="utf-8"?>
+<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
+ version="2.0">
+
+ <navigation-rule>
+ <from-view-id>/testSuite/*</from-view-id>
+ <navigation-case>
+ <from-outcome>home</from-outcome>
+ <to-view-id>/testSuite/home.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>hCommandButton</from-outcome>
+ <to-view-id>/testSuite/hCommandButton.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>hForm</from-outcome>
+ <to-view-id>/testSuite/hForm.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>hFormWithInputs</from-outcome>
+ <to-view-id>/testSuite/hFormWithInputs.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>hFormWithSelects</from-outcome>
+ <to-view-id>/testSuite/hFormWithSelects.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>hGraphicImage</from-outcome>
+ <to-view-id>/testSuite/hGraphicImage.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>hOutputLabel</from-outcome>
+ <to-view-id>/testSuite/hOutputLabel.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>hOutputLink</from-outcome>
+ <to-view-id>/testSuite/hOutputLink.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>hOutputText</from-outcome>
+ <to-view-id>/testSuite/hOutputText.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>hPanelGrid</from-outcome>
+ <to-view-id>/testSuite/hPanelGrid.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>page_1</from-outcome>
+ <to-view-id>/testSuite/page_1.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>page_2</from-outcome>
+ <to-view-id>/testSuite/page_2.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>page_3</from-outcome>
+ <to-view-id>/testSuite/page_3.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>page_4</from-outcome>
+ <to-view-id>/testSuite/page_4.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>tOutputText</from-outcome>
+ <to-view-id>/testSuite/tOutputText.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>tPanelNavigation</from-outcome>
+ <to-view-id>/testSuite/tPanelNavigation.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>tPanelNavigation2</from-outcome>
+ <to-view-id>/testSuite/tPanelNavigation2.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+</faces-config>
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/WEB-INF/web.xml?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/WEB-INF/web.xml (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/WEB-INF/web.xml Thu Jan 28 22:51:42 2010
@@ -0,0 +1,201 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
+ <description>debug web.xml</description>
+ <context-param>
+ <description>Comma separated list of URIs of (additional) faces config files.
+ (e.g. /WEB-INF/my-config.xml)
+ See JSF 1.0 PRD2, 10.3.2
+ Attention: You do not need to put /WEB-INF/faces-config.xml in here.
+ </description>
+ <param-name>javax.faces.CONFIG_FILES</param-name>
+ <param-value>/WEB-INF/examples-config.xml,/WEB-INF/testSuite-config.xml</param-value>
+ </context-param>
+ <context-param>
+ <description>State saving method: "client" or "server" (= default)
+ See JSF Specification 2.5.3</description>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>client</param-value>
+ </context-param>
+ <context-param>
+ <description>Only applicable if state saving method is "server" (= default).
+ Defines the amount (default = 20) of the latest views are stored in session.</description>
+ <param-name>org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION</param-name>
+ <param-value>20</param-value>
+ </context-param>
+ <context-param>
+ <description>Only applicable if state saving method is "server" (= default).
+ If true (default) the state will be serialized to a byte stream before it
+ is written to the session.
+ If false the state will not be serialized to a byte stream.</description>
+ <param-name>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <description>Only applicable if state saving method is "server" (= default) and if
+ org.apache.myfaces.SERIALIZE_STATE_IN_SESSION is true (= default)
+ If true (default) the serialized state will be compressed before it
+ is written to the session. If false the state will not be compressed.</description>
+ <param-name>org.apache.myfaces.COMPRESS_STATE_IN_SESSION</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <description>This parameter tells MyFaces if javascript code should be allowed in the
+ rendered HTML output.
+ If javascript is allowed, command_link anchors will have javascript code
+ that submits the corresponding form.
+ If javascript is not allowed, the state saving info and nested parameters
+ will be added as url parameters.
+ Default: "true"</description>
+ <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
+ <param-value>false</param-value>
+ </context-param>
+ <context-param>
+ <description>If true, rendered HTML code will be formatted, so that it is "human readable".
+ i.e. additional line separators and whitespace will be written, that do not
+ influence the HTML code.
+ Default: "true"</description>
+ <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <description>If true, a javascript function will be rendered that is able to restore the
+ former vertical scroll on every request. Convenient feature if you have pages
+ with long lists and you do not want the browser page to always jump to the top
+ if you trigger a link or button action that stays on the same page.
+ Default: "false"</description>
+ <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+ <context-param>
+ <description>
+ Validate managed beans, navigation rules and ensure that forms are not nested.
+ </description>
+ <param-name>org.apache.myfaces.VALIDATE</param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+ <context-param>
+ <description>A class implementing the
+ org.apache.myfaces.shared.renderkit.html.util.AddResource
+ interface. It is responsible to
+ place scripts and css on the right position in your HTML document.
+ Default: "org.apache.myfaces.shared.renderkit.html.util.DefaultAddResource"
+ Follow the description on the MyFaces-Wiki-Performance page to enable
+ StreamingAddResource instead of DefaultAddResource if you want to
+ gain performance.
+ </description>
+ <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
+ <param-value>org.apache.myfaces.renderkit.html.util.DefaultAddResource</param-value>
+ <!--param-value>org.apache.myfaces.renderkit.html.util.NonBufferingAddResource</param-value-->
+ <!--param-value>org.apache.myfaces.component.html.util.StreamingAddResource</param-value-->
+ </context-param>
+
+ <context-param>
+ <description>
+ A very common problem in configuring MyFaces-web-applications
+ is that the Extensions-Filter is not configured at all
+ or improperly configured. This parameter will check for a properly
+ configured Extensions-Filter if it is needed by the web-app.
+ In most cases this check will work just fine, there might be cases
+ where an internal forward will bypass the Extensions-Filter and the check
+ will not work. If this is the case, you can disable the check by setting
+ this parameter to false.
+ </description>
+ <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+ <context-param>
+ <description>
+ Change the url-pattern from the ExtensionsFilter
+ Default is "/faces/myFacesExtensionResource"
+ Note: The filter-mapping for ExtensionsFilter, the url-pattern is
+ this value + "/*", else there comes a exception
+ </description>
+ <param-name>org.apache.myfaces.RESOURCE_VIRTUAL_PATH</param-name>
+ <param-value>/faces/extensionResource</param-value>
+ </context-param>
+
+ <context-param>
+ <description>
+ This parameter enables partial state saving.
+ </description>
+ <param-name>javax.faces.PARTIAL_STATE_SAVING_METHOD</param-name>
+ <param-value>false</param-value>
+ </context-param>
+
+ <context-param>
+ <description>
+ If true every time a page is rendered, the corresponding JSP is dispatched also.
+ This is very usefull if Scriptlets are used inside the JSP.
+ </description>
+ <param-name>javax.faces.PARTIAL_STATE_SAVING_DISPATCH_EVERY_TIME</param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+
+ <filter>
+ <filter-name>extensionsFilter</filter-name>
+ <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
+ <init-param>
+ <description>Set the size limit for uploaded files.
+ Format: 10 - 10 bytes
+ 10k - 10 KB
+ 10m - 10 MB
+ 1g - 1 GB</description>
+ <param-name>uploadMaxFileSize</param-name>
+ <param-value>100m</param-value>
+ </init-param>
+ <init-param>
+ <description>Set the threshold size - files
+ below this limit are stored in memory, files above
+ this limit are stored on disk.
+
+ Format: 10 - 10 bytes
+ 10k - 10 KB
+ 10m - 10 MB
+ 1g - 1 GB</description>
+ <param-name>uploadThresholdSize</param-name>
+ <param-value>100k</param-value>
+ </init-param>
+ </filter>
+ <filter-mapping>
+ <filter-name>extensionsFilter</filter-name>
+ <url-pattern>*.jsf</url-pattern>
+ </filter-mapping>
+ <filter-mapping>
+ <filter-name>extensionsFilter</filter-name>
+ <url-pattern>/faces/*</url-pattern>
+ </filter-mapping>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet>
+ <servlet-name>SourceCodeServlet</servlet-name>
+ <servlet-class>org.apache.myfaces.examples.webapp.SourceCodeServlet</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>SourceCodeServlet</servlet-name>
+ <url-pattern>*.source</url-pattern>
+ </servlet-mapping>
+ <welcome-file-list>
+ <welcome-file>index.html</welcome-file>
+ </welcome-file-list>
+ <!--
+ <error-page>
+ <error-code>500</error-code>
+ <location>/error.jsp</location>
+ </error-page>
+ -->
+</web-app>
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/aliasBean.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/aliasBean.xhtml?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/aliasBean.xhtml (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/aliasBean.xhtml Thu Jan 28 22:51:42 2010
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:t="http://myfaces.apache.org/tomahawk">
+<!--
+/*
+ * 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.
+ */
+//-->
+<body>
+ <ui:composition template="/META-INF/templates/template.xhtml">
+ <ui:define name="body">
+ <p>
+ Let's suppose you have a subform you use often but with different beans.<br/>
+ The aliasBean allows you to design the subform with a fictive bean
+ and to include it in all the pages where you use it.
+ You just need to make an alias to the real bean named after the fictive bean before invoking the fictive bean.
+ </p>
+ <p>
+ In this example, the customerAddress bean is a managed bean, but the address bean isn't defined anywhere.<br/>
+ After the aliasBean tag, we can use # {address.*} in place of # {custommerAddress.*}, so making it possible to have
+ generic address subforms (ok, this one is a very simple form, but you get the idea).
+ </p>
+
+ <h:form>
+ <h2>aliasTest1</h2>
+ <t:aliasBean alias="#{holder}" value="#{aliasTest1}">
+ <f:subview id="simulatedIncludedSubform1">
+ <h:outputLabel for="name" value="Name :"/>
+ <h:inputText id="name" value="#{holder.name}"/>
+ </f:subview>
+ </t:aliasBean>
+
+ <h2>aliasTest2</h2>
+ <t:aliasBean alias="#{holder}" value="#{aliasTest2}">
+ <f:subview id="simulatedIncludedSubform2">
+ <h:outputLabel for="name" value="Name :"/>
+ <h:inputText id="name" value="#{holder.name}"/>
+ <h:commandButton value="toUpperCase" action="#{holder.toUpperCase}"/>
+ </f:subview>
+ </t:aliasBean>
+
+ <h2>aliasTest with fixed string</h2>
+ <t:aliasBean alias="#{holder}" value="myFixedString" >
+ <f:subview id="simulatedIncludedSubform3">
+ <h:outputLabel for="string" value="Fixed value :"/>
+ <h:outputText id="string" value="#{holder}"/>
+ </f:subview>
+ </t:aliasBean>
+
+ <h2>aliasBeansScope</h2>
+ <t:aliasBeansScope>
+ <t:aliasBean alias="#{holder3}" value="#{aliasTest3}"/>
+ <t:aliasBean alias="#{holder4}" value="#{aliasTest4}"/>
+ <t:div>
+ <h:outputLabel for="name3" value="Name :"/>
+ <h:inputText id="name3" value="#{holder3.name}"/>
+ <h:commandButton value="toUpperCase" action="#{holder3.toUpperCase}"/>
+ </t:div>
+ <t:div>
+ <h:outputLabel for="name4" value="Name :"/>
+ <h:inputText id="name4" value="#{holder4.name}"/>
+ <h:commandButton value="toUpperCase" action="#{holder4.toUpperCase}"/>
+ </t:div>
+ </t:aliasBeansScope>
+
+ <h2>aliasBean with component-binding - if everything works, you should see 'first' followed by 'second'</h2>
+ <t:aliasBean alias="#{holder}" value="#{firstComponentBindingHolder}" >
+ <f:subview id="simulatedIncludedSubform4">
+ <h:panelGroup binding="#{holder.panelGroup}"/>
+ </f:subview>
+ </t:aliasBean>
+
+ <t:aliasBean alias="#{holder}" value="#{secondComponentBindingHolder}" >
+ <f:subview id="simulatedIncludedSubform5">
+ <h:panelGroup binding="#{holder.panelGroup}"/>
+ </f:subview>
+ </t:aliasBean>
+
+ <h:commandButton value="postback" />
+ <f:verbatim>on every postback the text 'first' and 'second' will be added</f:verbatim>
+
+ <br/><br/>
+
+ <h:commandButton/>
+ </h:form>
+ </ui:define>
+ </ui:composition>
+</body>
+</html>
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/autoscroll.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/autoscroll.xhtml?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/autoscroll.xhtml (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/autoscroll.xhtml Thu Jan 28 22:51:42 2010
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:t="http://myfaces.apache.org/tomahawk">
+<!--
+/*
+ * 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.
+ */
+//-->
+<body>
+ <ui:composition template="/META-INF/templates/template.xhtml">
+ <ui:define name="body">
+ <h:form>
+ <h:outputText value="The init parameter <i>org.apache.myfaces.AUTO_SCROLL</i> is set to <b>#{initParam['org.apache.myfaces.AUTO_SCROLL']}</b>. " escape="false"/>
+ <h:outputText value="In this case, the page "/>
+ <h:outputText value="should go to the top when a link is clicked." rendered="#{initParam['org.apache.myfaces.AUTO_SCROLL'] == false}"/>
+ <h:outputText value="shouldn't move when a link is clicked." rendered="#{initParam['org.apache.myfaces.AUTO_SCROLL'] == true}"/>
+
+ <h:dataTable var="num" value="#{autoScrollBean.numbers}">
+ <h:column>
+ <h:commandLink value="#{num}. Click me!" action="nothing"/>
+ </h:column>
+ </h:dataTable>
+ </h:form>
+ </ui:define>
+ </ui:composition>
+</body>
+</html>
\ No newline at end of file
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/buffer.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/buffer.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/buffer.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/buffer.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,168 @@
+<%@ 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/tomahawk" prefix="t"%>
+<html>
+
+<%@include file="inc/head.inc" %>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<body>
+
+<f:view>
+<h:form>
+
+ <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+ <p>
+ This component allows you to render a part of the page to a buffer, and then use the buffer later.
+ </p>
+ <p>
+ One use of this is the dataScroller. If you display a table with t:dataTable,
+ you can't have dataScroller BEFORE the table, as it can't find the not yet rendered table.<br/>
+ So, the solution is that you first render the table to a buffer, then you render the dataScroller,
+ and then you render the buffer's content.<br/>
+ That way, the dataScroller will appear before the table even though it was rendered after it.
+ </p>
+ <p>
+ <b>
+ Note : the generated links within the buffer are only supported with the MyFaces implementation
+ because of the lack of standard dummy form parameters support.
+ </b>
+ </p>
+
+ <t:buffer into="#{buffer1}">
+ <t:div><h:outputText value="Buffer One"/></t:div>
+ </t:buffer>
+
+ <t:buffer into="#{buffer2}">
+ <t:div><h:outputText value="Buffer Two"/></t:div>
+ </t:buffer>
+
+ <h:outputText value="#{buffer2}" escape="false"/>
+ <h:outputText value="#{buffer1}" escape="false"/>
+ <h:outputText value="#{buffer2}" escape="false"/>
+
+ <h2>dataTable Example</h2>
+
+ <t:buffer into="#{table}">
+ <t:dataTable id="data"
+ styleClass="scrollerTable"
+ headerClass="standardTable_Header"
+ footerClass="standardTable_Header"
+ rowClasses="standardTable_Row1,standardTable_Row2"
+ columnClasses="standardTable_Column,standardTable_ColumnCentered,standardTable_Column"
+ var="car"
+ value="#{scrollerList.list}"
+ preserveDataModel="false"
+ rows="10"
+ >
+ <h:column>
+ <f:facet name="header">
+ </f:facet>
+ <h:outputText value="#{car.id}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{example_messages['label_cars']}" />
+ </f:facet>
+ <h:outputText value="#{car.type}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{example_messages['label_color']}" />
+ </f:facet>
+ <h:outputText value="#{car.color}" />
+ </h:column>
+
+ </t:dataTable>
+ </t:buffer>
+
+ <t:buffer into="#{tableScroller}">
+ <h:panelGrid columns="1" styleClass="scrollerTable2" columnClasses="standardTable_ColumnCentered" >
+ <t:dataScroller id="scroll_1"
+ for="data"
+ fastStep="10"
+ pageCountVar="pageCount"
+ pageIndexVar="pageIndex"
+ styleClass="scroller"
+ paginator="true"
+ paginatorMaxPages="9"
+ paginatorTableClass="paginator"
+ paginatorActiveColumnStyle="font-weight:bold;"
+ >
+ <f:facet name="first" >
+ <t:graphicImage url="images/arrow-first.gif" border="1" />
+ </f:facet>
+ <f:facet name="last">
+ <t:graphicImage url="images/arrow-last.gif" border="1" />
+ </f:facet>
+ <f:facet name="previous">
+ <t:graphicImage url="images/arrow-previous.gif" border="1" />
+ </f:facet>
+ <f:facet name="next">
+ <t:graphicImage url="images/arrow-next.gif" border="1" />
+ </f:facet>
+ <f:facet name="fastforward">
+ <t:graphicImage url="images/arrow-ff.gif" border="1" />
+ </f:facet>
+ <f:facet name="fastrewind">
+ <t:graphicImage url="images/arrow-fr.gif" border="1" />
+ </f:facet>
+ </t:dataScroller>
+ <t:dataScroller id="scroll_2"
+ for="data"
+ rowsCountVar="rowsCount"
+ displayedRowsCountVar="displayedRowsCountVar"
+ firstRowIndexVar="firstRowIndex"
+ lastRowIndexVar="lastRowIndex"
+ pageCountVar="pageCount"
+ pageIndexVar="pageIndex"
+ >
+ <h:outputFormat value="#{example_messages['dataScroller_pages']}" styleClass="standard" >
+ <f:param value="#{rowsCount}" />
+ <f:param value="#{displayedRowsCountVar}" />
+ <f:param value="#{firstRowIndex}" />
+ <f:param value="#{lastRowIndex}" />
+ <f:param value="#{pageIndex}" />
+ <f:param value="#{pageCount}" />
+ </h:outputFormat>
+ </t:dataScroller>
+ </h:panelGrid>
+ </t:buffer>
+
+ <h:outputText value="#{tableScroller}" escape="false"/>
+ <h:outputText value="#{table}" escape="false"/>
+ <h:outputText value="#{tableScroller}" escape="false"/>
+
+</h:form>
+<jsp:include page="inc/mbean_source.jsp"/>
+</f:view>
+
+<%@include file="inc/page_footer.jsp" %>
+
+</body>
+
+</html>
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/calendar.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/calendar.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/calendar.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/calendar.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,140 @@
+<%@ 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/tomahawk" prefix="t"%>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+<html>
+
+<%@include file="inc/head.inc" %>
+
+<body>
+
+<f:view>
+ <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+ <t:saveState value="#{calendarBean}"/>
+
+ <h:panelGroup id="body">
+
+ <t:messages id="messageList" showSummary="false" showDetail="true" />
+
+ <h:outputText id="cdt" value="#{example_messages['js_form']}"/>
+
+ <h:form id="calendarForm">
+ <t:inputCalendar monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader"
+ currentDayCellClass="currentDayCell" value="#{calendarBean.firstDate}"/>
+ </h:form>
+
+ <f:verbatim><br/></f:verbatim>
+
+ <h:outputText value="#{calendarBean.firstDate}" />
+
+ <f:verbatim><br/><br/><br/></f:verbatim>
+
+ <h:outputText value="#{example_messages['js_popup']}"/>
+
+ <h:form id="calendarForm2">
+
+ <t:outputLabel for="secondOne" value="Second calendar input"/>
+ <t:inputCalendar id="secondOne" monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader" popupButtonStyleClass="standard_bold"
+ currentDayCellClass="currentDayCell" value="#{calendarBean.secondDate}" renderAsPopup="true"
+ popupTodayString="#{example_messages['popup_today_string']}"
+ popupDateFormat="MM/dd/yyyy" popupWeekString="#{example_messages['popup_week_string']}"
+ helpText="MM/DD/YYYY"
+ forceId="true"/>
+
+ <t:inputCalendar id="thirdOne" monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader" popupButtonStyleClass="standard_bold"
+ currentDayCellClass="currentDayCell" value="#{calendarBean.thirdDate}" renderAsPopup="true"
+ popupTodayString="#{example_messages['popup_today_string']}"
+ popupDateFormat="MM/dd/yyyy" popupWeekString="#{example_messages['popup_week_string']}"
+ helpText="MM/DD/YYYY"/>
+
+ <h:inputText value="#{calendarBean.text}"/>
+ <h:commandButton value="#{example_messages['js_submit']}" action="#{calendarBean.submitMethod}" />
+ </h:form>
+
+
+ </h:panelGroup>
+ <%--h:panelGroup id="body">
+
+
+ <f:verbatim><br/></f:verbatim>
+
+ <h:outputText value="#{calendarBean.firstDate}" />
+
+ <f:verbatim><br/><br/><br/></f:verbatim>
+
+ <h:outputText value="#{example_messages['js_popup']}"/>
+
+ <h:form id="calendarForm2">
+
+ <t:outputLabel for="secondOne" value="Second calendar input"/>
+ <t:inputCalendar id="secondOne" monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader" popupButtonStyleClass="standard_bold"
+ currentDayCellClass="currentDayCell" value="#{calendarBean.secondDate}" renderAsPopup="true"
+ popupTodayString="#{example_messages['popup_today_string']}" popupWeekString="#{example_messages['popup_week_string']}" helpText="MM/DD/YYYY"/>
+ <h:inputText value="#{calendarBean.text}"/>
+ <h:commandButton value="#{example_messages['js_submit']}" action="#{calendarBean.submitMethod}" />
+ </h:form>
+
+ <h:outputText value="#{calendarBean.secondDate}" />
+
+ <f:verbatim><br/><br/></f:verbatim>
+
+ <h:form id="calendarForm3">
+ <t:inputCalendar monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader"
+ currentDayCellClass="currentDayCell" value="#{calendarBean.secondDate}" renderAsPopup="true"
+ popupTodayString="#{example_messages['popup_today_string']}" popupWeekString="#{example_messages['popup_week_string']}"
+ renderPopupButtonAsImage="true"
+ popupButtonImageUrl="/images/help.gif"/>
+ </h:form>
+
+ <h:form id="calendarForm4">
+
+ <t:dataTable id="data"
+ styleClass="standardTable"
+ headerClass="standardTable_Header"
+ rowClasses="standardTable_Row1,standardTable_Row2"
+ columnClasses="standardTable_Column,standardTable_ColumnCentered,standardTable_Column"
+ var="dateHolder"
+ value="#{calendarBean.dates}"
+ preserveDataModel="true">
+ <h:column>
+ <t:inputCalendar monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader"
+ currentDayCellClass="currentDayCell" value="#{dateHolder.date}" renderAsPopup="true"
+ popupTodayString="#{example_messages['popup_today_string']}" popupWeekString="#{example_messages['popup_week_string']}" />
+ </h:column>
+ </t:dataTable>
+
+ <h:commandButton value="#{example_messages['js_submit']}"/>
+
+ </h:form>
+ </h:panelGroup--%>
+ <jsp:include page="inc/mbean_source.jsp"/>
+</f:view>
+
+<%@include file="inc/page_footer.jsp" %>
+
+</body>
+
+</html>
+
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/captcha.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/captcha.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/captcha.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/captcha.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,54 @@
+<%@ 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/tomahawk" prefix="t"%>
+<html>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<%@include file="inc/head.inc"%>
+
+<body>
+
+<f:view>
+
+ <h:form id="form1">
+ <h:panelGrid columns="2">
+ <h:outputText value="Type the code shown "/>
+ <h:inputText value="#{captchaBean.value}"/>
+
+ <h:commandLink value="Try a different image" />
+ <t:captcha captchaSessionKeyName="#{captchaBean.sessionKeyName}" />
+
+ <h:commandButton value="Submit" action="#{captchaBean.check}"/>
+ <h:outputText value="#{captchaBean.status}"/>
+ </h:panelGrid>
+ </h:form>
+
+
+ <%@include file="inc/page_footer.jsp"%>
+
+</f:view>
+
+</body>
+
+</html>
+
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/collapsiblePanel.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/collapsiblePanel.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/collapsiblePanel.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/collapsiblePanel.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,131 @@
+<%@ 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/tomahawk" prefix="t"%>
+<html>
+
+<%@include file="inc/head.inc" %>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<body>
+
+<f:view>
+
+ <t:saveState value="#{firstCollapsiblePanelBean}"/>
+ <t:saveState value="#{secondCollapsiblePanelBean}"/>
+ <t:saveState value="#{thirdCollapsiblePanelBean}"/>
+
+ <h:form id="form">
+ <t:messages/>
+ <t:collapsiblePanel id="test1" value="#{firstCollapsiblePanelBean.collapsed}" title="testTitle">
+ <h:panelGrid>
+ <h:outputText value="#{firstCollapsiblePanelBean.firstName}"/>
+ <h:inputText value="#{firstCollapsiblePanelBean.surName}"/>
+ <t:inputCalendar value="#{firstCollapsiblePanelBean.birthDate}" renderAsPopup="true"/>
+ </h:panelGrid>
+ </t:collapsiblePanel>
+
+ <t:subform id="subform">
+ <t:collapsiblePanel id="test2" value="#{secondCollapsiblePanelBean.collapsed}" title="testTitle"
+ var="test2collapsed">
+ <f:facet name="header">
+ <t:div style="width:500px;background-color:#CCCCCC;">
+ <h:outputText value="Person"/>
+ <t:headerLink immediate="true" actionFor="subform">
+ <h:outputText value="> Details" rendered="#{test2collapsed}"/>
+ <h:outputText value="v Overview" rendered="#{!test2collapsed}"/>
+ </t:headerLink>
+ </t:div>
+ </f:facet>
+ <f:facet name="closedContent">
+ <h:panelGroup>
+ <h:outputText value="#{secondCollapsiblePanelBean.firstName}"/>
+ <h:outputText value=" "/>
+ <h:outputText value="#{secondCollapsiblePanelBean.surName}"/>
+ <h:outputText value=", born on: "/>
+ <h:outputText value="#{secondCollapsiblePanelBean.birthDate}"/>
+ </h:panelGroup>
+ </f:facet>
+ <h:panelGrid>
+ <h:outputText value="#{secondCollapsiblePanelBean.firstName}"/>
+ <h:inputText value="#{secondCollapsiblePanelBean.surName}"/>
+ <t:inputCalendar value="#{secondCollapsiblePanelBean.birthDate}" renderAsPopup="true"/>
+ </h:panelGrid>
+ </t:collapsiblePanel>
+ </t:subform>
+
+ <t:collapsiblePanel id="test3" value="#{thirdCollapsiblePanelBean.collapsed}" title="testTitle"
+ var="test2collapsed">
+ <f:valueChangeListener type="org.apache.myfaces.examples.collapsiblepanel.CollapsiblePanelValueChangeListener" />
+ <f:facet name="header">
+ <t:div style="width:500px;background-color:#CCCCCC;">
+ <h:outputText value="Person"/>
+ <t:headerLink>
+ <h:outputText value="> Details" rendered="#{test2collapsed}"/>
+ <h:outputText value="v Overview" rendered="#{!test2collapsed}"/>
+ </t:headerLink>
+ </t:div>
+ </f:facet>
+ <f:facet name="closedContent">
+ <h:panelGroup>
+ <h:outputText value="#{thirdCollapsiblePanelBean.firstName}"/>
+ <h:outputText value=" "/>
+ <h:outputText value="#{thirdCollapsiblePanelBean.surName}"/>
+ <h:outputText value=", born on: "/>
+ <h:outputText value="#{thirdCollapsiblePanelBean.birthDate}"/>
+ </h:panelGroup>
+ </f:facet>
+ <h:panelGrid>
+ <h:outputText value="#{thirdCollapsiblePanelBean.firstName}"/>
+ <h:inputText value="#{thirdCollapsiblePanelBean.surName}"/>
+ <t:inputCalendar value="#{thirdCollapsiblePanelBean.birthDate}" renderAsPopup="true"/>
+ </h:panelGrid>
+ </t:collapsiblePanel>
+
+ <t:dataTable id="test_dt" var="person" value="#{thirdCollapsiblePanelBean.persons}" preserveDataModel="false">
+ <h:column>
+ <t:collapsiblePanel id="test4" var="test4collapsed" value="#{person.collapsed}">
+ <f:facet name="header">
+ <t:div style="width:500px;background-color:#CCCCCC;">
+ <h:outputText value="Person"/>
+ <t:headerLink immediate="true">
+ <h:outputText value="> Details" rendered="#{test4collapsed}"/>
+ <h:outputText value="v Overview" rendered="#{!test4collapsed}"/>
+ </t:headerLink>
+ <h:commandLink value=" test" action="#{person.test}"/>
+ </t:div>
+ </f:facet>
+ <h:inputText id="firstname_input" value="#{person.firstName}"/>
+ <h:commandLink value="test" action="#{person.test}"/>
+ </t:collapsiblePanel>
+ </h:column>
+ </t:dataTable>
+ </h:form>
+ <jsp:include page="inc/mbean_source.jsp"/>
+</f:view>
+
+<%@include file="inc/page_footer.jsp" %>
+
+</body>
+
+</html>
Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/colspan.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/colspan.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/colspan.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/colspan.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,212 @@
+<%@ 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/tomahawk" prefix="t"%>
+<html>
+
+ <%@include file="inc/head.inc"%>
+
+ <!--
+/*
+ * 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.
+ */
+//-->
+
+ <body>
+
+ <f:view>
+ <h:form id="test">
+ <h:panelGrid columns="1">
+
+ <h:outputText value="Implementation using t:panelGrid" />
+
+ <t:panelGrid id="grid1" columns="4" border="1" styleClass="standardTable standardTable_Row1 standardTable_Column" >
+ <t:panelGroup>
+ <f:verbatim escape="false">1-1</f:verbatim>
+ </t:panelGroup>
+ <t:panelGroup>
+ <f:verbatim escape="false">1-2</f:verbatim>
+ </t:panelGroup>
+ <t:panelGroup colspan="2">
+ <f:verbatim escape="false">1-3</f:verbatim>
+ </t:panelGroup>
+ <t:panelGroup colspan="3">
+ <f:verbatim escape="false">2-1</f:verbatim>
+ </t:panelGroup>
+ <t:panelGroup>
+ <f:verbatim escape="false">2-4</f:verbatim>
+ </t:panelGroup>
+ <t:panelGroup>
+ <f:verbatim escape="false">3-1</f:verbatim>
+ </t:panelGroup>
+ <t:panelGroup>
+ <f:verbatim escape="false">3-2</f:verbatim>
+ </t:panelGroup>
+ <t:panelGroup>
+ <f:verbatim escape="false">3-3</f:verbatim>
+ </t:panelGroup>
+ <t:panelGroup>
+ <f:verbatim escape="false">3-4</f:verbatim>
+ </t:panelGroup>
+ </t:panelGrid>
+
+ <f:verbatim> </f:verbatim>
+
+ <t:panelGrid id="grid2" columns="4" border="1" styleClass="standardTable standardTable_Row1 standardTable_Column" >
+ <t:panelGroup>
+ <f:verbatim escape="false">1-1</f:verbatim>
+ </t:panelGroup>
+ <t:panelGroup>
+ <f:verbatim escape="false">1-2</f:verbatim>
+ </t:panelGroup>
+ <t:panelGroup>
+ <f:verbatim escape="false">1-3</f:verbatim>
+ </t:panelGroup>
+ <t:panelGroup>
+ <f:verbatim escape="false">1-4</f:verbatim>
+ </t:panelGroup>
+ <t:panelGroup>
+ <f:verbatim escape="false">2-1</f:verbatim>
+ </t:panelGroup>
+ <t:panelGroup colspan="2">
+ <f:verbatim escape="false">2-2</f:verbatim>
+ </t:panelGroup>
+ <t:panelGroup>
+ <f:verbatim escape="false">2-4</f:verbatim>
+ </t:panelGroup>
+ <t:panelGroup colspan="4">
+ <f:verbatim escape="false">3-1</f:verbatim>
+ </t:panelGroup>
+ </t:panelGrid>
+
+ <f:verbatim> </f:verbatim>
+ <h:outputText value="Implementation using t:dataTable" />
+
+ <t:dataTable id="table1" value="#{testColspanBean.lines}" var="line"
+ rowClasses="standardTable_Row1,standardTable_Row2"
+ columnClasses="standardTable_Column,standardTable_ColumnCentered"
+ styleClass="standardTable" headerClass="standardTable_Header" footerClass="standardTable_Header">
+ <t:column colspan="2">
+ <f:facet name="header">
+ <f:verbatim escape="false">head 1</f:verbatim>
+ </f:facet>
+ <f:facet name="footer">
+ <f:verbatim escape="false">foot 1</f:verbatim>
+ </f:facet>
+ <h:outputText value="#{line.col1}" />
+ </t:column>
+ <t:column headercolspan="3">
+ <f:facet name="header">
+ <f:verbatim escape="false">head 2</f:verbatim>
+ </f:facet>
+ <f:facet name="footer">
+ <f:verbatim escape="false">foot 2</f:verbatim>
+ </f:facet>
+ <h:outputText value="#{line.col2}" />
+ </t:column>
+ <t:column>
+ <f:facet name="header">
+ <f:verbatim escape="false">head 3</f:verbatim>
+ </f:facet>
+ <f:facet name="footer">
+ <f:verbatim escape="false">foot 3</f:verbatim>
+ </f:facet>
+ <h:outputText value="#{line.col3}" />
+ </t:column>
+ <t:column footercolspan="2">
+ <f:facet name="header">
+ <f:verbatim escape="false">head 4</f:verbatim>
+ </f:facet>
+ <f:facet name="footer">
+ <f:verbatim escape="false">foot 4</f:verbatim>
+ </f:facet>
+ <h:outputText value="#{line.col4}" />
+ </t:column>
+ <t:column>
+ <f:facet name="header">
+ <f:verbatim escape="false">head 5</f:verbatim>
+ </f:facet>
+ <f:facet name="footer">
+ <f:verbatim escape="false">foot 5</f:verbatim>
+ </f:facet>
+ <h:outputText value="#{line.col5}" />
+ </t:column>
+ </t:dataTable>
+
+ <f:verbatim> </f:verbatim>
+
+ <t:dataTable id="table2" value="#{testColspanBean.lines}" var="line"
+ rowClasses="standardTable_Row1,standardTable_Row2"
+ columnClasses="standardTable_Column,standardTable_ColumnCentered"
+ styleClass="standardTable" headerClass="standardTable_Header" footerClass="standardTable_Header">
+ <t:column headercolspan="2">
+ <f:facet name="header">
+ <f:verbatim escape="false">head 1</f:verbatim>
+ </f:facet>
+ <f:facet name="footer">
+ <f:verbatim escape="false">foot 1</f:verbatim>
+ </f:facet>
+ <h:outputText value="#{line.col1}" />
+ </t:column>
+ <t:column>
+ <f:facet name="header">
+ <f:verbatim escape="false">head 2</f:verbatim>
+ </f:facet>
+ <f:facet name="footer">
+ <f:verbatim escape="false">foot 2</f:verbatim>
+ </f:facet>
+ <h:outputText value="#{line.col2}" />
+ </t:column>
+ <t:column colspan="3">
+ <f:facet name="header">
+ <f:verbatim escape="false">head 3</f:verbatim>
+ </f:facet>
+ <f:facet name="footer">
+ <f:verbatim escape="false">foot 3</f:verbatim>
+ </f:facet>
+ <h:outputText value="#{line.col3}" />
+ </t:column>
+ <t:column headercolspan="2">
+ <f:facet name="header">
+ <f:verbatim escape="false">head 4</f:verbatim>
+ </f:facet>
+ <f:facet name="footer">
+ <f:verbatim escape="false">foot 4</f:verbatim>
+ </f:facet>
+ <h:outputText value="#{line.col4}" />
+ </t:column>
+ <t:column>
+ <f:facet name="header">
+ <f:verbatim escape="false">head 5</f:verbatim>
+ </f:facet>
+ <f:facet name="footer">
+ <f:verbatim escape="false">foot 5</f:verbatim>
+ </f:facet>
+ <h:outputText value="#{line.col5}" />
+ </t:column>
+ </t:dataTable>
+
+ </h:panelGrid>
+ </h:form>
+ <jsp:include page="inc/mbean_source.jsp"/>
+ </f:view>
+
+ <%@include file="inc/page_footer.jsp" %>
+
+ </body>
+
+</html>